Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30257 - apache2 and mod_perl compile error
Summary: apache2 and mod_perl compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-03 09:53 UTC by Tepelstreeltje
Modified: 2003-12-16 16:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mod_perl 1.99.10 ebuild (mod_perl-1.99.10.ebuild,3.53 KB, text/plain)
2003-10-27 12:18 UTC, David Brigada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tepelstreeltje 2003-10-03 09:53:58 UTC
Running Mkbootstrap for ModPerl::Util ()
chmod 644 Util.bs
gcc -c  -I/var/tmp/portage/mod_perl-1.99.09/work/mod_perl-1.99_09/src/modules/perl -I/var/tmp/portage/mod_perl-1.99.09/work/mod_perl-1.99_09/xs -I/usr/include/apache2 -fno-strict-aliasing  -DMOD_PERL -DMP_COMPAT_1X -g -DMP_DEBUG -DMP_TRACE    -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fpic "-I/usr/lib/perl5/5.8.1/i686-linux/CORE"   Util.c
cp Util.bs ../../../blib/arch/Apache2/auto/ModPerl/Util/Util.bs
chmod 644 ../../../blib/arch/Apache2/auto/ModPerl/Util/Util.bs
rm -f ../../../blib/arch/Apache2/auto/ModPerl/Util/Util.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib Util.o -L/usr/local/lib -o ../../../blib/arch/Apache2/auto/ModPerl/Util/Util.so
chmod 755 ../../../blib/arch/Apache2/auto/ModPerl/Util/Util.so
make[3]: Leaving directory `/var/tmp/portage/mod_perl-1.99.09/work/mod_perl-1.99_09/WrapXS/ModPerl/Util'
make[2]: Leaving directory `/var/tmp/portage/mod_perl-1.99.09/work/mod_perl-1.99_09/WrapXS/ModPerl'
make[1]: Leaving directory `/var/tmp/portage/mod_perl-1.99.09/work/mod_perl-1.99_09/WrapXS'

!!! ERROR: dev-perl/mod_perl-1.99.09 failed.
!!! Function src_compile, Line 69, Exitcode 2
!!! (no error message)
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-10-04 07:01:12 UTC
please provide #emerge info
and more infos since i can't find an error-msg
Comment 2 Tepelstreeltje 2003-10-04 07:08:39 UTC
Portage 2.0.49-r7 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 Pentium III (Coppermine)
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad
mikmod mmx mpeg ncurses nls png quicktime spell truetype xml2 xmms xv zlib
gdbm berkdb slang readline arts svga tcltk java mysql X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl apache2
gtk2 openssh php tiff -pdflib"
Comment 3 Tepelstreeltje 2003-10-05 13:05:33 UTC
it has to be the autoconf or the CFLAGS since i tried the code that i downloaded
from apache.org and that one did work.
Comment 4 Stephane Loeuillet 2003-10-05 18:49:04 UTC
mod_perl 1.99_10 needed to compile with perl 5.8.1 :

http://perl.apache.org/dist/mod_perl-1.99_10.tar.gz

http://perl.apache.org/dist/mod_perl-2.0-current/Changes :

The Perl-5.8.0 crypt() workaround is now used only if 5.8.0 is used,
since 5.8.1-tobe/5.9.0-tobe(blead-perl) won't compile with
it. [Geoffrey Young]

related : http://bugs.gentoo.org/show_bug.cgi?id=30087
Comment 5 David Brigada 2003-10-27 12:18:10 UTC
Created attachment 19861 [details]
mod_perl 1.99.10 ebuild

Ebuild for mod_perl 1.99.10.
This ebuild works with Perl 5.8.1-r2
Comment 6 Zack Gilburd (RETIRED) gentoo-dev 2003-10-28 00:17:13 UTC
I'm experiencing the same bug.  The thing is, mholzer, there is no error
message on compile - it just fails without telling us why.  Scrolling up
provides one with no further information - all that one can see is successful
compiles.  Quite strange, I think.
Comment 7 Tim Hobbs 2003-11-02 08:54:52 UTC
This error happens for me just after writing the Makefiles.  Then compiling
goes on for a while, then finally exits (with original 1.99.10.ebuild and
also the ebuild attached below by David B.):

Can't locate ModPerl/BuildMM.pm in @INC (@INC contains: blib/lib/Apache2
/tmp/portage/mod_perl-1.99.10/work/mod_perl-1.99_10/Apache-Test/lib /etc/perl
/usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i686-linux
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0/i686-linux
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.1/i686-linux
/usr/lib/perl5/5.8.1 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.0/i686-linux
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1 .).
BEGIN failed--compilation aborted.
make: *** [glue_pods] Error 2
make: *** Waiting for unfinished jobs....
make: *** Waiting for unfinished jobs....
make: *** Waiting for unfinished jobs....
Comment 8 Tim Hobbs 2003-11-02 09:44:56 UTC
(of course) BuildMM.pm is not located in any of the searched locations. 
Instead, it is in:
/tmp/portage/mod_perl-1.99.10/work/mod_perl-1.99_10/blib/lib/Apache2/ModPerl/BuildMM.pm
/tmp/portage/mod_perl-1.99.10/work/mod_perl-1.99_10/lib/ModPerl/BuildMM.pm
Comment 9 Tim Hobbs 2003-11-18 10:20:15 UTC
I had MAKEOPTS="-j5" 
(using distcc)
changing MAKEOPTS="-j1" in /etc/make.conf
or command line: MAKEOPTS="-j1" emerge mod_perl
allowed building and installing successfully with 1.99.10 
Comment 10 Robert Coie (RETIRED) gentoo-dev 2003-12-16 16:33:00 UTC
Added 1.99.11 today, and disabled parallel make. Thanks for the detective work.