Subject: Building p5-XML-Parser on RHEL Linux
To: None <>
From: pete wright <>
List: pkgsrc-users
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:

"[] note: The real command line, after the pkgsrc wrapper, was:

-c -I/usr/local/export/PSRC/pkgsrc/textproc/p5-XML-Parser/work/.buildlink/include
-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 ../blib/lib/XML/Parser/

/usr/local/export/PSRC/lib/perl5/5.8.0/ExtUtils/xsubpp -noprototypes
-typemap /usr/local/export/PSRC/lib/perl5/5.8.0/ExtUtils/typemap
-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
-Wdeclaration-after-statement -I/usr/local/export/PSRC//include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2
-I/usr/local/export/PSRC//include -I/usr/include
-I/usr/local/export/PSRC//include -I/usr/include    -DVERSION=\"2.34\"
 -DXS_VERSION=\"2.34\" -fpic

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!



Pete Wright
NYC's *BSD User Group