develooper Front page | perl.perl5.porters | Postings from September 2002

[perl #17535] inet_aton not found during test phase

Thread Next
From:
gamma@mintaka.iern.disa.mil
Date:
September 23, 2002 12:29
Subject:
[perl #17535] inet_aton not found during test phase
Message ID:
rt-17535-38414.0.392314465525061@bugs6.perl.org
# New Ticket Created by  gamma@mintaka.iern.disa.mil 
# Please include the string:  [perl #17535]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=17535 >


Hello,

I have been compiling versions of Perl since about the time perl 5 came
out and this is the first time I have had problems.

I have built 5.8.0 of perl using the default configuration commmands.
Configure actually finds inet_aton function in
/usr/local/lib/libbind.so.0.0.1.

It compiles without problem.  But when I run the tests, all tests which
seem to refer to inet_aton fail because the symbol 'inet_aton' can't be
resolved.  About six such tests fail and here is one example:

   ext/Socket/Socket....................ld.so.1: ./perl: fatal:
   relocation error: file ../lib/auto/Socket/Socket.so: symbol inet_aton:
   referenced symbol not found

All failures seem to involve Socket.so

I have been unsuccessful in getting the library to be found in the test
phase.  This includes altering LD_LIBRARY_PATH and some lib variables in
the config.sh.

If I 'undef' the appropriate references to inet_aton in config.sh,
everything compiles and tests perfectly.

So how can I get things to work with inet_aton defined?

Thanks,
Jim

What follows is my myconfig file.

#!/bin/sh

# This script is designed to provide a handy summary of the configuration
# information being used to build perl. This is especially useful if you
# are requesting help from comp.lang.perl.misc on usenet or via mail.

# Note that the text lines /^Summary of/ .. /^\s*$/ are copied into Config.pm.
cat <<'!NO!SUBS!'
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos mintaka 5.8 generic_108528-16 sun4u sparc sunw,ultra-5_10 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers='solaris2.7'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lbind -lnsl -ldl -lm -lc
    perllibs=-lsocket -lbind -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'

!NO!SUBS!




Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About