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 00:10:18 GMT
On Mar 25, 2004, at 4:03 PM, Stas Bekman wrote:

> so it's there. What was the linking line (output of make for making  
> Apache/Request.dylib)

With this patch:

Index: Cookie/Makefile.PL
===================================================================
RCS file: /home/cvspublic/httpd-apreq/Cookie/Makefile.PL,v
retrieving revision 1.5
diff -u -r1.5 Makefile.PL
--- Cookie/Makefile.PL  3 Apr 2001 19:24:08 -0000       1.5
+++ Cookie/Makefile.PL  26 Mar 2004 00:09:49 -0000
@@ -27,7 +27,7 @@
          @mm_args,
          'INC'  => "-I../c ". $src->inc,
          'TYPEMAPS'  => $src->typemaps,
-        'LIBS' => "-L$root -lapreq",
+        'OBJECT' => "Cookie.$Config{so} $root/libapreq.a",
         'dynamic_lib' => {
                 'OTHERLDFLAGS' => $src->otherldflags,
         },
cvs server: Diffing Request
Index: Request/Makefile.PL
===================================================================
RCS file: /home/cvspublic/httpd-apreq/Request/Makefile.PL,v
retrieving revision 1.5
diff -u -r1.5 Makefile.PL
--- Request/Makefile.PL 3 Apr 2001 19:24:09 -0000       1.5
+++ Request/Makefile.PL 26 Mar 2004 00:09:49 -0000
@@ -3,6 +3,7 @@
  use strict;
  use lib qw(../lib);
  use Apache::libapreq qw(xsubpp);
+use Config;

  my $Is_Win32 = ($^O eq "MSWin32") || $ENV{WIN32_TEST};
  my @mm_args = (
@@ -27,7 +28,7 @@
           @mm_args,
           'INC' => "-I../c ". $src->inc,
           'TYPEMAPS'  => $src->typemaps,
-          'LIBS' => "-L$root -lapreq",
+          'OBJECT' => "Request.$Config{so} $root/libapreq.a",
           'dynamic_lib' => {
                 'OTHERLDFLAGS' => $src->otherldflags,
           },

I get this output:

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
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.dylib  
../blib/arch/auto/libapreq/libapreq.a  -o  
../blib/arch/auto/Apache/Request/Request.bundle
cc: Request.dylib: No such file or directory
make[1]: *** [../blib/arch/auto/Apache/Request/Request.bundle] Error 1
make: *** [subdirs] Error 2

Regards,

David


Mime
View raw message