in reply to Re^2: Can't build modules that load Socket.so
in thread Can't build modules that load Socket.so

libc.so... is supposed to define inet_pton, so I've no idea why thats broken ...

also Socket.so is supposed to link to libperl.so, I also have no idea why thats broken.

Are you sure you're not mixing the system perl with perl you compiled yourself?

Shot in the dark, try

"export LD_LIBRARY_PATH=/usr/local/lib"
You might also be able to glean some hints from Not able to load module though @INC contains it

A real sysadmin ought to be able to help you resolve this :)

Replies are listed 'Best First'.
Re^4: Can't build modules that load Socket.so
by MikeMokkas (Initiate) on Sep 21, 2010 at 09:53 UTC
    Truth is that the machine I am working on had Perl5.8.2 installed and I had to install a newer version because some applications required higher versions of core modules. The new version was installed from a package by the sysadmin together with some libs , he then symlinked the old /usr/bin/perl to /usr/local/bin/perl5.12.0 . Now, the applications depending on perl are running smoothly and I had no trouble with building 8-12 modules since then, with the exception of this one. I'll post my "perl -w" just in case you see something is wrong or missing.
      I would try to recompile Socket then ... might as well go for 5.12.2 :)
        I found a similar problem report in perl's bug reports about Socket on Solaris: http://rt.perl.org/rt3/Public/Bug/Display.html?id=2930 , do you know how to add -lresolv to appear in LIBS together with the other libraries? (Is there any way of doing that without recompiling whole perl?).