httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Higgins <pat...@cybermesa.com>
Subject Re: Installing libapreq on OSX10.3.6
Date Mon, 06 Dec 2004 17:13:16 GMT
Stat, et al,

First I have to say, I got it! : D


>>  >make
>> cc -c    
>> -I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/  
>> include   
>> -I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/  
>> include/modules/perl -g -pipe -pipe -fno-common -DPERL_DARWIN
>
> now that looks much better. Was those -I path produced automatically  
> or did you add those?

I modified the Makefile includes to point to the right place.
It was not adding the correct prefix to the path and was not
able to find and include those header files. This is probably
not the best solution but I gave it a shot anyway and it seemed
to make it a little more happy.

It was also looking for os.h and os-inline.c. Those files are located
on my system in:

/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/include/os/

There are several version there for different systems, I chose unix and  
moved
those files from there to:

/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/include/ 
include/

so they could be found by the #include.

>
>> -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os     
>> -DVERSION=\"\" -DXS_VERSION=\"\"    
>> "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"     
>> apache_request.c
>> {standard input}:unknown:FATAL:can't create output file:   
>> apache_request.o
>> make[1]: *** [apache_request.o] Error 1
>> make: *** [subdirs] Error 2
>> kinda at a loss here.
>
> Bizarre. can't create a file? Do you have perms problems, or did you  
> run out of disk space?

Permission prob, yes, so I then tried 'sudo make' and it got a little  
further:

/Volumes/UFS/libapreq-1.3>sudo make
cc -c   
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include  
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl -g -pipe -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os    
-DVERSION=\"\" -DXS_VERSION=\"\"   
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"    
apache_request.c
cc -c   
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include  
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl -g -pipe -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os    
-DVERSION=\"\" -DXS_VERSION=\"\"   
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"    
apache_cookie.c
cc -c   
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include  
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl -g -pipe -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os    
-DVERSION=\"\" -DXS_VERSION=\"\"   
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"    
apache_multipart_buffer.c
rm -rf ../blib/arch/auto/libapreq/libapreq.a
/usr/bin/ar cr ../blib/arch/auto/libapreq/libapreq.a apache_request.o  
apache_cookie.o apache_multipart_buffer.o && /usr/bin/ar ts  
../blib/arch/auto/libapreq/libapreq.a
apache_request.o
apache_cookie.o
apache_multipart_buffer.o
chmod 755 ../blib/arch/auto/libapreq/libapreq.a
cp apache_cookie.h ../blib/arch/auto/libapreq/include/apache_cookie.h
cp apache_request.h ../blib/arch/auto/libapreq/include/apache_request.h
cp apache_multipart_buffer.h  
../blib/arch/auto/libapreq/include/apache_multipart_buffer.h
cp Request.pm ../blib/lib/Apache/Request.pm
/usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp  -typemap  
/System/Library/Perl/5.8.1/ExtUtils/typemap -typemap  
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
typemap  Request.xs > Request.xsc && mv Request.xsc Request.c
cc -c  -I../c  
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include  
-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl -g -pipe -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os    
-DVERSION=\"1.3\" -DXS_VERSION=\"1.3\"   
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"    
Request.c
In file included from  
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/mod_perl.h:165,
                  from Request.xs:41:
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:118:20: httpd.h: No such file or  
directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:119:26: http_config.h: No such file  
or directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:120:28: http_protocol.h: No such file  
or directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:121:23: http_log.h: No such file or  
directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:122:24: http_main.h: No such file or  
directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:123:24: http_core.h: No such file or  
directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:124:27: http_request.h: No such file  
or directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:125:26: util_script.h: No such file  
or directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:126:31: http_conf_globals.h: No such  
file or directory
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/apache_inc.h:127:24: http_vhost.h: No such file or  
directory
In file included from Request.xs:41:
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/ 
include/modules/perl/mod_perl.h:575:23: ap_compat.h: No such file or  
directory
make[1]: *** [Request.o] Error 1
make: *** [subdirs] Error 2

As you can see apache_inc is using the incorrect path for including  
those same header files.
apache_inc is located in

/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/include/ 
modules/perl/

and was looking for those header there. An example of one of those  
lines is:

#include <httpd.h>

so i changed the path there as well to be

#include  
</Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Apache/include/ 
include/httpd.h>

Also had to change the includes in mod_perl.h for ap_compat.h and  
compat.h to point to the same
dir.

After modifying all those files the make was successful. I then did a
% sudo make install
and it went!!!

I modified my httpd.conf file in /usr/local/apache/conf to enable mason  
and
restarted apache. I now was able to load my first mason page on my  
machine!

I cannot thank you enough for your help!

My biggest concern is, is it ok to leave those header files modified?
also, why does Makefile not have the correct paths for the apache
header includes? I am happy that it is working but if I had to do it  
again
It would not be easy to explain to someone. Are my hacks really
subverting a system that should be working but isn't or is it just set
up for Linux and OSX unix is so different that it is not facilitated?

I need to do some testing to be sure that all I have done it going to  
work,
but for now I am just happy to see mason running! Thanks again!! : D

< Stas, how can I repay you for your perseverance? >

Patrick





Mime
View raw message