Not sure how much this still applies to 7.4 CVS HEAD, nor how far away
the next 7.4 release is, but since I got this nice bug report, it just
might as well end up where it could do some good:
Date: Mon, 16 Feb 2004 08:17:04 +1100
From: Ben White <bwhite(a)cat.net.au>
To: jhs(a)pike.ida.liu.se
Subject: Bug in Pike-v7.4.28 distribution
Hi,
There's a problem with a couple of Makefiles in the Pike v7.4.28
distribution that causes compilation errors in the GL and GTK modules
when compiled on some platforms.
Basically, the problem is this line in
src/post_modules/GL/Makefile.in:
CFLAGS="`echo $(CFLAGS) | sed -e 's/-g//g' -e 's/-W[^ ]*//g' -e
's/-O[^ ]*//g'`$
And this line in src/post_modules/GTK/Makefile.in:
CFLAGS="`echo $(CFLAGS) | sed -e 's/-g//g' -e 's/-W[^ ]*//g'`" \
The problem is the sed expression that removes all occurances of "-g"
from CFLAGS. Since CFLAGS will include -I directives, this will fail
if any of the directory paths in those directives include the strings
"-g". This caused trouble on the Gentoo distribution, where the
architecture string looks like Linux-2.4.22-gentoo-r1, because Pike
creates directories named after the architecture while compiling
modules, and then includes them in CFLAGS as -I directives. I imagine
it would also cause trouble if Pike is compiled from a directory that
has "-g" or "-W" in its absolute path too.
Regards,
Ben