inn-2.3.2 and inn-2.3.3 give error on compilation
rra at stanford.edu
Mon Jun 17 17:45:00 UTC 2002
gowranga at serc.iisc.ernet.in writes:
> On compiling "inn" (both the versions), on a HP_UX 10.20 system, we got
> the following error:
> gcc -g -O2 -I../include -I/usr/local/include -Ae
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE -L/usr/local/lib -c perl.c
> *Initialization*:1: missing token-sequence in `#assert'
> *** Error exit code 1
> Kindly suggest some work-arounds. Thanks in advance.
The problem is arising from the fact that you compiled Perl with HP's
compiler and you're compiling INN with gcc. Perl is adding -Ae to the
compiler flags because that's the right flag for HP's compiler, but gcc
interprets it differently.
The solution is to either build INN with the same compiler that you built
Perl with, to rebuild Perl with gcc, or to manually remove -Ae from the
compiler flags in Makefile.global after running configure.
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-bugs