perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject [mp2] static build problem
Date Tue, 07 Dec 2004 04:07:25 GMT
philippe, I've figured out what the problem is. static build with worker 
blows up on:

make[1]: Entering directory `/home/stas/'
/home/stas/ --silent --mode=compile 
gcc [...] -static -c exports.c && touch exports.lo

In file included from exports.c:35:
iperlsys.h: No such file or directory
In file included from exports.c:35:
/home/stas/ warning: 
parameter names (without types) in function declaration
/home/stas/ error: 
syntax error before '*' token

Looking at httpd-2.0/server/exports.c: we find:

#include "modperl_apache_compat.h"
#include "modperl_apache_includes.h"
#include "modperl_apr_compat.h"
#include "modperl_apr_includes.h"
#include "modperl_apr_perlio.h"
#include "modperl_bucket.h"
#include "modperl_callback.h"
#include "modperl_cgi.h"
#include "modperl_cmd.h"

notice that "mod_perl.h" is included much later, which is the reason for 
the problem.

but "modperl_apr_perlio.h" was never meant to be public, it lives in
xs/APR/PerlIO and used by PerlIO.xs

The rest of the errors (and there are many), like:

In file included from exports.c:36:
/home/stas/ error: syntax 
  before "apr_bucket_alloc_t"
In file included from exports.c:37:
/home/stas/ error: 
syntax err
or before "modperl_handler_t"

again those files aren't supposed to be included before
#include "mod_perl.h", but Apache doesn't know about that. I'm not
sure how those end up in exports.c and how to make them listed in the
right order.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message