<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>78227</bug_id>
          
          <creation_ts>2005-01-16 08:32 0000</creation_ts>
          <short_desc>Apache 2.0.52-r2 &amp; 2.0.52-r1 crash during ebuild when is installed gawk 3.1.4</short_desc>
          <delta_ts>2005-01-29 20:40:14 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>michal.kuhn@hp.com</reporter>
          <assigned_to>apache-bugs@gentoo.org</assigned_to>
          <cc>base-system@gentoo.org</cc>
    
    <cc>beu@emcb.demon.co.uk</cc>

      

      
          <long_desc isprivate="0">
            <who>michal.kuhn@hp.com</who>
            <bug_when>2005-01-16 08:32:08 0000</bug_when>
            <thetext>When I&apos;ve tried to install apache-2.0.52-r2 with gawk 3.1.4 installed I am receiving following error:

 `cat export_files` &gt; 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 &amp;&amp; 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&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.0.52-r2/work/httpd-2.0.52/server&apos;
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=&quot;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&quot;


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

Actual Results:  
I&apos;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 &quot;ap_compat.h&quot;
#include &quot;ap_config_auto.h&quot;
#include &quot;ap_config.h&quot;
#include &quot;ap_config_layout.h&quot;
#include &quot;ap_listen.h&quot;

 . . . . . . . 
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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-01-16 11:57:56 0000</bug_when>
            <thetext>can someone rip this apart and produce a small test case ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@kenzelmann.dyndns.info</who>
            <bug_when>2005-01-22 07:11:07 0000</bug_when>
            <thetext>True, seems to be a gawk problem, same error for me and with other packages like dev-libs/libgpg-error there are errors too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@emcb.demon.co.uk</who>
            <bug_when>2005-01-22 08:15:46 0000</bug_when>
            <thetext>I&apos;m looking into the Apache side of things now..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@emcb.demon.co.uk</who>
            <bug_when>2005-01-22 08:54:38 0000</bug_when>
            <thetext>gawk 1.3.4 seems quite fecked, which is making the stripping down harder.. I&apos;ll carry on unless someone beats me to it ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@emcb.demon.co.uk</who>
            <bug_when>2005-01-22 10:11:52 0000</bug_when>
            <thetext>Ahem, 3.1.4..

This bug(s) are fixed in Fedora (gawk-3.1.4-4), but I&apos;m really out-dated with regard to RPM&apos;s..  could someone familiar with the tools extract these patches?  Otherwise lurning-curve coming up.. (wheeeee)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@emcb.demon.co.uk</who>
            <bug_when>2005-01-22 20:51:18 0000</bug_when>
            <thetext>Created an attachment (id=49252)
Add epatch to ebuild for forthcoming patch..
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@emcb.demon.co.uk</who>
            <bug_when>2005-01-22 20:53:24 0000</bug_when>
            <thetext>Created an attachment (id=49253)
Patch to fix DFA cache buggery..

This patch resolves the issue.	It&apos;s taken from Fedora (I added a comment at
the top of the patch crediting them, I didn&apos;t however mention anything about
Red Hat sitting on patches for months, and months.. sigh..)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2005-01-23 14:18:48 0000</bug_when>
            <thetext>or we could try the LC_ALL=C hack in bug #78749. WFM.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>obz@gentoo.org</who>
            <bug_when>2005-01-24 02:45:52 0000</bug_when>
            <thetext>Elfyn&apos;s patch fixes for me (against gawk-3.1.4), and I can subsequently build apache without problems.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>trapni@gentoo.org</who>
            <bug_when>2005-01-24 04:07:54 0000</bug_when>
            <thetext>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...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-01-28 23:00:13 0000</bug_when>
            <thetext>please try gawk-3.1.4-r1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2005-01-29 12:47:29 0000</bug_when>
            <thetext>with gawk-3.1.4-r1, WFM.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-01-29 20:40:14 0000</bug_when>
            <thetext>thanks Elfyn, you saved my ass on that one :)

3.1.4-r1 seems to be fixing locale problems with other packages too</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>49252</attachid>
            <date>2005-01-22 20:51 0000</date>
            <desc>Add epatch to ebuild for forthcoming patch..</desc>
            <filename>ebuild-plus-epatch.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdhd2stMy4xLjQuZWJ1aWxkLm9yaWcJMjAwNS0wMS0xNCAxMzo0NDoyMS4wMDAwMDAwMDAg
KzAwMDAKKysrIGdhd2stMy4xLjQuZWJ1aWxkCTIwMDUtMDEtMjMgMDQ6MzY6NTAuMDAwMDAwMDAw
ICswMDAwCkBAIC0yNSw3ICsyNSwxMCBAQCBzcmNfdW5wYWNrKCkgewogCiAJY2QgJHtTfQogCSMg
c3VwcG9ydCBmb3IgZGVjIGNvbXBpbGVyLgotCVtbICQodGMtZ2V0Q0MpID09ICJjY2MiIF1dICYm
IGVwYXRjaCAke0ZJTEVTRElSfS8ke1BOfS0zLjEuMi1kZWMtYWxwaGEtY29tcGlsZXIuZGlmZgor
CVtbICQodGMtZ2V0Q0MpID09ICJjY2MiIF1dICYmIGVwYXRjaCAke0ZJTEVTRElSfS8ke1B9LTMu
MS4yLWRlYy1hbHBoYS1jb21waWxlci5kaWZmCisKKwkjIGRmYWNhY2hlIGZpeAorCWVwYXRjaCAk
e0ZJTEVTRElSfS8ke1B9LWRmYWNhY2hlLnBhdGNoCiB9CiAKIHNyY19jb21waWxlKCkgewo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>49253</attachid>
            <date>2005-01-22 20:53 0000</date>
            <desc>Patch to fix DFA cache buggery..</desc>
            <filename>gawk-3.1.4-dfacache.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBUYWtlbiBmcm9tIEZlZG9yYSBTUlBNIGdhd2stMy4xLjQtNDoKIyAgIGh0dHA6Ly9kb3dubG9h
ZC5mZWRvcmEucmVkaGF0LmNvbS9wdWIvZmVkb3JhL2xpbnV4L2NvcmUvZGV2ZWxvcG1lb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