Menu

#20 boa-0.94.13 build fails with gcc 3.3.1

open
nobody
boa (32)
5
2004-04-01
2004-04-01
Anonymous
No

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.

Discussion

  • Stefano Fedrigo

    Stefano Fedrigo - 2004-04-02

    Logged In: YES
    user_id=781973

    I'm sorry, I see only new this bug is fixed in the latest devel
    version...

     
  • Anonymous

    Anonymous - 2004-05-25

    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

     
  • Anonymous

    Anonymous - 2004-05-25

    Patch to src/compat.h to allow compilation with GCC 3.3

     
  • Anonymous

    Anonymous - 2004-05-25

    Patch to boa.spec to fix rpm build with boa-compat-cpp-patch

     

Log in to post a comment.