This discussion is archived
1 Reply Latest reply: Dec 6, 2012 3:19 AM by sjensen RSS

buildserver failed with ld error

908950 Newbie
Currently Being Moderated
Hi there,

I tried a program where I linked some .a files (created using ar command). Myserver interacts with Database during its startup, hence I used Oracle XA libraries. However, I am unable to buildserver my server as it is giving the below errors.
Please find the logs below:

Can anyone please help to resolve this issue? Thanks!

**********************************************************************************************
tuxedo@dtcs-ndaxdb01 # buildserver -f emr_server.o -s EMRAPI -r Oracle_XA -l lib_emr.a -l conversion.c
BS-47ff.c:
conversion.c:
ld: elf error: file lib_emr.a: elf_getarsym
ld: fatal: symbol `RoutingTable' is multiply-defined:
(file emr_server.o type=OBJT; file conversion.o type=OBJT);
ld: fatal: symbol `ELF_HighestProductId' is multiply-defined:
(file emr_server.o type=OBJT; file conversion.o type=OBJT);
ld: fatal: File processing errors. No output written to SERVER
CMDTUX_CAT:1832: ERROR: can't execute cc -w -mt -I$TUXDIR/include -o SERVER BS-47ff.c -L${TUXDIR}/lib emr_server.o -ltux -lbuft -L${ORACLE_HOME}/lib -lclntsh -lfml -lfml32 -lengine -R/usr/lib/lwp -lpthread -lposix4 -lsocket -lnsl -lm -lnsl -lsocket lib_emr.a conversion.c


**********************************************************************************************

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points