Subject: pkg/33859: devel/cqual fails to build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Ryo HAYASAKA <ryoh@jaist.ac.jp>
List: pkgsrc-bugs
Date: 06/29/2006 03:50:01
>Number:         33859
>Category:       pkg
>Synopsis:       devel/cqual fails to build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 29 03:50:01 +0000 2006
>Originator:     Ryo HAYASAKA
>Release:        NetBSD 3.99.21, pkgsrc-current
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 3.99.21 NetBSD 3.99.21 (BONNIE) #613: Fri Jun 23 13:25:22 JST 2006 ryoh@bonnie.jaist.ac.jp:/sys/arch/i386/compile/BONNIE i386
Architecture: i386
Machine: i386
>Description:
devel/cqual fails to build as follows:

$ make
...
if cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"cqual\" -DVERSION=\"0.991\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_VOIDP=4 -DHAVE_ALLOCA=1 -DPROTOTYPES=1 -D__PROTOTYPES=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRDUP=1 -DHAVE_STRTOLD=1 -DHAVE_STRTOL=1  -I. -I. -Ddeletes= -Dtraditional= -Dsameregion= -Dparentptr= -Werror -Wall -Wno-char-subscripts  -fno-strict-aliasing -O9  -I./libcompat -I/usr/lib/ocaml/    -Werror -Wall -Wno-char-subscripts  -fno-strict-aliasing -O9  -MT c-lex.o -MD -MP -MF ".deps/c-lex.Tpo" \
          -c -o c-lex.o `test -f 'c-lex.c' || echo './'`c-lex.c; \
        then mv -f ".deps/c-lex.Tpo" ".deps/c-lex.Po"; \
        else rm -f ".deps/c-lex.Tpo"; exit 1; \
        fi
c-lex.c:146: error: static declaration of 'token_buffer' follows non-static declaration
c-lex.h:67: error: previous declaration of 'token_buffer' was here
gmake[3]: *** [c-lex.o] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/devel/cqual/work/cqual-0.991/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/devel/cqual/work/cqual-0.991/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/devel/cqual/work/cqual-0.991/src'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/devel/cqual
===> /usr/pkgsrc/devel/cqual/work/.build_done [cqual-0.991nb5] ===>
===> /usr/pkgsrc/devel/cqual/work/.build_done [cqual-0.991nb5] ===> There was an error during the ``build'' phase.
===> /usr/pkgsrc/devel/cqual/work/.build_done [cqual-0.991nb5] ===> Please investigate the following for more information:
===> /usr/pkgsrc/devel/cqual/work/.build_done [cqual-0.991nb5] ===>      * log of the build
===> /usr/pkgsrc/devel/cqual/work/.build_done [cqual-0.991nb5] ===>      * /usr/pkgsrc/devel/cqual/work/.work.log
===> /usr/pkgsrc/devel/cqual/work/.build_done [cqual-0.991nb5] ===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/cqual
*** Error code 1

Stop.

gcc4 is used for the compiling.
	
>How-To-Repeat:
	
>Fix: