httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Wheeler <da...@kineticode.com>
Subject Re: Building on Red Hat 9
Date Fri, 26 Mar 2004 02:03:56 GMT
On Mar 25, 2004, at 5:53 PM, Stas Bekman wrote:

> OK, so it uses Request.bundle instead of Request.so, not dylib

Ah, okay.

>> And of course, "make test" does pass.
>
> OK, so now I lost you. Why were you trying to do:
>
> -        'LIBS' => "-L$root -lapreq",
> +        'OBJECT' => "Cookie.$Config{so} $root/libapreq.a",
>
> It was correct to say Cookie.o (you confused it with .so). Where is  
> the problem? It didn't generate .so at the end but Cookie.bundle  
> (which I suppose the equivalent of Cookie.so)

Oh. Hrm. That's stored in $Config{dlext} (although it's value is "so"  
on my Linux box). But if I just go with your original patch:

-        'LIBS' => "-L$root -lapreq",
+        'OBJECT' => "Cookie.o $root/libapreq.a",

Then I get this:

geertz% make
cp lib/Apache/libapreq.pm blib/lib/Apache/libapreq.pm
cp libapreq.pod blib/lib/libapreq.pod
cc -c   
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/modules/perl  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/regex  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/os/unix -I/usr/include/httpd -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -Os   -DVERSION=\"\"  
-DXS_VERSION=\"\"  "-I/usr/local/lib/perl5/5.8.3/darwin-2level/CORE"    
apache_request.c
cc -c   
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/modules/perl  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/regex  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/os/unix -I/usr/include/httpd -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -Os   -DVERSION=\"\"  
-DXS_VERSION=\"\"  "-I/usr/local/lib/perl5/5.8.3/darwin-2level/CORE"    
apache_cookie.c
cc -c   
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/modules/perl  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/regex  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/os/unix -I/usr/include/httpd -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -Os   -DVERSION=\"\"  
-DXS_VERSION=\"\"  "-I/usr/local/lib/perl5/5.8.3/darwin-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_multipart_buffer.h  
../blib/arch/auto/libapreq/include/apache_multipart_buffer.h
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 Request.pm ../blib/lib/Apache/Request.pm
/usr/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp  -typemap  
/usr/local/lib/perl5/5.8.3/ExtUtils/typemap -typemap  
/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/typemap   
Request.xs > Request.xsc && mv Request.xsc Request.c
cc -c  -I../c  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/modules/perl  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/regex  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/os/unix -I/usr/include/httpd -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -Os   -DVERSION=\"1.3\"  
-DXS_VERSION=\"1.3\"  "-I/usr/local/lib/perl5/5.8.3/darwin-2level/CORE"  
   Request.c
In file included from  
/usr/local/lib/perl5/5.8.3/darwin-2level/CORE/perl.h:1807,
                  from  
/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/include/ 
modules/perl/mod_perl.h:80,
                  from Request.xs:57:
/usr/local/lib/perl5/5.8.3/darwin-2level/CORE/handy.h:259:1: warning:  
"strEQ" redefined
In file included from Request.xs:17:
../c/apache_request.h:78:1: warning: this is the location of the  
previous definition
Running Mkbootstrap for Apache::Request ()
chmod 644 Request.bs
rm -f ../blib/arch/auto/Apache/Request/Request.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -undefined  
dynamic_lookup -L/usr/local/lib Request.o  
../blib/arch/auto/libapreq/libapreq.a  -o  
../blib/arch/auto/Apache/Request/Request.bundle
chmod 755 ../blib/arch/auto/Apache/Request/Request.bundle
cp Request.bs ../blib/arch/auto/Apache/Request/Request.bs
chmod 644 ../blib/arch/auto/Apache/Request/Request.bs
Manifying ../blib/man3/Apache::Request.3
cp Cookie.pm ../blib/lib/Apache/Cookie.pm
/usr/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp  -typemap  
/usr/local/lib/perl5/5.8.3/ExtUtils/typemap -typemap  
/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/typemap   
Cookie.xs > Cookie.xsc && mv Cookie.xsc Cookie.c
cc -c  -I../c  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/modules/perl  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/include  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/regex  
-I/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/ 
include/os/unix -I/usr/include/httpd -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -Os   -DVERSION=\"1.3\"  
-DXS_VERSION=\"1.3\"  "-I/usr/local/lib/perl5/5.8.3/darwin-2level/CORE"  
   Cookie.c
In file included from  
/usr/local/lib/perl5/5.8.3/darwin-2level/CORE/perl.h:1807,
                  from  
/usr/local/lib/perl5/site_perl/5.8.3/darwin-2level/auto/Apache/include/ 
modules/perl/mod_perl.h:80,
                  from Cookie.xs:56:
/usr/local/lib/perl5/5.8.3/darwin-2level/CORE/handy.h:259:1: warning:  
"strEQ" redefined
In file included from ../c/apache_cookie.h:20,
                  from Cookie.xs:17:
../c/apache_request.h:78:1: warning: this is the location of the  
previous definition
Running Mkbootstrap for Apache::Cookie ()
chmod 644 Cookie.bs
rm -f ../blib/arch/auto/Apache/Cookie/Cookie.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -undefined  
dynamic_lookup -L/usr/local/lib Cookie.o  
../blib/arch/auto/libapreq/libapreq.a  -o  
../blib/arch/auto/Apache/Cookie/Cookie.bundle
chmod 755 ../blib/arch/auto/Apache/Cookie/Cookie.bundle
cp Cookie.bs ../blib/arch/auto/Apache/Cookie/Cookie.bs
chmod 644 ../blib/arch/auto/Apache/Cookie/Cookie.bs
Manifying ../blib/man3/Apache::Cookie.3
Manifying blib/man3/Apache::libapreq.3
Manifying blib/man3/libapreq.3

Wha! D'oh! It works! All tests pass! I wonder if I'd been using .so  
instead of .o all this time! Dammit, sorry to have wasted your time.

>> geertz% cd ~/.cpanplus
>> geertz% find . -name Makefile.PL | xargs grep OBJECT
>
> Thanks, but I think we are looking in the wrong place.
>
> in you original post you said:
>
>   IIRC, Stas said there were some issues getting this to work
>   for Mac OS  X folks.
>
> I don't remember what were the issues, they must be documented in the  
> same or earlier thread. If you can remind me what's exactly the  
> problem, that would help.

Oh, right, sorry. It was Joe, though, not you:

   http://marc.theaimsgroup.com/?l=apreq-dev&m=106697189320368&w=2

But I can now confirm that it works fine on Mac OS X, while Schwern's  
patch didn't allow it to work fine on Red Hat 9.

Regards,

David


Mime
View raw message