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

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.
-bash-3.00$ perl -V Summary of my perl5 (revision 5 version 12 subversion 0) configuration +: Platform: osname=solaris, osvers=2.10, archname=sun4-solaris uname='sunos 5.10 generic_141444-06 sun4u sparc sunw,sun-fire-480r + solaris ' config_args='-Dcc=gcc -B/usr/ccs/bin/' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -pipe -I/ +usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='3.4.6', gccosandvers='solaris2.10' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib ' libpth=/usr/local/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -lgdbm -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF Built under solaris Compiled at May 2 2010 06:52:54 @INC: /usr/local/lib/perl5/site_perl/5.12.0/sun4-solaris /usr/local/lib/perl5/site_perl/5.12.0 /usr/local/lib/perl5/5.12.0/sun4-solaris /usr/local/lib/perl5/5.12.0 /usr/local/lib/perl5/site_perl .

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