You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Oskar Ahner <os...@osz.nu> on 2006/09/07 17:12:03 UTC

Embperl 2.2.0 compile error

Hi all!

0. Platform: Fedora core 5

1. I have compiled mod_perl-2.0.2  _statically_ toghether with apache 
httpd-2.2.3 and installed it below /opt/apache2.

2. I have confirmed that mod_perl is statically linked with the httpd 
binary:

/opt/apache2/bin/httpd -l
Compiled in modules:
   core.c
   mod_perl.c
   mod_authn_file.c
   mod_authn_default.c
   mod_authz_host.c
   mod_authz_groupfile.c
   mod_authz_user.c
   mod_authz_default.c
   mod_auth_basic.c
   mod_include.c
   mod_filter.c
   mod_log_config.c
   mod_env.c
   mod_setenvif.c
   prefork.c
   http_core.c
   mod_mime.c
   mod_status.c
   mod_autoindex.c
   mod_asis.c
   mod_cgi.c
   mod_negotiation.c
   mod_dir.c
   mod_actions.c
   mod_userdir.c
   mod_alias.c
   mod_so.c

3. Now when i try to make embperl I get this error:
gcc -c  -I/home/oskar/build/Embperl-2.2.0 
-I/home/oskar/build/httpd-2.2.3/includ e 
-I/home/oskar/build/httpd-2.2.3/regex 
-I/home/oskar/build/httpd-2.2.3/os/unix 
-I/home/oskar/build/httpd-2.2.3/srclib/apr/include 
-I/home/oskar/build/Embperl-2 .2.0/xs -D_REENTRANT -D_GNU_SOURCE 
-fno-strict-aliasing -pipe -Wdeclaration-afte r-statement 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/u 
sr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack- protector --param=ssp-buffer-size=4 -m32 -march=i386 
-mtune=generic -fasynchrono us-unwind-tables   -DVERSION=\"2.2.0\" 
-DXS_VERSION=\"2.2.0\" -fPIC "-I/usr/lib/ 
perl5/5.8.8/i386-linux-thread-multi/CORE"  -DAPACHE -DAPACHE2 -DEP2  App.c
In file included from /home/oskar/build/httpd-2.2.3/include/httpd.h:43,
                  from /home/oskar/build/Embperl-2.2.0/ep.h:148,
                  from App.xs:13:
/home/oskar/build/httpd-2.2.3/include/ap_config.h:26:23: error: 
apr_hooks.h: No such file or directory
/home/oskar/build/httpd-2.2.3/include/ap_config.h:27:32: error: 
apr_optional_hoo ks.h: No such file or directory
In file included from /home/oskar/build/Embperl-2.2.0/ep.h:148,
                  from App.xs:13:
/home/oskar/build/httpd-2.2.3/include/httpd.h:54:25: error: 
apr_buckets.h: No su ch file or directory
/home/oskar/build/httpd-2.2.3/include/httpd.h:723:21: error: apr_uri.h: 
No such file or directory
In file included from /home/oskar/build/Embperl-2.2.0/ep.h:148,
                  from App.xs:13:

[ rest of error skipped ]

4. It seems that there is a missing include dir in the gcc command. 
There should be a -I ../httpd-2.2.3/srclib/apr-util/include

Does anyone get this? My guess is that this error is occurring because 
mod_perl is statically linked, but i'm not sure. And how can I fix it?

Regards,
Oskar Ahner



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


RE: Embperl 2.2.0 compile error

Posted by Gerald Richter <ri...@ecos.de>.
> 
> I have attached BuildConfig.pm. However, and here am i little 
> lost. Your documentation says that the path to the apache 
> source should be specified. 

For Apache 2 it should not ask at all, it should take it from the
BuildConfig.pm (where the correct path is available)

>             find /opt/apache2/ -name apr_hooks.h
>             /opt/apache2/include/apr_hooks.h
> 

This is normaly the best location.

Does Makefile.PL tells you that it has detected mod_perl 2?

Gerald


 
** Virus checked by BB-5000 Mailfilter ** 


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


Re: Embperl 2.2.0 compile error

Posted by Oskar Ahner <os...@osz.nu>.
Gerald Richter wrote:
> Hi all!
>>
>> 4. It seems that there is a missing include dir in the gcc command. 
>> There should be a -I ../httpd-2.2.3/srclib/apr-util/include
>>
> 
> Could you locate your Apache2/BuildConfig.pm file underneath your site_perl
> directory and send it to me. Then I might be able to add a fix to
> Makefile.PL
> 
Thanks for Your answer Gerald!

I have attached BuildConfig.pm. However, and here am i little lost. Your 
documentation says that the path to the apache source should be 
specified. For me, it means the directory where the apache sources where 
untared and build, is that right? Reason for asking is this: I tried to 
give the path to where apache is _installed_ instead, i.e. /opt/apache2 
and if do that it all works !! If I try to locate the missing .h file I 
get this:
            find <apache build dir> -name apr_hooks.h
            ./srclib/apr-util/include/apr_hooks.h

And if I try it below the _installation_ directory I get this:
            find /opt/apache2/ -name apr_hooks.h
            /opt/apache2/include/apr_hooks.h

So, it exists in different directories. But which directory should be 
used when building Embperl?

/Oskar




> Gerald
> 
> 
>  
> ** Virus checked by BB-5000 Mailfilter ** 

RE: Embperl 2.2.0 compile error

Posted by Gerald Richter <ri...@ecos.de>.
Hi all!
> 
> 
> 4. It seems that there is a missing include dir in the gcc command. 
> There should be a -I ../httpd-2.2.3/srclib/apr-util/include
> 

Could you locate your Apache2/BuildConfig.pm file underneath your site_perl
directory and send it to me. Then I might be able to add a fix to
Makefile.PL

Gerald


 
** Virus checked by BB-5000 Mailfilter ** 


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