Subject: Building p5-XML-Parser on RHEL Linux
To: None <firstname.lastname@example.org>
From: pete wright <email@example.com>
Date: 02/05/2007 17:37:10
Hi, I've been trying to get p5-XML-Parser built on a RedHat Ent.Linux4
system and am running into a wierd issue i was hoping someone could
help me with.
here is the generic error message I am getting:
"[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing
-pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"2.34\"
-DXS_VERSION=\"2.34\" -fpic Expat.c
*** Error code 1
after some digging i found this interesting bit (at the beginning of
the build process):
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
-typemap typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
gcc -c -I/usr/local/export/PSRC//include -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2
-I/usr/local/export/PSRC//include -I/usr/include -DVERSION=\"2.34\"
Expat.xs:14:20: EXTERN.h: No such file or directory
So, in Expat.xs we define EXTERN.h - but this is not found (many other
includes are not found as well). What is interesting to me is that
EXTERN.h does exist in one of the -I strings that are defined in the
gcc line above (/usr/local/export/PSRC/include).
there are also error messages stating that Expat.xs can't find perl.h,
XSUB.h, patchlevel.h. these files do exist as well.
any help with debugging this would be greatly appreciated!
NYC's *BSD User Group