You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Guy D <dy...@gmail.com> on 2006/08/22 17:11:23 UTC

make install fails for perl modules in 2.08

Hello,

I recently tried to install libapr2 version 2.08 on a Solaris server
with Perl 5.8.8 and Apache 2.2.3.  This is how I configured libapreq2:

$ F77=f77 \
> CXX=CC \
> CC=cc \
>./configure \
> --enable-perl-glue \
> --with-perl=/usr/local/bin/perl \
> --with-apache2-apxs=/usr/local/apache2/bin/apxs \
> --with-apr-config=/usr/local/apache2/bin/apr-1-config \
> --with-apu-config=/usr/local/apache2/bin/apu-1-config \
> --with-expat=/usr/local/apache2

I am using Sun's Studio compilers and not gcc.

Everything compiled.  All tests passed except two (36 & 37 in util.t)

But the make install step failed to install the perl modules; instead
I got this error:

$ make install
...
cd perl; make install
Use of uninitialized value in -d at
/usr/local/perl_5.8/lib/5.8.8/File/Path.pm line 159.
fileparse(): need a valid pathname at
/usr/local/perl_5.8/lib/5.8.8/File/Path.pm line 160
*** Error code 2
The following command caused the error:
/usr/local/bin/perl -MExtUtils::Install -e 'install({@ARGV},
'\''0'\'', 0, '\''0'\'');' \
        read /auto/libapreq2/.packlist \
        write /auto/libapreq2/.packlist \
        blib/lib  \
        blib/arch  \
        blib/bin  \
        blib/script /usr/local/perl_5.8/bin \
        blib/man1  \
        blib/man3
make: Fatal error: Command failed for target `pure_vendor_install'
Current working directory /usr/local/src/cpan/build/libapreq2-2.08/glue/perl
*** Error code 1

Is this a problem with the Makefile?

Eventually, I tried to install libapreq2 version 2.07.  I used the
same configuration shown above.  There was apparently an error in a
Makefile in the module/apache2 directory (the "all-local" target was
missing; I compared this Makefile with the corresponding one in the
libapreq2 version 2.08 version and inserted an "all-local:" empty
target.)

After that, it compiled.  The make test had the same results (the same
two tests failed.)
But, this time the "cd glue/perl; make install" worked.

So, maybe there is a bug in the new version.

Regards,
Doug

Re: make install fails for perl modules in 2.08

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Guy D wrote:
> Hello,
> 
> I recently tried to install libapr2 version 2.08 on a Solaris server
> with Perl 5.8.8 and Apache 2.2.3.  This is how I configured libapreq2:
Anyone with a Solaris box want to confirm ?
I've none available.... sheesh -- to many operating systems....

Can you show the versions you used for:
autoconf
automake
libtool
make

and/or attach config.log ?

FYI, you don't need to set F77 --- theres no FORTRAN code in here ... thank god.

> I am using Sun's Studio compilers and not gcc.
[ducks as that zips of my head]
Here's hoping its not this causing it.....

> Everything compiled.  All tests passed except two (36 & 37 in util.t)
Can you attach the console output and the RELATED t/error_log text?

The only change between 2.07 and 2.08 for module/apache2/Makefile.am
is listed below and definitely fixes a bug.  Its also been changed similarly
in mod_perl2.

svn diff -r179248:408623  Makefile.am
Index: Makefile.am
===================================================================
--- Makefile.am (revision 179248)
+++ Makefile.am (revision 408623)
@@ -7,17 +7,8 @@
 pkgincludedir = `@APACHE2_APXS@ -q INCLUDEDIR`/@APREQ_LIBNAME@
 pkglibdir = `@APACHE2_APXS@ -q LIBEXECDIR`

-if MAINTAINER_MODE
-
-AM_CPPFLAGS = -DAP_HAVE_DESIGNATED_INITIALIZER @APACHE2_INCLUDES@ @APR_INCLUDES@
-
-else
-
 AM_CPPFLAGS = @APACHE2_INCLUDES@ @APR_INCLUDES@

-endif
-
-
 if BUILD_HTTPD

 # XXX FIXME: static builds don't work anymore


-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"In all that I've done wrong I know I must have done something right to
deserve a hug every morning and butterfly kisses at night."
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /
 / /|_/ / // /\ \/ /_/ / /__
/_/  /_/\_, /___/\___\_\___/
       <___/