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

Hi thanks for the reply, ldd outputs:
-bash-3.00$ ldd /usr/local/lib/perl5/5.12.0/sun4-solaris/auto/Socket/S +ocket.so libc.so.1 => /lib/libc.so.1 libm.so.2 => /lib/libm.so.2 /platform/SUNW,Sun-Fire-V445/lib/libc_psr.so.1
I have also used ldd -r and I get the following: Main thing imo:
symbol not found: inet_pton (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so)
Do you think that this is causing the problem? because the error log states that "...symbol inet_aton: referenced symbol not found at..." or does that point to XSLoader.pm? All of the info:
-bash-3.00$ ldd -r /usr/local/lib/perl5/5.12.0/sun4-solaris/auto/Socke +t/Socket.s o libc.so.1 => /lib/libc.so.1 symbol not found: main (/usr/local/lib/perl5/5.12.0/s +un4-solari s/auto/Socket/ +Socket.so) symbol not found: PL_stack_max (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: PL_markstack_ptr (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: PL_sub_generation (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: PL_scopestack_ix (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: PL_stack_sp (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: PL_sv_yes (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: PL_curcop (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: PL_stack_base (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: PL_unitcheckav (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_croak (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_hv_common_key_len (/usr/ +local/lib/ perl5/5.12.0/s +un4-solaris/auto/Socket/Socket.so) symbol not found: Perl_newCONSTSUB (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_sv_upgrade (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_get_hv (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_newSV_type (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_croak_xs_usage (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_sv_2pv_flags (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_newSVpvf (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_sv_2mortal (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: inet_aton (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: gethostbyname (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) /platform/SUNW,Sun-Fire-V445/lib/libc_psr.so.1 symbol not found: Perl_sv_newmortal (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_sv_setpvn (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_sv_utf8_downgrade (/usr/ +local/lib/ perl5/5.12.0/s +un4-solaris/auto/Socket/Socket.so) symbol not found: Perl_sv_2pvbyte (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_safesysmalloc (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_newSVpvn_flags (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_safesysfree (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_newSViv (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_sv_2uv_flags (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_stack_grow (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_sv_2iv_flags (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: inet_ntop (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: inet_pton (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_form (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_get_sv (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_newSVpv (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_new_version (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_sv_derived_from (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_vcmp (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_vstringify (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) symbol not found: Perl_newXS (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_sv_free2 (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_sv_free (/usr/local/lib/perl5/ +5.12.0/sun 4-solaris/auto +/Socket/Socket.so) symbol not found: Perl_call_list (/usr/local/li +b/perl5/5. 12.0/sun4-sola +ris/auto/Socket/Socket.so) libm.so.2 => /lib/libm.so.2

Replies are listed 'Best First'.
Re^3: Can't build modules that load Socket.so
by Anonymous Monk on Sep 21, 2010 at 07:55 UTC
    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 :)

      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 :)