Issue 31340 - xml2cmp/source/finder: Undefined symbols
Summary: xml2cmp/source/finder: Undefined symbols
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: Sun Solaris
: P3 Trivial (vote)
Target Milestone: ---
Assignee: pavel
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-11 19:55 UTC by pavel
Modified: 2004-08-24 16:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
xml2cmp build log (2.36 KB, application/x-gzip)
2004-07-14 09:07 UTC, pavel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2004-07-11 19:55:27 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.
Comment 1 pavel 2004-07-14 09:06:20 UTC
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.
Comment 2 pavel 2004-07-14 09:07:36 UTC
Created attachment 16450 [details]
xml2cmp build log
Comment 3 nikolai.pretzell 2004-07-14 14:24:46 UTC
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.

Comment 4 pavel 2004-07-14 16:43:36 UTC
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 ;-)
Comment 5 pavel 2004-07-14 20:51:37 UTC
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.
Comment 6 pavel 2004-08-24 16:36:29 UTC
This doesn't need to be integrated, but can be useful for people with the old
compiler.