Expat / XML::Parser / _crypt_struct

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
how do i dig deeper into this issue?

i'm trying to install XML::Parser:

make[1]: Entering directory `/home/netops/.cpan/build/XML-Parser-2.36-
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
/opt/vdops/bin/perl /opt/vdops/lib/perl5/5.8.8/ExtUtils/xsubpp -
noprototypes -ty
pemap /opt/vdops/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap
Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
cc -c   -I/opt/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O2   -DVERSION=3D\"2.36\" -
DXS_VERSION=3D\"2.36\" -fpic "-I/opt/vdops/lib/perl5/5.8.8/i686-linux-
thread-multi/CORE"   Expat.c
In file included from /opt/vdops/lib/perl5/5.8.8/i686-linux-thread-
                 from /opt/vdops/lib/perl5/5.8.8/i686-linux-thread-
                 from Expat.xs:15:
error: field_crypt_struct=92 has incomplete type
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/home/netops/.cpan/build/XML-Parser-2.36-
make: *** [subdirs] Error 2
(/usr/bin/make exited with 512)

the relevant section (around line 612) from 'reentr.h' looks like

#ifdef HAS_CRYPT_R
        CRYPTD* _crypt_data;
        struct crypt_data _crypt_struct;
#endif /* HAS_CRYPT_R */

so, presumably, the data type "_crypt_struct" hasn't been defined

=3D=3D> where should this be defined?


stuart kendrick

Re: Expat / XML::Parser / _crypt_struct

On Mon, 16 Jun 2008 07:43:47 -0700, sbk wrote:

Quoted text here. Click to load it

I dunno, but if I had that problem the first thing I'd try is

#undef HAS_CRYPT_R

to just skip the whole thing, and see if I could get it to compile
without the crypt thing. If you need the crypt thing, then you'll have to
"grep" through the C header files for _crypt_struct until you find it.

Site Timeline