pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[Solution] Re: lang/perl5 on Linux/x86_64 2.6.x build failing



After 'bmake build'ing the package, I added a line to /usr/pkgsrc/ lang/perl5/work/perl-5.8.8/hints/linux.sh:

ldflags="-lm -lpthread"

At which point the package built. I was able to install & package, as well. I'd imagine there'd need to be a little more logic in the hints file to detect for the specific edge case I'm encountering here, but from my digging, it appears that, at least on x86_64 the math functions need to have a separate, explicit math library linked and the same with the pthread lib? Not exactly sure, but the above fix appeared to work.

Hope this helps someone else!

Thanks,
- Jesse


On Dec 3, 2006, at 8:02 PM, Jesse Peterson wrote:

libperl.a(sv.o)(.text+0x14108): In function `Perl_sv_catpvf_nocontext':
: undefined reference to `pthread_getspecific'
libperl.a(pp.o)(.text+0x2ec2): In function `Perl_pp_pow':
: undefined reference to `pow'




Home | Main Index | Thread Index | Old Index