[Melbourne-pm] SWIG compile errors?

Malcolm Herbert melbourne-pm at mjch.net
Thu Sep 7 18:54:08 PDT 2006


I'm trying to build XML::Xerces for Solaris 10 using the Sun Studio 11
compiler and I'm running into compiler errors when compiling Xerces.cpp:

|CC -c  -I. -IHandler -I/store/mjch/build/xerces-c-src_2_7_0/include -w -DNDEBUG -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET -D_REENTRANT -O   -DVERSION=\"2.7.0-0\" -DXS_VERSION=\"2.7.0-0\" -KPIC "-I/usr/local/lib/perl5/5.8.7/sun4-solaris-thread-multi/CORE"   Xerces.cpp
|"Xerces.cpp", line 1901: Error: Formal argument maybe_tainted of type char* in call to Perl_sv_vsetpvfn(interpreter*, sv*, const char*, unsigned, void**, sv**, long, char*) is being passed bool*.
|"Xerces.cpp", line 67917: Warning (Anachronism): Using int(*)(interpreter*,sv*,magic*) to initialize extern "C" int(*)(interpreter*,sv*,magic*).
|"Xerces.cpp", line 67917: Warning (Anachronism): Using int(*)(interpreter*,sv*,magic*) to initialize extern "C" int(*)(interpreter*,sv*,magic*).
:
: [ followed by ~480 similar warnings before exiting ]
:

xerces-c itself seems to compile and install OK, but this error is a    
show-stopper, unfortunately ...                                         

I've tried building the same package but using the Sun Freeware-packaged
gcc compiler (version 3.4.3) but that bails at the linking stage
complaining that it can't find libCrun, even when the paths that contain
it (/usr/lib and /usr/sparcv9) are explicitly added to LDFLAGS ...

... has anyone built this package under Solaris 10 who would be able to
give me a hand?

I'm hoping I don't need to attempt to install SWIG and recreate
Xerces.cpp somehow but it looks like it may be necessary, worse luck ...

thanks,
Malcolm

-- 
Malcolm Herbert                                This brain intentionally
mjch at mjch.net                                                left blank


More information about the Melbourne-pm mailing list