[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Linking with Perl
From: |
Akim Demaille |
Subject: |
Linking with Perl |
Date: |
07 Aug 2001 12:09:34 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor) |
I'm sorry, but I'm bad at dynamic libs and libtool etc., so I'm
somewhat stuck here:
make[2]: Entering directory `/home/akim/src/m4/modules'
/bin/sh ../libtool --mode=link gcc -O2 -pipe -no-undefined -o perl.la -rpath
/usr/local/libexec/m4 -module `perl -MExtUtils::Embed -e ldopts` perl.lo
../m4/libm4.la
*** Warning: Linking the shared library perl.la against the
*** static library /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a is not
portable!
rm -fr .libs/perl.la .libs/perl.* .libs/perl.*
gcc -shared perl.lo -Wl,--rpath -Wl,/home/lrde/prof/akim/src/m4/m4/.libs
-Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib
/usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.6.1/CORE
-lperl -ldl -lm -lc -lcrypt ../m4/.libs/libm4.so -Wl,-soname -Wl,perl.so.0 -o
.libs/perl.so.0.0.0
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[2]: *** [perl.la] Erreur 1
make[2]: Leaving directory `/home/akim/src/m4/modules'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/akim/src/m4'
make: *** [all-recursive-am] Erreur 2
~/src/m4 % perl -MExtUtils::Embed -e ldopts nostromo Err 2
-rdynamic -L/usr/local/lib /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl/5.6.1/CORE -lperl -ldl -lm -lc -lcrypt
I don't know what I could do to help. I do have libperl:
~/src/m4 % ls /usr/lib/libperl* -l nostromo 12:06
lrwxrwxrwx 1 root root 16 jun 28 17:50 /usr/lib/libperl.so.5.6
-> libperl.so.5.6.1
-rw-r--r-- 1 root root 798264 jun 22 11:04
/usr/lib/libperl.so.5.6.1
I'm running Debian unstable. At home I have Debian stable, and it
works.
BTW, this demonstrates that if someone wants to install M4 but does
not have Perl, she is doomed. That's not cool :)
- Linking with Perl,
Akim Demaille <=