Expat / XML::Parser / _crypt_struct

S

sbk

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-
mgvNC9/Expat'
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=64 -I/usr/include/gdbm -O2 -DVERSION=\"2.36\" -
DXS_VERSION=\"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-
multi/CORE/op.h:497,
from /opt/vdops/lib/perl5/5.8.8/i686-linux-thread-
multi/CORE/perl.h:2754,
from Expat.xs:15:
/opt/vdops/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/reentr.h:612:
error: field ‘_crypt_struct’ has incomplete type
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/home/netops/.cpan/build/XML-Parser-2.36-
mgvNC9/Expat'
make: *** [subdirs] Error 2
(/usr/bin/make exited with 512)


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

#ifdef HAS_CRYPT_R
#if CRYPT_R_PROTO == REENTRANT_PROTO_B_CCD
CRYPTD* _crypt_data;
#else
struct crypt_data _crypt_struct;
#endif
#endif /* HAS_CRYPT_R */


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

==> where should this be defined?

--sk

stuart kendrick
fhcrc
 
B

Ben Bullock

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

#ifdef HAS_CRYPT_R
#if CRYPT_R_PROTO == REENTRANT_PROTO_B_CCD
CRYPTD* _crypt_data;
#else
struct crypt_data _crypt_struct;
#endif
#endif /* HAS_CRYPT_R */


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

==> where should this be defined?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top