Wiggins has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perlcc can't find libperl
by Fletch (Bishop) on Dec 07, 2006 at 18:47 UTC | |
by Wiggins (Hermit) on Dec 07, 2006 at 19:13 UTC | |
by Fletch (Bishop) on Dec 07, 2006 at 19:31 UTC | |
by dave_the_m (Monsignor) on Dec 07, 2006 at 23:45 UTC | |
by chromatic (Archbishop) on Dec 07, 2006 at 19:18 UTC | |
by andyford (Curate) on Dec 07, 2006 at 21:34 UTC | |
by andyford (Curate) on Dec 07, 2006 at 21:22 UTC | |
|
Re: perlcc can't find libperl
by andyford (Curate) on Dec 07, 2006 at 17:55 UTC | |
|
Re: perlcc can't find libperl
by ysth (Canon) on Dec 07, 2006 at 23:26 UTC |