Build problems for XML::Xerces on FreeBSD

"Patrick Kuijvenhoven" <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <4905BC209B569E44BB1D73141D0A372708B7AE@horta.office.kabelfoon.intern>
Hi, 

i need some help with compiling XML::Xerces on FreeBSD 4.7. Relevant information is shown below:

# perl Makefile.PL
Using XERCES_LIB = /usr/local/include/xercesc/
Using XERCES_INCLUDE = /usr/local/include/
using config file: /usr/ports/textproc/xerces-c2/work/xerces-c-src_2_3_0//src/xercesc/config.status

Found CXX      = c++
Found CXXFLAGS =  -pipe -DNONEXPORTABLE_CRYPT -w -DXML_USE_LIBICONV -I/usr/local/include -DXML_USE_INMEM_MESSAGELOADER -D_THREAD_SAFE -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET
Found LDFLAGS  =
Using Xerces-C version info from /usr/local/include//xercesc/util/XercesVersion.hpp
Checking to see if libxerces is in your library path...Success!!
Using Xerces-C version: 2.3.0
Note (probably harmless): No library found for -lpthread
Writing Makefile for Handler
Writing Makefile for XML::Xerces

# c++ -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]

# gmake
gmake -C Handler static
gmake[1]: Entering directory `/usr/local/src/XML-Xerces-2.3.0-2/Handler'
c++ -c  -I. -IHandler -I/usr/local/include/ -pipe -DNONEXPORTABLE_CRYPT -w -DXML_USE_LIBICONV -I/usr/local/include -DXML_USE_INMEM_MESSAGELOADER -D_THREAD_SAFE -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET -D_REENTRANT -O   -DVERSION=\"\" -DXS_VERSION=\"\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.1/mach/CORE"   PerlCallbackHandler.cpp
c++ -c  -I. -IHandler -I/usr/local/include/ -pipe -DNONEXPORTABLE_CRYPT -w -DXML_USE_LIBICONV -I/usr/local/include -DXML_USE_INMEM_MESSAGELOADER -D_THREAD_SAFE -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET -D_REENTRANT -O   -DVERSION=\"\" -DXS_VERSION=\"\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.1/mach/CORE"   PerlContentCallbackHandler.cpp
In file included from PerlContentCallbackHandler.cpp:2:
PerlContentCallbackHandler.hpp:10: syntax error before `:'
gmake[1]: *** [PerlContentCallbackHandler.o] Error 1
gmake[1]: Leaving directory `/usr/local/src/XML-Xerces-2.3.0-2/Handler'
gmake: *** [blib/arch/auto/Handler/Handler.a] Error 2

I allready tried to compile the source with g++33 (gcc version 3.3.1 20030707 (prerelease) [FreeBSD]), but it still doesn't compile.

Any help appreciated :)

Kind regards,

Patrick Kuijvenhoven, 
R&D Team Kabelfoon
E: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.