[xerces_c 0005223]: Undefined xerces symbols encountered when trying to compile test program
Mantis Bug Tracker via bug-notifications
bug-notifications at lists.opencsw.org
Wed Dec 10 14:05:08 CET 2014
The following issue has been ASSIGNED.
======================================================================
https://www.opencsw.org/mantis/view.php?id=5223
======================================================================
Reported By: soladmin
Assigned To: dam
======================================================================
Project: xerces_c
Issue ID: 5223
Category: packaging
Reproducibility: always
Severity: crash
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2014-12-08 23:21 CET
Last Modified: 2014-12-10 14:05 CET
======================================================================
Summary: Undefined xerces symbols encountered when trying to
compile test program
Description:
I was trying to build a project against xerces_c today. However, the
configure test for xerces was failing (see below). I was on kiel, so I
have updated to the current stable release and tried the build again.
However, the current stable release also has the same linker problems:
g++ -o conftest -Wall -O2 -DNDEBUG -D_REENTRANT -pthreads -L/opt/csw/lib
-R/opt/csw/lib conftest.cpp -lxerces-c -lsocket -lm
Undefined first referenced
symbol in file
_ZN11xercesc_3_116XMLPlatformUtils10InitializeEPKcS2_PNS_12PanicHandlerEPNS_13MemoryManagerE
/var/tmp//ccCvYlj8.o
_ZN11xercesc_3_16XMLUni22fgXercescDefaultLocaleE /var/tmp//ccCvYlj8.o
ld: fatal: symbol referencing errors. No output written to conftest
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "XML-Security-C"
| #define PACKAGE_TARNAME "xml-security-c"
| #define PACKAGE_VERSION "1.7.2"
| #define PACKAGE_STRING "XML-Security-C 1.7.2"
| #define PACKAGE_BUGREPORT "dev at santuario.apache.org"
| #define PACKAGE_URL ""
| #define PACKAGE "xml-security-c"
| #define VERSION "1.7.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD_PRIO_INHERIT 1
| #define HAVE_PTHREAD 1
| #define HAVE_LIBM 1
| #define HAVE_LIBSOCKET 1
| #define HAVE_UNISTD_H 1
| #define XSEC_HAVE_STRCASECMP 1
| /* end confdefs.h. */
| #include <xercesc/util/PlatformUtils.hpp>
| int
| main ()
| {
| xercesc::XMLPlatformUtils::Initialize()
| ;
| return 0;
| }
======================================================================
----------------------------------------------------------------------
(0010988) soladmin (reporter) - 2014-12-09 20:52
https://www.opencsw.org/mantis/view.php?id=5223#c10988
----------------------------------------------------------------------
I was thinking about this more. I tried to use the CSW gcc/g++ compiler to
build against this library. However, I bet that xerces was compiled with
the SUNWspro compiler, so this may indicate why I am getting errors trying
to link against the xerces library when building with the GNU compiler.
So, this may not be a bug at all... Sorry
More information about the bug-notifications
mailing list