Operating System - HP-UX
1820712 Members
2847 Online
109627 Solutions
New Discussion

Linker problem : Duplicate symbol "__wbuf"

 
CHEVREUX Olivier
New Member

Linker problem : Duplicate symbol "__wbuf"

Hi,

I migrate my executable from CC to aCC V1.27 on HP UX 10.10 system.

My executable uses some static libs and when i use ld, I have a error message like that :
Duplicate Symbol "__wbuf" in files agent_facturation.o and libcollection.a(COMMANDES_A_FACTURER.o)

agent_facturation.cpp is my main source et COMMANDES_A_FACTURER is a static lib ina archive.

To compile my static lib, I use this compile line :
aCC +DA1.1 +DS1.1 -DILDORACLE -I( all the paths I need for my includes ) -c COMMANDES_A_FACTURER.cpp

I use exactly the same option to compile my main source : agent_facturation.cpp

To find the duplicate symbol I used nm++ on the 2 libs (COMMANDES_A_FACTURER.o and agent_facturation.o) and I find :

__wuf|1073741928|extern|data|$BSS$ (agent_facturation.o)

__wuf|1073742184|extern|data|$BSS$ (COMMANDES_A_FACTURER.o)

I also look with nm++ in the file COMMANDES_A_FACTURER.o generated by CC and I find :
__wbuf|100|undef|commun|$BSSS$
That is completely different.

I think that I don't use the goods options to compile lib, but I don't see what.

To finish I give you my command to link :
aCC -o agent_facturation
-I/app/ilog/dblink30/include
-I/users/liv/framework/crpc
-I/users/liv/framework/crpc/rpc
-I/users/liv/framework/outils
-I/users/liv/framework/collections_persistantes
agent_facturation.o
/users/liv/lib/libcfactu.a
/users/liv/lib/libcollection.a
/users/liv/lib/libcrpc.a
/users/liv/lib/liboutils.a
-L/app/ilog/dblink30/lib/hp_10_1.0/static
-ldbov7 /oracle/V734/lib/osntab.o
-L/oracle/V734/lib -lclntsh -lcma
-lsqlnet -lpls -lc3v6 -lcore3 -lcl -lm
-lnlsrtl -lcore -lepc -lcommon -lnlsrtl3
-lncr -lsqlnet -lcore3 -lnlsrtl3 -lgeneric

If someone knows how to help me?
Thanks in advance,

Olivier