Subject: Building p5-XML-Parser on RHEL Linux
To: None <pkgsrc-users@netbsd.org>
From: pete wright <nomadlogic@gmail.com>
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:

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

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

/usr/local/export/PSRC/bin/perl
/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
"-I/usr/local/export/PSRC/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"
  Expat.h

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!

thanks!

-pete

-- 
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group