boa-0.94.13 build fails with gcc 3.3.1
Brought to you by:
jnelson
With gcc 3.3.1 on Linux x86,
doing ./configure and make:
[...]
gcc -g -O2 -pipe -Wall -I. -c -o util.o util.c
util.c:100:40: pasting "t" and "->" does not give a valid
preprocessing token
The problem is in compat.h, line 120:
#define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff
The ## is not needed here, because the things "pasted"
are not preprocessor simbols. Newer gcc complains.
Changing the line:
#define TIMEZONE_OFFSET(foo) foo->tm_gmtoff
works well.
I think line 126 has the same problem, but
HAVE_TM_ZONE is undefined and the line is not
preprocessed.
Logged In: YES
user_id=781973
I'm sorry, I see only new this bug is fixed in the latest devel
version...
Logged In: YES
user_id=9074
We discovered the same problem when building boa for the
newest SF.net webservers. I've attached two patches here to
enable the building from the source rpm available here:
http://prdownloads.sourceforge.net/boa/boa-0.94.13-1.src.rpm?download
boa-compat-cpp-patch is the file to drop in SOURCES after
unpacking the RPM.
boa-spec-patch should be run in the SPECS directory with:
# patch -p1 < /path/to/boa-spec-patch
Patch to src/compat.h to allow compilation with GCC 3.3
Patch to boa.spec to fix rpm build with boa-compat-cpp-patch