You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by dr...@airtel.es on 2001/07/04 13:38:42 UTC
I am so desesperated, please have a look at this solaris linking error
I am trying to port my xerces-c application from Win32 to Solaris, and I
have found this error message when I try to link the compiled code, I set
all these environment variables:
export XERCESCROOT=<wherever you installed Xerces-C>
export ICUROOT=<wherever you installed ICU>
export LD_LIBRARY_PATH=$XERCESCROOT/lib:$LD_LIBRARY_PATH
But I obtainned the following errors, I don't know the reason why the
linker doesn't find the references to the objects included in the dynamic
libraries. If is there anyone who can help me ....?
The error:
"BS-1062.c", line 15: Warning: String literal converted to char* in initializati
on.
"BS-1062.c", line 15: Warning: String literal converted to char* in initializati
on.
"BS-1062.c", line 29: Warning (Anachronism): Using extern "C" int(*)(int,char**)
to initialize int(*)(int,char**).
"BS-1062.c", line 30: Warning (Anachronism): Using extern "C" void(*)() to initi
alize void(*)().
"BS-1062.c", line 31: Warning (Anachronism): Using extern "C" int(*)(int) to ini
tialize int(*)(int).
5 Warning(s) detected.
Undefined first referenced
symbol in file
MemBufInputSource::~MemBufInputSource() /home/swcomun/tuxxml/obj/debug/con
structorfml.o
Iostream_init::Iostream_init(void) /home/swcomun/tuxxml/xerces/lib
/libxerces-c1_5.so
MemBufInputSource::MemBufInputSource(const unsigned char*const,const unsigned,co
nst char*const,const bool) /home/swcomun/tuxxml/obj/debug/constructorfml.o
_vector_delete_ /home/swcomun/tuxxml/xerces/lib/libxerces-c1
_5.so
unsigned short*XMLString::transcode(const char*const) /home/swcomun/tuxxml/obj/
debug/constructorfml.o
Iostream_init::~Iostream_init(void) /home/swcomun/tuxxml/xerces/li
b/libxerces-c1_5.so
unsigned SAXParseException::getLineNumber()const /home/swcomun/tuxxml/obj/debug/
handler_xml.o
_vector_new_ /home/swcomun/tuxxml/xerces/lib/libxerces-c1
_5.so
char*XMLString::transcode(const unsigned short*const) /home/swcomun/tuxxml/obj/
debug/handler_xml.o
void XMLPlatformUtils::Initialize() /home/swcomun/tuxxml/obj/debug/constructorfm
l.o
SAX2XMLReaderImpl::SAX2XMLReaderImpl() /home/swcomun/tuxxml/obj/debug/cons
tructorfml.o
__RTTI__1nMXMLException_ /home/swcomun/tuxxml/obj/debug/constructorfm
l.o
ld: fatal: Symbol referencing errors. No output written to /home/swcomun/tuxxml/
obj/debug/xmlfmlsrv
CMDTUX_CAT:1832: ERROR: can't execute CC -I$TUXDIR/include -o /home/swcomun/tux
xml/obj/debug/xmlfmlsrv BS-1062.c -L${TUXDIR}/lib /home/swcomun/tuxxml/obj/debu
g/xerror.o /home/swcomun/tuxxml/obj/debug/CTrace.o /home/swcomun/tuxxml/obj/de
bug/Lista.o /home/swcomun/tuxxml/obj/debug/xmlfml_init.o /home/swcomun/tuxxml/
obj/debug/xmlfmlsrv.o /home/swcomun/tuxxml/obj/debug/constructorfml.o /home/sw
comun/tuxxml/obj/debug/conversorgenerico.o /home/swcomun/tuxxml/obj/debug/handl
er_xml.o /home/swcomun/tuxxml/obj/debug/libconversionxmlfml.o /home/swcomun/tu
xxml/obj/debug/xmlpruebasrv.o /home/swcomun/tuxxml/obj/debug/errorxml.o -L/home
/swcomun/tuxxml/xerces/lib -L/usr/lib -L/usr/local/lib -lxerces-c1_5 -lkcs -lXm
-lgen -ltux -lbuft -ltux2 -lfml -lfml32 -lgp -lnsl -lsocket
*** Error code 1
make: Fatal error: Command failed for target `/home/swcomun/tuxxml/obj/debug/xml
fmlsrv'
Thanks a lot
David Rey
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: I am so desesperated, please have a look at this solaris linking
error
Posted by Michael Schneider <mi...@sdrc.com>.
Couple of questions,
what version of the sun compiler are you using,
what command line options are you using when you compile?
Are you linking in the same directory that you compiled in?
Mike
dreybla@airtel.es wrote:
> I am trying to port my xerces-c application from Win32 to Solaris, and I
> have found this error message when I try to link the compiled code, I set
> all these environment variables:
> export XERCESCROOT=<wherever you installed Xerces-C>
> export ICUROOT=<wherever you installed ICU>
> export LD_LIBRARY_PATH=$XERCESCROOT/lib:$LD_LIBRARY_PATH
>
> But I obtainned the following errors, I don't know the reason why the
> linker doesn't find the references to the objects included in the dynamic
> libraries. If is there anyone who can help me ....?
>
> The error:
>
> "BS-1062.c", line 15: Warning: String literal converted to char* in initializati
> on.
> "BS-1062.c", line 15: Warning: String literal converted to char* in initializati
> on.
> "BS-1062.c", line 29: Warning (Anachronism): Using extern "C" int(*)(int,char**)
> to initialize int(*)(int,char**).
> "BS-1062.c", line 30: Warning (Anachronism): Using extern "C" void(*)() to initi
> alize void(*)().
> "BS-1062.c", line 31: Warning (Anachronism): Using extern "C" int(*)(int) to ini
> tialize int(*)(int).
> 5 Warning(s) detected.
> Undefined first referenced
> symbol in file
> MemBufInputSource::~MemBufInputSource() /home/swcomun/tuxxml/obj/debug/con
> structorfml.o
> Iostream_init::Iostream_init(void) /home/swcomun/tuxxml/xerces/lib
> /libxerces-c1_5.so
> MemBufInputSource::MemBufInputSource(const unsigned char*const,const unsigned,co
> nst char*const,const bool) /home/swcomun/tuxxml/obj/debug/constructorfml.o
> _vector_delete_ /home/swcomun/tuxxml/xerces/lib/libxerces-c1
> _5.so
> unsigned short*XMLString::transcode(const char*const) /home/swcomun/tuxxml/obj/
> debug/constructorfml.o
> Iostream_init::~Iostream_init(void) /home/swcomun/tuxxml/xerces/li
> b/libxerces-c1_5.so
> unsigned SAXParseException::getLineNumber()const /home/swcomun/tuxxml/obj/debug/
> handler_xml.o
> _vector_new_ /home/swcomun/tuxxml/xerces/lib/libxerces-c1
> _5.so
> char*XMLString::transcode(const unsigned short*const) /home/swcomun/tuxxml/obj/
> debug/handler_xml.o
> void XMLPlatformUtils::Initialize() /home/swcomun/tuxxml/obj/debug/constructorfm
> l.o
> SAX2XMLReaderImpl::SAX2XMLReaderImpl() /home/swcomun/tuxxml/obj/debug/cons
> tructorfml.o
> __RTTI__1nMXMLException_ /home/swcomun/tuxxml/obj/debug/constructorfm
> l.o
> ld: fatal: Symbol referencing errors. No output written to /home/swcomun/tuxxml/
> obj/debug/xmlfmlsrv
> CMDTUX_CAT:1832: ERROR: can't execute CC -I$TUXDIR/include -o /home/swcomun/tux
> xml/obj/debug/xmlfmlsrv BS-1062.c -L${TUXDIR}/lib /home/swcomun/tuxxml/obj/debu
> g/xerror.o /home/swcomun/tuxxml/obj/debug/CTrace.o /home/swcomun/tuxxml/obj/de
> bug/Lista.o /home/swcomun/tuxxml/obj/debug/xmlfml_init.o /home/swcomun/tuxxml/
> obj/debug/xmlfmlsrv.o /home/swcomun/tuxxml/obj/debug/constructorfml.o /home/sw
> comun/tuxxml/obj/debug/conversorgenerico.o /home/swcomun/tuxxml/obj/debug/handl
> er_xml.o /home/swcomun/tuxxml/obj/debug/libconversionxmlfml.o /home/swcomun/tu
> xxml/obj/debug/xmlpruebasrv.o /home/swcomun/tuxxml/obj/debug/errorxml.o -L/home
> /swcomun/tuxxml/xerces/lib -L/usr/lib -L/usr/local/lib -lxerces-c1_5 -lkcs -lXm
> -lgen -ltux -lbuft -ltux2 -lfml -lfml32 -lgp -lnsl -lsocket
> *** Error code 1
> make: Fatal error: Command failed for target `/home/swcomun/tuxxml/obj/debug/xml
> fmlsrv'
>
> Thanks a lot
>
> David Rey
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org