Bug 78227 - Apache 2.0.52-r2 & 2.0.52-r1 crash during ebuild when is installed gawk 3.1.4
|
Bug#:
78227
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: apache-bugs@gentoo.org
|
Reported By: michal.kuhn@hp.com
|
|
Component: Server
|
|
|
URL:
|
|
Summary: Apache 2.0.52-r2 & 2.0.52-r1 crash during ebuild when is installed gawk 3.1.4
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-01-16 08:32 0000
|
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
can someone rip this apart and produce a small test case ?
True, seems to be a gawk problem, same error for me and with other packages
like dev-libs/libgpg-error there are errors too.
I'm looking into the Apache side of things now..
gawk 1.3.4 seems quite fecked, which is making the stripping down harder.. I'll
carry on unless someone beats me to it ;)
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)
Created an attachment (id=49253) [details]
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..)
or we could try the LC_ALL=C hack in bug #78749. WFM.
Elfyn's patch fixes for me (against gawk-3.1.4), and I can subsequently build
apache without problems.
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...
thanks Elfyn, you saved my ass on that one :)
3.1.4-r1 seems to be fixing locale problems with other packages too