Apache OpenOffice (AOO) Bugzilla – Issue 31340
xml2cmp/source/finder: Undefined symbols
Last modified: 2004-08-24 16:36:29 UTC
Hi, Solaris with Forte C++ 6 Update 2, 20040704: oo@ultra:/ultra/BuildDir/ooo_cws_src680_ooo20040704_src/xml2cmp/source/finder> dmake ------------------------------ Making: ../../unxsols4.pro/bin/srvdepy unx cat ../../unxsols4.pro/misc/srvdepy.cmd CC -w -mt -z combreloc -PIC -temp=/tmp -R'$ORIGIN' -norunpath -library=no%Cstd -Bdirect -z defs -L../../unxsols4.pro/lib -L../lib -L/ultra/BuildDir/ooo_cws_src680_ooo20040704_src/solenv/unxsols4/lib -L/ultra/BuildDir/ooo_cws_src680_ooo20040704_src/solver/680/unxsols4.pro/lib -L/ultra/BuildDir/ooo_cws_src680_ooo20040704_src/solenv/unxsols4/lib -L/ultra/BuildDir/ooo_cws_src680_ooo20040704_src/solenv/unxsols4/libsolaris.2.6 -L/lib -L/usr/lib -L/usr/local/lib -L/usr/dt/lib -L/usr/openwin/lib -L/usr/java/lib -L/usr/java/jre/lib/sparc -L/usr/java/jre/lib/sparc/motif21 -L/usr/java/jre/lib/sparc/native_threads -L/usr/openwin/lib \ ../../unxsols4.pro/obj/dependy.o \ ../../unxsols4.pro/obj/dep_main.o \ ../../unxsols4.pro/obj/cr_html.o \ ../../unxsols4.pro/obj/cr_index.o \ ../../unxsols4.pro/obj/cr_metho.o \ ../../unxsols4.pro/obj/filebuff.o \ ../../unxsols4.pro/obj/parse.o \ ../../unxsols4.pro/obj/xmlelem.o \ ../../unxsols4.pro/obj/xmltree.o \ ../../unxsols4.pro/obj/cmdline.o \ ../../unxsols4.pro/obj/heap.o \ ../../unxsols4.pro/obj/sistr.o \ ../../unxsols4.pro/obj/syshelp.o \ ../../unxsols4.pro/obj/badcast.o \ -Bdynamic -lpthread -lm -Bdynamic -lstlport_sunpro -o ../../unxsols4.pro/bin/srvdepy Undefined first referenced symbol in file void List<Simstr>::remove(unsigned) /ultra/BuildDir/ooo_cws_src680_ooo20040704_src/xml2cmp/unxsols4.pro/obj/SunWS_cache/CC_obj_W/WmVbJvsT4WJH1DRXXo3A.o void List<const MultipleTextElement*>::remove(unsigned) /ultra/BuildDir/ooo_cws_src680_ooo20040704_src/xml2cmp/unxsols4.pro/obj/SunWS_cache/CC_obj_2/28nMcOYkZUQc26sYrgR3.o void List<const MultipleTextElement*>::insert(unsigned,const MultipleTextElement*const&) /ultra/BuildDir/ooo_cws_src680_ooo20040704_src/xml2cmp/unxsols4.pro/obj/SunWS_cache/CC_obj_2/28nMcOYkZUQc26sYrgR3.o void List<Simstr>::insert(unsigned,const Simstr&) /ultra/BuildDir/ooo_cws_src680_ooo20040704_src/xml2cmp/unxsols4.pro/obj/SunWS_cache/CC_obj_W/WmVbJvsT4WJH1DRXXo3A.o ld: fatal: Symbol referencing errors. No output written to ../../unxsols4.pro/bin/srvdepy dmake: Error code 1, while making '../../unxsols4.pro/bin/srvdepy' '---* TG_SLO.MK *---' I know this compiler is quite old, but anyway - it was successfully used for 1.1.2 builds.
To clarify things: this is my first attempt to build 680 branch after very long time. I will attach full clean log from xml2cmp project build to let people see the command line used for compiling all files.
Created attachment 16450 [details] xml2cmp build log
np->pjanik: This is a compiler problem. According to Heiner Rechtien, there is no Code problem, but the only possibility to work with that compiler version is, to use the compiler switch setting template instances = static. Of course all files have to be compiled that way then.
OK, I'll try with Forte 6 update 2 with this patch applied: diff -urN ooo_cws_src680_ooo20040704_src.orig/solenv/inc/unxsols4.mk ooo_cws_src680_ooo20040704_src/solenv/inc/unxsols4.mk --- ooo_cws_src680_ooo20040704_src.orig/solenv/inc/unxsols4.mk 2004-07-14 16:59:42.000000000 +0200 +++ ooo_cws_src680_ooo20040704_src/solenv/inc/unxsols4.mk 2004-07-14 17:01:07.000000000 +0200 @@ -204,10 +204,10 @@ LDUMP=cppfilt /b /n /o /p -CFLAGSCXXSLO += -CFLAGSCXXOBJ += +CFLAGSCXXSLO += -instances=static +CFLAGSCXXOBJ += -instances=static -LINKFLAGSAPPGUI+= -LINKFLAGSSHLGUI+= -LINKFLAGSAPPCUI+= -LINKFLAGSSHLCUI+= +LINKFLAGSAPPGUI+= -instances=static +LINKFLAGSSHLGUI+= -instances=static +LINKFLAGSAPPCUI+= -instances=static +LINKFLAGSSHLCUI+= -instances=static And will report results back. After that, I'm going to upgrade my compiler ;-)
Yes, with this patch applied, I can build xml2cmp project without problems. I will try to complete the build of 20040704 with this compiler before upgrading compiler.
This doesn't need to be integrated, but can be useful for people with the old compiler.