Here are the results:
[PerlThreads]# perlcc -o sh2 sh2.pl In file included from /usr/lib/perl/5.8/CORE/perl.h:3950, from pccE2dTY.c:2: /usr/lib/perl/5.8/CORE/proto.h:31: warning: `warn_unused_result' attri +bute directive ignored ... lots of warnings... /usr/lib/perl/5.8/CORE/proto.h:2291: warning: `warn_unused_result' att +ribute directive ignored /usr/lib/perl/5.8/CORE/proto.h:2294: warning: `warn_unused_result' att +ribute directive ignored pccE2dTY.c: In function `perl_init_aaaa': pccE2dTY.c:3687: warning: this decimal constant is unsigned only in IS +O C90 /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status [PerlThreads]#
Based upon the error message's library name ( -lperl; no .so) I surmise it is looking for a static library. Searching the system produces:
[PerlThreads]# find / -name "libperl*" /var/lib/dpkg/info/libperl5.8.list /var/lib/dpkg/info/libperl5.8.postinst /var/lib/dpkg/info/libperl5.8.md5sums /var/lib/dpkg/info/libperl5.8.shlibs /var/cache/apt/archives/libperl5.8_5.8.8-4_i386.deb /usr/lib/libperl.so.5.8 /usr/lib/libperl.so.5.8.8 /usr/share/doc/libperl5.8 /usr/share/defoma/libperl-file.pl /usr/share/defoma/libperl-hint.pl [PerlThreads]#
Shows 2 dynamic libraries, but not a static one. Is this an installation problem on my part? Do I need to CPAN something else to use the compiler?
In reply to perlcc can't find libperl by Wiggins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |