Subject: | Need extra lib path on gentoo |
Inline::CPP won't install on any Gentoo system I've tried. After some diagnosing, it seems that Inline::CPP needs the additional library path like "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/" which is where "libstdc++.so" is found. So, it would seem that there just needs to be more logic in the makefile.
I'm not sure how to properly add this, but if I alter my Config.pm to say
our $libs = '-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/ -lstdc++'
it works.
If you want a gentoo system to test with, you can get a bare-minimal chroot pretty easily:
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64-nomultilib/stage3-amd64-nomultilib-20140529.tar.bz2
mkdir gentoo-chroot
tar -xjf stage3-amd64-nomultilib-20140529.tar.bz2 -C gentoo-chroot
mount --rbind /dev gentoo-chroot/dev
mount --bind /proc gentoo-chroot/proc
cp /etc/resolv.conf gentoo-chroot/etc/
chroot gentoo-chroot /bin/bash
source /etc/profile
sed -ie 's/^#en_US/en_US/' /etc/locale.gen
locale-gen
cpan App::cpanminus
cpanm Inline --force # will fail on test 8, which is reported already
cpanm Inline::CPP # will fail with unresolved symbol errors, needing the above fix