Hi Gerald,

Embperl2 seems to have compilation problems on RedHat Enterprise 
Linux 3 and 4 because RedHat have split the APR libraries into 
separate packages from the httpd apache packages. Specifically, all 
the apr include headers are found in /usr/include/apr-0 rather than 
being included in /usr/include/httpd. 

The build fails thusly:

  make[3]: Entering directory `/export/opt/src/embperl/xs/Embperl/App'
  /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap ../../typemap  App.xs > App.xsc 
&& mv App.xsc App.c
  gcc -c  -I/export/opt/src/embperl -I/usr/include/httpd 
-I/usr/include/httpd/regex -I/usr/include/httpd/os/unix -I/usr/include/libxml2 
-I/usr/include/libxml2 -I/export/opt/src/embperl/xs -D_REENTRANT -D_GNU_SOURCE 
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe 
-march=i386 -mcpu=i686   -DVERSION=\"2.0rc3\" -DXS_VERSION=\"2.0rc3\" -fPIC 
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"  -DAPACHE -DAPACHE2 -DEP2 
-DLIBXSLT  App.c
  In file included from /usr/include/httpd/httpd.h:29,
                   from /export/opt/src/embperl/ep.h:147,
                   from App.xs:13:
  /usr/include/httpd/ap_config.h:19:17: apr.h: No such file or directory
  /usr/include/httpd/ap_config.h:20:23: apr_hooks.h: No such file or directory
  /usr/include/httpd/ap_config.h:21:32: apr_optional_hooks.h: No such file or 
directory
  (and so on ...)

So a couple of questions:

- is it possible to get a -I/usr/include/apr-0 included somewhere in the build
  system? (perhaps autodetecting if the dir exists or something?)

- is there a nice way of forcing this additional include directory at build 
  time using the current code?


Cheers,
Gavin

--
Open Fusion Pty. Ltd.                [ Linux - Web - Databases - Security ]
Open Source Business Solutions                 http://www.openfusion.com.au
p: 02 9875 5032                f: 02 9875 4317               m: 0403 171712
- Fashion is a variable, but style is a constant - Programming Perl


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to