Re: Can't build XML::Xerces

[email protected] (Jason E. Stewart)
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
"Bernard Ogden" <[email protected]> writes:

> I know this is really a developers list, but there doesn't seem to
> be a user list for Perl Xerces, so I hope nobody minds if I ask
> here.

Welcome!

This is the correct place - traffic here is pretty low, so we left
everything on one list.

> I'm attempting to build XML::Xerces on a Red Hat box using gcc 2.96.
> I've built the Xerces C library (version 2.3.0), but I try to build the
> XML::Xerces module (version 2.3.0) I get:
>
> cp Xerces.pm blib/lib/XML/Xerces.pm
> make -C Handler static
> make[1]: Entering directory
> `/home/bogden/tmp/XML-Xerces-2.3.0-4/Handler'
> /usr/bin/cc -c  -I. -IHandler -I/home/bogden/include -D_REENTRANT -O2
> -DVERSION=\"\" -DXS_VERSION=\"\" -fpic
> "-I/arm/eda/tools/dsystool/perl-5_8_3/Linux-redhat-7_2-i686/lib/CORE"
> PerlCallbackHandler.cpp
> In file included from
> /arm/eda/tools/dsystool/perl-5_8_3/Linux-redhat-7_2-i686/lib/CORE/op.h:4
> 84,
>                  from
> /arm/eda/tools/dsystool/perl-5_8_3/Linux-redhat-7_2-i686/lib/CORE/perl.h
> :2346,
>                  from PerlCallbackHandler.hpp:12,
>                  from PerlCallbackHandler.cpp:2:
> /arm/eda/tools/dsystool/perl-5_8_3/Linux-redhat-7_2-i686/lib/CORE/reentr
> .h:611: field `_crypt_struct'
> has incomplete type

This is an *old* problem that has nothing to do with Xerces, and it
was solved way back in perl-5.8.0, I don't know why it's come back.

Try this:

$ perl -V:ccflags
ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64';

You should see  -D_GNU_SOURCE in the list or you are in trouble. Look
on google for solutions.

That's about all I can suggest. (other than switching to debian ;-)

Cheers,
jas.
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.