Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208243 - www-servers/apache-2.2.8 doesn't compile
Summary: www-servers/apache-2.2.8 doesn't compile
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-30 22:50 UTC by orgoz2
Modified: 2010-01-11 08:25 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,38.66 KB, text/plain)
2008-01-31 07:38 UTC, orgoz2
Details
emerge.log (emerge.log,146.89 KB, text/plain)
2008-01-31 07:40 UTC, orgoz2
Details
emerge.log (www-servers:apache-2.2.8:20080131-115023.log,14.21 KB, text/plain)
2008-01-31 12:04 UTC, orgoz2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description orgoz2 2008-01-30 22:50:07 UTC
www-servers/apache-2.2.8 doesn't compile with any of APACHE2_MPMS. I tried prefork, itk and worker on a fresh Gentoo install.

In my /etc/make.conf :
APACHE2_MPMS="prefork"


Making all in srclib
make[1]: Entering directory `/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/srclib'
make[1]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/srclib'
Making all in os
make[1]: Entering directory `/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/os'
make[1]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/os'
Making all in server
make[1]: Entering directory `/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server'
Making all in mpm
make[2]: Entering directory `/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server/mpm'
make[2]: *** No rule to make target `all'.  Stop.
make[2]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server/mpm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server'
make: *** [all-recursive] Error 1
 *
 * ERROR: www-servers/apache-2.2.8 failed.
 * Call stack:
 *         ebuild.sh, line 1701:  Called dyn_compile
 *         ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *         ebuild.sh, line   44:  Called src_compile
 *         ebuild.sh, line 1383:  Called apache-2_src_compile
 *   apache-2.eclass, line  447:  Called die
 * The specific snippet of code:
 *      emake || die "emake failed"
 *  The die message:
 *   emake failed

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-30 22:54:42 UTC
Reopen with:

- full emerge.log
- config.log
- emerge --info
- emerge -pv apache
Comment 2 orgoz2 2008-01-31 07:38:37 UTC
Created attachment 142258 [details]
config.log
Comment 3 orgoz2 2008-01-31 07:40:28 UTC
Created attachment 142259 [details]
emerge.log
Comment 4 orgoz2 2008-01-31 07:41:32 UTC
Portage 2.1.3.19 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo-r4dedibox_r6_final i686)
=================================================================
System uname: 2.6.18-gentoo-r4dedibox_r6_final i686 VIA Esther processor 2000MHz
Timestamp of tree: Wed, 30 Jan 2008 22:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org http://gentoo.modulix.net/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="apache2 bcmath bitmap-fonts calendar caps cddb cli cracklib crypt dri exif flash fortran ftp gd gdbm gpm hardened hardenedphp hash iconv imap ipv6 isdnlog latin1 maildir mcal memlimit midi mudflap mysql ncurses nls nptl nptlonly openmp openssh pam pcntl pcre pdf pdo ppds pppd readline reflection sasl session simplexml sockets spamassassin spl ssl tcpd tidy tiff tokenizer truetype-fonts type1-fonts unicodex86 xmlreader xmlrpc xmlwriter zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vgavia vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 5 orgoz2 2008-01-31 07:42:43 UTC
# emerge -pv apache

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-servers/apache-2.2.8  USE="ssl -debug -doc -ldap (-selinux) -sni -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -version" APACHE2_MPMS="prefork* -event -itk -peruser -worker" 0 kB
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-01-31 08:33:02 UTC
Comment on attachment 142259 [details]
emerge.log

Not this one - The emerge.log from apache :)
Comment 7 orgoz2 2008-01-31 11:39:12 UTC
I'm sorry for my mistakes and to say that : i don't know where i can find that emerge.log file :(


Comment 8 Jakub Moc (RETIRED) gentoo-dev 2008-01-31 11:42:10 UTC
In /var/log/portage unless you've redefined PORT_LOGDIR.
Comment 9 orgoz2 2008-01-31 12:04:02 UTC
Created attachment 142272 [details]
emerge.log

That was the PORT_LOGDIR which was undefined. thank you, i hope it's correct this time. sorry again.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2008-01-31 12:42:31 UTC
Reopen.
Comment 11 Benedikt Böhm (RETIRED) gentoo-dev 2008-01-31 15:33:18 UTC
does it work with -j1?
Comment 12 orgoz2 2008-01-31 17:12:26 UTC
(In reply to comment #11)
> does it work with -j1?
> 
no, it doesn't help.
Comment 13 orgoz2 2008-02-02 11:47:09 UTC
I tried with a newer 2.6.23 kernel and I have the same problem.
Comment 14 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-02 14:45:31 UTC
this is certainly not a kernel problem, but i'm unable to reproduce this ... 
Comment 15 Rod 2008-02-29 14:41:28 UTC
(In reply to comment #14)
> this is certainly not a kernel problem, but i'm unable to reproduce this ... 
> 

Hello all, I'm encountering the same problem,
the emerge stops while configuring apache (2.2.6, 2.2.8, or 2.2.8-r1).

I have testes compilation from apache website
and it worked out well.

In emerge configuration, there is this option to the configure script :
 --enable-layout=Gentoo

So the problem is Gentoo like.
The default apache make processe does that :

> Making all in server
> make[1]: Entering directory `/root/manualinstalls/httpd-2.2.8/server'
> Making all in mpm
> make[2]: Entering directory `/root/manualinstalls/httpd-2.2.8/server/mpm'
> Making all in worker
> make[3]: Entering directory `/root/manualinstalls/httpd-2.2.8/server/mpm/worker'
> make[4]: Entering directory `/root/manualinstalls/httpd-2.2.8/server/mpm/worker'


while gentoo make process does that :
> Making all in server
> make[1]: Entering directory
`/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server'
> Making all in mpm
> make[2]: Entering directory
`/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server/mpm'
> make[2]: *** No rule to make target `all'.  Stop.
> make[2]: Leaving directory
`/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server/mpm'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
`/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server'
> make: *** [all-recursive] Error 1


So there is no Makefile in 
'/var/tmp/portage/www-servers/apache-2.2.8/work/httpd-2.2.8/server/mpm'

The configuration process didn't do the right job.
Well I don't know much more.

Good luck.
Comment 16 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-29 17:36:38 UTC
i doubt this is a config-layout problem, since it does not change the way configure generates makefiles ... config.layout contains just installation paths ... anyway, still works here on all machines *shrug*
Comment 17 Alessandro Surace 2008-05-15 15:29:33 UTC
Same problem on a PPC system.

Any news about this problem?

with the -r2 release I have the same problem.
Comment 18 Karl H 2008-06-04 06:14:11 UTC
/usr/bin/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread  -O2 -march=i686 -pipe   -Wl,--no-as-needed -L/usr/lib -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lssl -lcrypto  -Wl,--no-as-needed -o libos.la -static  unixd.lo
i686-pc-linux-gnu-ar: unixd.o: No such file or directory
make[3]: *** [libos.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8/os/unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8/os/unix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-servers/apache-2.2.8-r3/work/httpd-2.2.8/os'
make: *** [all-recursive] Error 1                                                                                                               
Comment 19 Karl H 2008-06-04 06:47:50 UTC
sorry, ignore my previous message, after fixing  /etc/env.d/02locals apache compiled for me. Apparently libtool did not like my missing locals. 
Comment 20 Richard Gray 2008-06-24 17:12:55 UTC
I had a similar problem to this, and it took me quite a while to unravel the problem. I installed a Gentoo server and the CHOST was something like i486-pc-linux-gnu, and I changed this a long time ago to i686-pc-linux-gnu and recompiled what I thought to be necessary. To cut a long story short, I found it necessary to re-emerge dev-libs/apr-1.2.11 and this fixed my problem. For some weird reason the script looks at the CHOST used to compile APR for subsequent compiles of the apache package, rather than using the current CHOST. This might be a complete red-herring, but it worked for me and it might help someone else out there desperately clutching at straws trying to install apache!
Comment 21 Gregory Chanez 2008-07-15 18:14:36 UTC
Hi all,

I have the same problem with apache-2.2.9. Have you found any working solution, I have tried to re-emerge apr / apr-util, then even an emerge -e system but still this error at the end of the ./configure

Greg
Comment 22 orgoz2 2008-12-03 11:09:22 UTC
Same problem again with apache-2.2.9-r1.

I tried to recompile apr (and apr-util) as suggested but it didn't help.
Comment 23 Eric Johnson 2008-12-08 02:13:48 UTC
same error for me as well - apache-2.2.29-r1 failed. re-emerging apr and apr-util did not help, as well as trying libtool.
Comment 24 Benedikt Böhm (RETIRED) gentoo-dev 2010-01-11 08:25:56 UTC
please reopen if this is still an issue with 2.2.14-r1