Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 78227

Summary: Apache 2.0.52-r2 & 2.0.52-r1 crash during ebuild when is installed gawk 3.1.4
Product: Gentoo Linux Reporter: MIchal Kuhn <michal.kuhn>
Component: [OLD] ServerAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, beu
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Add epatch to ebuild for forthcoming patch..
Patch to fix DFA cache buggery..

Description MIchal Kuhn 2005-01-16 08:32:08 UTC
When I've tried to install apache-2.0.52-r2 with gawk 3.1.4 installed I am receiving following error:

 `cat export_files` > exports.c
/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/srclib/apr/libtool --silent --mode=compile i686-pc-linux-gnu-gcc  -pthread  -mcpu=athlon-xp -O3 -pipe  -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/srclib/apr/include -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/srclib/apr-util/include -I. -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/os/unix -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server/mpm/prefork -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/http -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/filters -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/proxy -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/include -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/generators -I/usr/include/openssl -I/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/modules/dav/main -prefer-non-pic -static -c exports.c && touch exports.lo
exports.c:115:2: #endif without #if
make[2]: *** [exports.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server'
make: *** [all-recursive] Error 1

!!! ERROR: net-www/apache-2.0.52-r2 failed.
!!! Function src_compile, Line 196, Exitcode 2
!!! problem compiling Apache2 :(
!!! If you need support, post the topmost build error, NOT this status message.

My USE Flags are following

USE="alsa aac aalib acpi altivec apache2 apm avi calendar cdr crypt cups dba dga divx4linux dvb dvd dvdr encode evo exif fbcon foomaticdb ftp gd gif gimpprint gnome gpm gps gtk2 gtkhtml imagemagick imap ipv6 java joystick jpeg -kde ldap mime mmx mozilla mysql nas netboot nis nls oggvorbis openal opengl pcmcia perl php png profile quicktime samba snpm spell sse ssl tcltk tiff truetype unicode usb X xine xinerama xml2 xmms xpm xprint xv xvid zlib"


Reproducible: Always
Steps to Reproduce:
1. emerge apache
2.
3.

Actual Results:  
I've checked /var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server/exports.c

and saw following

/*
 * THIS FILE WAS AUTOGENERATED BY make_exports.awk
 *
 * This is an ugly hack that needs to be here, so
 * that libtool will link all of the APR functions
 * into server regardless of whether the base server
 * uses them.
 */

#define CORE_PRIVATE

#include "ap_compat.h"
#include "ap_config_auto.h"
#include "ap_config.h"
#include "ap_config_layout.h"
#include "ap_listen.h"

 . . . . . . . 
ending with 
const void *ap_ugly_hack = NULL;

/*
 * /var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/include/ap_mpm.h
 */
#endif

After installation of gawk 3.1.3-r2 is all ok. Seems to be buggy gawk 3.1.4


Expected Results:  
Correct build of Apache server
Comment 1 SpanKY gentoo-dev 2005-01-16 11:57:56 UTC
can someone rip this apart and produce a small test case ?
Comment 2 Daniel Kenzelmann 2005-01-22 07:11:07 UTC
True, seems to be a gawk problem, same error for me and with other packages like dev-libs/libgpg-error there are errors too.
Comment 3 Elfyn McBratney 2005-01-22 08:15:46 UTC
I'm looking into the Apache side of things now..
Comment 4 Elfyn McBratney 2005-01-22 08:54:38 UTC
gawk 1.3.4 seems quite fecked, which is making the stripping down harder.. I'll carry on unless someone beats me to it ;)
Comment 5 Elfyn McBratney 2005-01-22 10:11:52 UTC
Ahem, 3.1.4..

This bug(s) are fixed in Fedora (gawk-3.1.4-4), but I'm really out-dated with regard to RPM's..  could someone familiar with the tools extract these patches?  Otherwise lurning-curve coming up.. (wheeeee)
Comment 6 Elfyn McBratney 2005-01-22 20:51:18 UTC
Created attachment 49252 [details, diff]
Add epatch to ebuild for forthcoming patch..
Comment 7 Elfyn McBratney 2005-01-22 20:53:24 UTC
Created attachment 49253 [details, diff]
Patch to fix DFA cache buggery..

This patch resolves the issue.	It's taken from Fedora (I added a comment at
the top of the patch crediting them, I didn't however mention anything about
Red Hat sitting on patches for months, and months.. sigh..)
Comment 8 Tuan Van (RETIRED) gentoo-dev 2005-01-23 14:18:48 UTC
or we could try the LC_ALL=C hack in bug #78749. WFM.
Comment 9 Mike Gardiner (RETIRED) gentoo-dev 2005-01-24 02:45:52 UTC
Elfyn's patch fixes for me (against gawk-3.1.4), and I can subsequently build apache without problems.
Comment 10 Christian Parpart (RETIRED) gentoo-dev 2005-01-24 04:07:54 UTC
The question *why* redhat did *not* submit the fix to 
upstream may be because it does not really fix the 
problem, it just disabled the feature (as of looking 
into the patch source) - but shall be applied anyway...
Comment 11 SpanKY gentoo-dev 2005-01-28 23:00:13 UTC
please try gawk-3.1.4-r1
Comment 12 Tuan Van (RETIRED) gentoo-dev 2005-01-29 12:47:29 UTC
with gawk-3.1.4-r1, WFM.
Comment 13 SpanKY gentoo-dev 2005-01-29 20:40:14 UTC
thanks Elfyn, you saved my ass on that one :)

3.1.4-r1 seems to be fixing locale problems with other packages too