The reason for the linker error was the was the shell
wrapper I use for different compile options, e.g. CC42
for Forte 2 Update 2 in the Workshop 4.2 compat mode.

The usage of the "CC42" instead of "CC" value for the
runConfigure -x option results in wrong variable defi-
nitions within the Xerces makefile system, which affect
the macros within a few header files, especially

XercesDefs.hpp:
#if defined(XML_SUNCC) || defined(XML_SUNCC5)
#include    <util/Compilers/SunCCDefs.hpp>
#endif

Finally CC will include other compiler-defs than the
appropriate SunCCDefs.hpp in this case and the missing
linker symbols are missing indeed rather than some
known shared object compatibilities between WS 4.2,
WS 5.0 and Forte occur. ( in such a case "+e1 -zmuldefs"
would have helped ! )

Assuming CC is going to be used, the "-compat=4"
may not be passed to runConfigure because it would
set this option for cc too. Proceeding as follows
results in a successful build of xerces lib-sources
and samples in the compatibility mode:

1) runConfigure -p solaris -c cc -x CC -d
2) add the -compat=4 option in Makefile.incl
   (refer to the sample below)

Jan

Jan Taralczak,              http://jta.web.ag 
UBS AG, BAMS IS4S, Mürtschenstrasse 27, 
CH-8048 Zürich , tel: ++ 41 1 238 27 97 

Makefile.incl
#=============== SOLARIS SPECIFIC OPTIONS =========================
ifeq (${PLATFORM}, SOLARIS)
  ifeq (${COMPILER}, g++)
	CMP= -c ${CXXFLAGS}
	CC= g++ -c -D${PLATFORM} -D_REENTRANT -fpic
 LINK = g++ -D${PLATFORM} -fpic ${LDFLAGS}
	PLATFORM_LIB_LINK_OPTIONS=-L/usr/lib -L/usr/local/lib
	EXTRA_LINK_OPTIONS=-lc
  else
	CMP= -c ${CXXFLAGS}
	CC= CC -compat=4 -c -D${PLATFORM} -D_REENTRANT -pic
 LINK =  CC -compat=4 -D${PLATFORM} ${LDFLAGS}
	PLATFORM_LIB_LINK_OPTIONS=-L/usr/lib -lc
	EXTRA_LINK_OPTIONS=-lc -lgen
  endif
  SHLIBSUFFIX=.so
endif

> -----Original Message-----
> From: Jan Taralczak 
> Sent: Tuesday, August 14, 2001 11:23 AM
> To: 'xerces-c-dev@xml.apache.org'
> Subject: Xerces Build using Forte 6 update 2 / Solaris 2.6
> 
> 
> The Xerces library and samples build using Forte 6 update 2
> worked perfectly on my Solaris 2.6 E4500 development server.
> I only had to apply "runConfigure -p solaris -c cc -x CC -d"
> and run gmake. All test worked fine.
> 
> Although I encountered single linkage problem using the
> compatibility Mode "-compat=4" (needed in my case). There
> are two undefined symbols:
> - stricmp(const char* const, const char* const)
> - strnicmp(const char* const, const char* const, const unsigned int)
> 
> Actually I use the "-lc" option, so this shoud work. Any ideas
> welcome.
> 
> Regards Jan
> 
> 
> 
> Jan Taralczak,              http://jta.web.ag 
> UBS AG, BAMS IS4S, Mürtschenstrasse 27, 
> CH-8048 Zürich , tel: ++ 41 1 238 27 97 
>