[Date Prev][Date Next] [Chronological] [Thread] [Top]

Error:Undefined symbol:__inet_addr and __inet_aton



Recently, I downloaded openldap 1.2.9 and installed it on my AIX
4.3.2.0.
I can pass "./configure" and "make depend" two phase successfully,but
when
I tried  "make",there produced following error messages:

        /bin/sh /db2_data/openldap-1.2.9/libtool --mode=link gcc -g -O2
-I../../
include        -I../../include   -DHAVE_CONFIG_H
-L/db2_data/openldap-1.2.9/lib
raries   -L/db2_data/openldap-1.2.9/libraries   -o ltest test.o -lldap
-llber
gcc -g -O2 -I../../include -I../../include -DHAVE_CONFIG_H
-L/db2_data/openldap-
1.2.9/libraries -L/db2_data/openldap-1.2.9/libraries -o ltest test.o
-lldap -llb
er
ld: 0711-317 ERROR: Undefined symbol: .__inet_addr
ld: 0711-317 ERROR: Undefined symbol: .__inet_ntoa
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.

   In my system,there exists inet_addr subroutine but has not inet_aton
subroutine.
I grepped  the source C program and can find inet_addr string in os-ip.c
and cldap.c,
but can not find called inet_aton subroutine.What's happened?
Please help me solve this problem.
Any hints or reply will be appreciated.

Thanks and Best regards,

Shan Jinlai