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

rcpt500 won't link against -lbind (ITS#592)

Full_Name: michael helm
Version: 1.2.7-globus
OS: solaris
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

cc -g -O -xildoff -I/usr/local/bind/include -I/usr/local/include
 -I../../../openldap/include -DHAVE_CO
NFIG_H -L/export/home/helm/project/openldap/SunOS.5.7-globus/libraries
cal/bind/lib -o rcpt500 version.o main
.o cmds.o help.o query.o -lldap -llber -llutil -lbind -lgen -lnsl -lsocket
ld: fatal: symbol `cmds' is multiply defined:
        (file cmds.o and file /usr/local/bind/lib/libbind.a(prandom.o));
ld: fatal: File processing errors. No output written to rcpt500
make[2]: *** [rcpt500] Error 1

There's a global data symbol "cmds" in both the openldap file & the 
bind subroutine prandom.c
nm libbind.a | egrep -i cmd
[27]    |         0|      32|OBJT |GLOB |0    |4      |cmds
surya% pwd
surya% !nm
nm cmds.o | egrep cmd
[14]    |         0|     120|OBJT |GLOB |0    |4      |cmds
[1]     |         0|       0|FILE |LOCL |0    |ABS    |cmds.c
[15]    |         0|       0|NOTY |GLOB |0    |UNDEF  |help_cmd
[16]    |         0|       0|NOTY |GLOB |0    |UNDEF  |query_cmd