Re: [Persistentperl-users] Build problem on Sharp Zaurus
Brought to you by:
samh
From: <Jes...@va...> - 2005-08-05 07:24:45
|
Hi Tony, Nope, those are not really harmless errors, you are in fact missing a bunch of shared libraries that you'll need to build Persistent Perl. I'm not sure what sort of Linux the Zaurus has, you seem to be missing a fairly major one, namely libc, the c library, libm is the math library, and I'm not sure about the rest.. :) Does that help any? Jess |---------+------------------------------------------------> | | Tony Green <to...@be...> | | | Sent by: | | | per...@li...ur| | | ceforge.net | | | | | | | | | 04/08/2005 18:49 | | | | |---------+------------------------------------------------> >--------------------------------------------------------------------------------------------------------------------------| | | | To: per...@li... | | cc: | | Subject: [Persistentperl-users] Build problem on Sharp Zaurus | >--------------------------------------------------------------------------------------------------------------------------| Hi all, I'm trying to build Persistent Perl on my Sharp Zaurus handheld (very much a cut-down Linux) and I'm hitting a problem that I'm hoping someone here might be able to help me with. When I run perl Makefile.PL, I get the following warnings: Note (probably harmless): No library found for -lnsl Note (probably harmless): No library found for -ldl Note (probably harmless): No library found for -lm Note (probably harmless): No library found for -lc Note (probably harmless): No library found for -lcrypt Note (probably harmless): No library found for -lutil However, this evidently isn't harmless, as when I run "make", it fails with: ---------------------------------------------------------------------------------------- /mnt/card/.zgcc/bin/gcc -o perperl_backend perperl_backend_main.o perperl_perl.o perperl_util.o perperl_sig.o perperl_frontend.o perperl_backend.o perperl_file.o perperl_slot.o perperl_poll.o perperl_ipc.o perperl_group.o perperl_script.o perperl_opt.o perperl_optdefs.o xsinit.o -rdynamic /usr/mnt.rom/card/perl/perl5.8.0/lib/5.8.0/linux/auto/DynaLoader/DynaLoader.a -L/mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE -lperl /usr/mnt.rom/card/perl/perl5.8.0/lib/5.8.0/linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function `XS_DynaLoader_dl_load_file': DynaLoader.o(.text+0x16c): undefined reference to `dlopen' DynaLoader.o(.text+0x16c): relocation truncated to fit: R_ARM_PC24 dlopen DynaLoader.o(.text+0x188): undefined reference to `dlerror' DynaLoader.o(.text+0x188): relocation truncated to fit: R_ARM_PC24 dlerror /usr/mnt.rom/card/perl/perl5.8.0/lib/5.8.0/linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function `XS_DynaLoader_dl_unload_file': DynaLoader.o(.text+0x280): undefined reference to `dlclose' DynaLoader.o(.text+0x280): relocation truncated to fit: R_ARM_PC24 dlclose DynaLoader.o(.text+0x298): undefined reference to `dlerror' DynaLoader.o(.text+0x298): relocation truncated to fit: R_ARM_PC24 dlerror /usr/mnt.rom/card/perl/perl5.8.0/lib/5.8.0/linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function `XS_DynaLoader_dl_find_symbol': DynaLoader.o(.text+0x3b8): undefined reference to `dlsym' DynaLoader.o(.text+0x3b8): relocation truncated to fit: R_ARM_PC24 dlsym DynaLoader.o(.text+0x3d4): undefined reference to `dlerror' DynaLoader.o(.text+0x3d4): relocation truncated to fit: R_ARM_PC24 dlerror /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_pow': pp.o(.text+0x2374): undefined reference to `pow' pp.o(.text+0x2374): relocatiopp_pack.o(.text+0x594c): undefined reference to `floor' pp_pack.o(.text+0x594c): relocation truncated to fit: R_ARM_PC24 floor pp_pack.o(.text+0x5974): undefined reference to `floor' pp_pack.o(.text+0x5974): relocation truncated to fit: R_ARM_PC24 floor collect2: ld returned 1 exit status make[1]: *** [perperl_backend] Error 1 make[1]: Leaving directory `/usr/mnt.rom/card/.zaurus-documents/Install_Files/PersistentPerl-2.22/perperl_backend' make: *** [subdirs] Error 2 n truncated to fit: R_ARM_PC24 pow /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_modulo': pp.o(.text+0x2bc0): undefined reference to `floor' pp.o(.text+0x2bc0): relocation truncated to fit: R_ARM_PC24 floor pp.o(.text+0x2be4): undefined reference to `floor' pp.o(.text+0x2be4): relocation truncated to fit: R_ARM_PC24 floor pp.o(.text+0x2c1c): undefined reference to `fmod' pp.o(.text+0x2c1c): relocation truncated to fit: R_ARM_PC24 fmod /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_atan2': pp.o(.text+0x6f74): undefined reference to `atan2' pp.o(.text+0x6f74): relocation truncated to fit: R_ARM_PC24 atan2 /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_sin': pp.o(.text+0x70a4): undefined reference to `sin' pp.o(.text+0x70a4): relocation truncated to fit: R_ARM_PC24 sin /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_cos': pp.o(.text+0x7208): undefined reference to `cos' pp.o(.text+0x7208): relocation truncated to fit: R_ARM_PC24 cos /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_exp': pp.o(.text+0x7584): undefined reference to `exp' pp.o(.text+0x7584): relocation truncated to fit: R_ARM_PC24 exp /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_log': pp.o(.text+0x7720): undefined reference to `log' pp.o(.text+0x7720): relocation truncated to fit: R_ARM_PC24 log /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_sqrt': pp.o(.text+0x78c4): undefined reference to `sqrt' pp.o(.text+0x78c4): relocation truncated to fit: R_ARM_PC24 sqrt /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp.o): In function `Perl_pp_crypt': pp.o(.text+0x9384): undefined reference to `crypt' pp.o(.text+0x9384): relocation truncated to fit: R_ARM_PC24 crypt /mnt/pkgs/perl/perl5.8.0/lib/5.8.0/linux/CORE/libperl.a(pp_pack.o): In function `Perl_pack_cat': pp_pack.o(.text+0x594c): undefined reference to `floor' pp_pack.o(.text+0x594c): relocation truncated to fit: R_ARM_PC24 floor pp_pack.o(.text+0x5974): undefined reference to `floor' pp_pack.o(.text+0x5974): relocation truncated to fit: R_ARM_PC24 floor collect2: ld returned 1 exit status make[1]: *** [perperl_backend] Error 1 make[1]: Leaving directory `/usr/mnt.rom/card/.zaurus-documents/Install_Files/PersistentPerl-2.22/perperl_backend' make: *** [subdirs] Error 2 ---------------------------------------------------------------------------------------- The fact that it's ld that's complaining at the end makes me suspect that the "probably harmless" diagnosis is possibly wrong and I may need to install some more libraries in order to get this to build. Unfortunately, having trawled through the sources, I've failed to pick out what should be happening. If anybody can point me in the right direction, I'd appreciate it. Apart from the fact that Persistent Perl will make the personal project I'm working on more efficient on a slow machine, I'd like to make it available for anybody else developing on the Zaurus, as I'm sure it will be useful elsewhere. Thanks in advance. -- Tony Green Ipswich, Suffolk, England ** This message is digitally signed. If your email client is unable to read digital signatures, you may see an attachment that you cannot open. See http://www.gnupg.org/(en)/documentation/faqs.html for more information. You can validate my PGP key from my website: http://www.beermad.org.uk/ * No Micro$oft products were used in the generation of this communication (See attached file: attr6as3.dat) |