Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with perlcc and modules

Status
Not open for further replies.

BenRussell

Programmer
Mar 12, 2001
243
0
0
US
I cannot get my perl scripts to work if they use any modules. For example, take the following script (test.pl):

Code:
use Digest::MD5;
print Digest::MD5::md5_hex("Some text");
print "\n";

When I compile it with the command:
perlcc test.pl

It tells me:
Code:
/tmp/ccl0Jfet.o: In function `dl_init':
/tmp/ccl0Jfet.o(.text+0x33934): undefined reference to `boot_Digest__MD5'
collect2: ld returned 1 exit status

I am running Red Hat Linux 7.3 and Perl 5.6.1

Any ideas?

- Ben
 
Well, I guess the underlying question is why use perlcc? What's the end goal? It was always a pretty experimental script anyway, and as far as I know, it hasn't been seriously touched in awhile.

If you're trying to generate stand-alone or shared executables from Perl code, I suggest PAR's pp utility, as I've had much better luck with it.

________________________________________
Andrew - Perl Monkey
 
What about perlembed? Would that be a viable option?

My end goal is to have a relatively secure compiled C program (written originally in perl) so that the original Perl source code cannot (easily) be generated from it.

- Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top