FAQ
Greetings,

I'm running into the same problem Gavin Carr seemed to be having
eariler this month. I've downloaded Embperl-2.0rc3 and it has the
Makefile.PL Gerald posted which seemed to fix this problem. Any
guidance would be appreciated. Below are the details.

I'm trying to build against Apache 2.0.53 with the following directory
structure:

/usr/local/wsg-dev/httpd
/usr/local/wsg-dev/apr
/usr/local/wsg-dev/apr-util

Here's the output from perl Makefile.PL :
[mbockol Embperl-2.0rc3]$ perl Makefile.PL
Found mod_perl 2.0
Build with support for Apache mod_perl?(y/n) [y]
Use /usr/local/wsg-dev/httpd as Apache source(y/n) [y]
Will use /usr/local/wsg-dev/httpd for Apache Headers
Apache Version Server version: Apache/2.0.53
+ Load dynamic module mod_actions.c
(/usr/local/wsg-dev/httpd/modules/mod_actions.so)
+ Load dynamic module mod_cgi.c
(/usr/local/wsg-dev/httpd/modules/mod_cgi.so)
+ Load dynamic module mod_alias.c
(/usr/local/wsg-dev/httpd/modules/mod_alias.so)
+ Load dynamic module mod_env.c
(/usr/local/wsg-dev/httpd/modules/mod_env.so)
+ Load dynamic module mod_perl.c
(/usr/local/wsg-dev/httpd/modules/mod_perl.so)
+ Load dynamic module mod_mime.c
(/usr/local/wsg-dev/httpd/modules/mod_mime.so)
+ Load dynamic module mod_dir.c
(/usr/local/wsg-dev/httpd/modules/mod_dir.so)
+ mod_perl was build with USE_DSO
Test start /usr/local/wsg-dev/httpd/bin/httpd
Test httpd will run as user mbockol and group mbockol
Test httpd will listen on port 8531
Found mod_perl Version 1.999021
Found LWP::UserAgent Version 2.031
Found HTML::HeadParser Version 2.18
Apache::Session not installed on this system
-> Disable tests for persistent data storage
Found File::Spec Version 0.87
Found CGI Version 3.05
Enter path of XALAN base directory or single dot for not using XALAN [.]
Xalan will not be linked into Embperl
Found libxml2 2.6.16 installed under /usr
Found libxslt 1.1.11 installed under /usr
Checking if your kit is complete...
Looks good
Writing Makefile for Embperl::App::Config
Writing Makefile for Embperl::App
Writing Makefile for Embperl::Component::Config
Writing Makefile for Embperl::Component::Output
Writing Makefile for Embperl::Component::Param
Writing Makefile for Embperl::Component
Writing Makefile for Embperl::Req::Config
Writing Makefile for Embperl::Req::Param
Writing Makefile for Embperl::Req
Writing Makefile for Embperl::Syntax
Writing Makefile for Embperl::Thread
Writing Makefile for Embperl
Writing Makefile for WrapXS
Writing Makefile for Embperl

Looks good so far. The generated Makefile is attached to this message.

When I run make it fails in this way:

[mbockol Embperl-2.0rc3]$ make
-snip a lot of copying-
make[1]: Entering directory
`/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/xs'
make[2]: Entering directory
`/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/xs/Embperl'
make[3]: Entering directory
`/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/xs/Embperl/App'
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap ../../typemap App.xs >
App.xsc && mv App.xsc App.c
gcc -c -I/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3
-I/usr/local/wsg-dev/httpd/include -I/usr/local/wsg-dev/httpd/regex
-I/usr/local/wsg-dev/httpd/os/unix
-I/usr/local/wsg-dev/apr/include/apr-0 -I/usr/include/libxml2
-I/usr/include/libxml2
-I/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/xs -D_REENTRANT
-D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
-DVERSION=\"2.0rc3\" -DXS_VERSION=\"2.0rc3\" -fPIC
"-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" -DAPACHE
-DAPACHE2 -DEP2 -DLIBXSLT App.c
In file included from /usr/local/wsg-dev/httpd/include/httpd.h:30,
from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:147,
from App.xs:13:
/usr/local/wsg-dev/httpd/include/ap_config.h:21:23: apr_hooks.h: No
such file or directory
/usr/local/wsg-dev/httpd/include/ap_config.h:22:32:
apr_optional_hooks.h: No such file or directory
In file included from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:147,
from App.xs:13:
/usr/local/wsg-dev/httpd/include/httpd.h:40:25: apr_buckets.h: No such
file or directory
/usr/local/wsg-dev/httpd/include/httpd.h:666:21: apr_uri.h: No such
file or directory
In file included from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:147,
from App.xs:13:
/usr/local/wsg-dev/httpd/include/httpd.h:864: error: syntax error
before "apr_uri_t"
/usr/local/wsg-dev/httpd/include/httpd.h:864: warning: no semicolon at
end of struct or union
/usr/local/wsg-dev/httpd/include/httpd.h:914: error: syntax error
before '}' token
/usr/local/wsg-dev/httpd/include/httpd.h:1095: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/httpd.h:1095: warning: no semicolon at
end of struct or union
/usr/local/wsg-dev/httpd/include/httpd.h:1099: error: syntax error
before '}' token
/usr/local/wsg-dev/httpd/include/httpd.h:1099: warning: data definition
has no type or storage class
/usr/local/wsg-dev/httpd/include/httpd.h:1102: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/httpd.h:1102: warning: no semicolon at
end of struct or union
/usr/local/wsg-dev/httpd/include/httpd.h:1103: warning: data definition
has no type or storage class
/usr/local/wsg-dev/httpd/include/httpd.h:1112: error: syntax error
before "core_output_filter_ctx_t"
/usr/local/wsg-dev/httpd/include/httpd.h:1112: warning: no semicolon at
end of struct or union
/usr/local/wsg-dev/httpd/include/httpd.h:1113: warning: data definition
has no type or storage class
/usr/local/wsg-dev/httpd/include/httpd.h:1114: error: syntax error
before '}' token
/usr/local/wsg-dev/httpd/include/httpd.h:1114: warning: data definition
has no type or storage class
In file included from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:148,
from App.xs:13:
/usr/local/wsg-dev/httpd/include/http_config.h:945: error: syntax error
before "int"
In file included from
/usr/local/wsg-dev/apr/include/apr-0/apr_portable.h:30,
from
/usr/local/wsg-dev/httpd/include/http_protocol.h:22,
from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:149,
from App.xs:13:
/usr/local/wsg-dev/apr/include/apr-0/apr_thread_proc.h:53: warning:
data definition has no type or storage class
/usr/local/wsg-dev/apr/include/apr-0/apr_thread_proc.h:451: error:
syntax error before "apr_cmdtype_e"
In file included from
/usr/local/wsg-dev/httpd/include/http_protocol.h:25,
from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:149,
from App.xs:13:
/usr/local/wsg-dev/httpd/include/util_filter.h:136: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/util_filter.h:138: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/util_filter.h:274: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/util_filter.h:288: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/util_filter.h:440: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/util_filter.h:451: error: syntax error
before '*' token
/usr/local/wsg-dev/httpd/include/util_filter.h:459: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/util_filter.h:496: error: syntax error
before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/util_filter.h:507: error: syntax error
before "apr_bucket_brigade"
In file included from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:149,
from App.xs:13:
/usr/local/wsg-dev/httpd/include/http_protocol.h:40: error: syntax
error before "void"
/usr/local/wsg-dev/httpd/include/http_protocol.h:72: error: syntax
error before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/http_protocol.h:567: error: syntax
error before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/http_protocol.h:600: error: syntax
error before "int"
/usr/local/wsg-dev/httpd/include/http_protocol.h:639: error: syntax
error before "apr_bucket_refcount"
/usr/local/wsg-dev/httpd/include/http_protocol.h:639: warning: no
semicolon at end of struct or union
/usr/local/wsg-dev/httpd/include/http_protocol.h:644: error: syntax
error before '}' token
/usr/local/wsg-dev/httpd/include/http_protocol.h:646: error: syntax
error before "ap_bucket_type_error"
/usr/local/wsg-dev/httpd/include/http_protocol.h:646: warning: data
definition has no type or storage class
/usr/local/wsg-dev/httpd/include/http_protocol.h:664: error: syntax
error before '*' token
/usr/local/wsg-dev/httpd/include/http_protocol.h:664: error: syntax
error before '*' token
/usr/local/wsg-dev/httpd/include/http_protocol.h:665: warning: data
definition has no type or storage class
/usr/local/wsg-dev/httpd/include/http_protocol.h:676: error: syntax
error before '*' token
/usr/local/wsg-dev/httpd/include/http_protocol.h:678: error: syntax
error before "apr_bucket_alloc_t"
/usr/local/wsg-dev/httpd/include/http_protocol.h:678: warning: data
definition has no type or storage class
/usr/local/wsg-dev/httpd/include/http_protocol.h:680: error: syntax
error before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/http_protocol.h:681: error: syntax
error before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/http_protocol.h:683: error: syntax
error before "apr_bucket_brigade"
/usr/local/wsg-dev/httpd/include/http_protocol.h:684: error: syntax
error before "apr_bucket_brigade"
In file included from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:150,
from App.xs:13:
/usr/local/wsg-dev/httpd/include/http_log.h:276: error: syntax error
before "void"
In file included from
/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/ep.h:152,
from App.xs:13:
/usr/local/wsg-dev/httpd/include/ap_compat.h:21:24: apu_compat.h: No
such file or directory
make[3]: *** [App.o] Error 1
make[3]: Leaving directory
`/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/xs/Embperl/App'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory
`/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/xs/Embperl'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory
`/home/mbockol/wsg-src/source_archives/Embperl-2.0rc3/xs'
make: *** [subdirs] Error 2


I've tried pointing Makefile.PL at my httpd-2.0.53 source tree and at
httpd/include with no success. The apr_hooks.h file it's complaining
about is in /usr/local/wsg-dev/apr-util/include/apr-0 and I've modified
the Makefile in Embperl-2.0rc3/xs/Embperl/App to
-I/usr/local/wsg-dev/apr-util/include/apr-0 but it still fails.

I'd appreciate any suggestions.

Thanks,
Matt Bockol
Web Technical Administrator
Carleton College

Search Discussions

  • Gavin Carr at Mar 29, 2005 at 11:52 pm
    Hi Matt,
    On Tue, Mar 29, 2005 at 04:46:32PM -0600, Matt Bockol wrote:
    I'm running into the same problem Gavin Carr seemed to be having
    eariler this month. I've downloaded Embperl-2.0rc3 and it has the
    Makefile.PL Gerald posted which seemed to fix this problem. Any
    guidance would be appreciated. Below are the details.
    For the archives, Embperl-2.0rc3 builds fine for me now on RHEL4
    against the stock httpd and mod_perl 2.0.0RC4. I've also got an
    Embperl RPM available if anyone would like it.
    I'm trying to build against Apache 2.0.53 with the following directory
    structure:

    /usr/local/wsg-dev/httpd
    /usr/local/wsg-dev/apr
    /usr/local/wsg-dev/apr-util
    Your Makefile is expecting the apr include files to be in
    /usr/local/wsg-dev/apr/include/apr-0 - is that where they actually are?

    Out of interest, any particular reason you're using custom builds
    rather than the stock EL4 packages?

    Cheers,
    Gavin


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
    For additional commands, e-mail: embperl-help@perl.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupembperl @
categoriesmodperl, perl
postedMar 29, '05 at 10:46p
activeMar 29, '05 at 11:52p
posts2
users2
websiteperl.apache.org

2 users in discussion

Gavin Carr: 1 post Matt Bockol: 1 post

People

Translate

site design / logo © 2022 Grokbase