INN 2.3.3 HP-UX 11.0 ANSI/C compiler

Christopher Caldwell cdc at groupz.net
Wed Dec 18 21:42:18 UTC 2002


At 08:12 PM 12/17/2002 -0500, Christopher Caldwell wrote:

>./configure
>make
>
>Without flex, the build errors out on lex:
>
>          lex configfile.l
>"configfile.l" line 112: warning 48: Undefined start condition <EOF
>          mv lex.yy.c config_l.c
>          yacc -d configfile.y
>          mv y.tab.h config_y.h
>          mv y.tab.c config_y.c
>          cc -g -Ae -I../include   -c config_l.c
>cpp: "config_l.c", line 82: error 4062: "You must use FLEX to process the
>lex in
>put file."
>*** Error exit code 1
>
>Stop.
>*** Error exit code 1
>
>Stop.
>
><SNIP here's what's around configfile.l line 112>
>
>    BEGIN(INITIAL);
>}
>
><<EOF>> {
>    if ( include_stack_ptr <= 0 )
>
></SNIP>
>
>Apparently lex on HP doesn't care for the EOF syntax.
>
>With flex, I get a bit farther:
>
>           cc -g   -o innfeed article.o buffer.o config_l.o config_y.o
>connection.o  endpoint.o host.o innlistener.o main.o misc.o
>tape.o  version.o ../storage/libstorage.a ../lib/libinn.a  -lelf
>/usr/ccs/bin/ld: Duplicate symbol "yymaxdepth" in files config_y.o and
>../lib/libinn.a(parsedate.o)
>/usr/ccs/bin/ld: Found 1 duplicate symbol(s)
>
>
>In comp.sys.hpux, news.software.nntp, I get hit's on both errors, but I
>haven't been able to figure out a solution.  www.isc.org makes mention of the
>"must use FLEX" issue, but not the duplicate symbol issue.  Suggestions
>would be appreciated.

Tested the build with flex and bison (instead of yacc); inn builds 
successfully.  Moral to the story -- on HP-UX 11.0 use flex and bison; lex 
and yacc don't seem to work correctly.






More information about the inn-workers mailing list