Opened 13 months ago

Last modified 13 months ago

#72781 assigned defect

gwenhywfar5 @5.12.1 build error: invalid suffix "b00011111" on integer constant

Reported by: barracuda156 Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.11.4
Keywords: Cc:
Port: gwenhywfar5

Description

/bin/sh ../../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../gwenhywfar5 -I../../src/base -I../../src/os -I../../src/parser  -isystem/opt/local/include/LegacySupport -I/opt/local/include -DBUILDING_GWENHYWFAR -pipe -Os -arch ppc -Wall -Wall -Wall -c -o tlv.lo tlv.c
libtool: compile:  /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../gwenhywfar5 -I../../src/base -I../../src/os -I../../src/parser -isystem/opt/local/include/LegacySupport -I/opt/local/include -DBUILDING_GWENHYWFAR -pipe -Os -arch ppc -Wall -Wall -Wall -c text.c  -fno-common -DPIC -o .libs/text.o
libtool: compile:  /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../gwenhywfar5 -I../../src/base -I../../src/os -I../../src/parser -isystem/opt/local/include/LegacySupport -I/opt/local/include -DBUILDING_GWENHYWFAR -pipe -Os -arch ppc -Wall -Wall -Wall -c tag16.c -o tag16.o >/dev/null 2>&1
libtool: compile:  /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../gwenhywfar5 -I../../src/base -I../../src/os -I../../src/parser -isystem/opt/local/include/LegacySupport -I/opt/local/include -DBUILDING_GWENHYWFAR -pipe -Os -arch ppc -Wall -Wall -Wall -c tlv.c  -fno-common -DPIC -o .libs/tlv.o
tlv.c:646:28: error: invalid suffix "b00100000" on integer constant
tlv.c:649:26: error: invalid suffix "b00011111" on integer constant
tlv.c:649:64: error: invalid suffix "b00011111" on integer constant
tlv.c:716:24: error: invalid suffix "b00011111" on integer constant
tlv.c:716:62: error: invalid suffix "b00011111" on integer constant
make[4]: *** [tlv.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../gwenhywfar5 -I../../src/base -I../../src/os -I../../src/parser -isystem/opt/local/include/LegacySupport -I/opt/local/include -DBUILDING_GWENHYWFAR -pipe -Os -arch ppc -Wall -Wall -Wall -c text.c -o text.o >/dev/null 2>&1

This looks like the issue fixed for libgphoto2: #72767

Change History (2)

comment:1 Changed 13 months ago by barracuda156

Also this fails:

/bin/sh ../../../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -std=gnu99 -DBUILDERDATADIR=\"/opt/local/share/gwenhywfar/gwenbuild/builders\" -I. -I../../.. -I../../.. -I../ -I../../ -I../../../tools -I../../../gwenhywfar5  -isystem/opt/local/include/LegacySupport -I/opt/local/include  -pipe -Os -arch ppc -Wall -Wall -Wall -c -o gbuilderdescr.lo gbuilderdescr.c
libtool: compile:  /usr/bin/gcc-4.2 -std=gnu99 -DBUILDERDATADIR=\"/opt/local/share/gwenhywfar/gwenbuild/builders\" -I. -I../../.. -I../../.. -I../ -I../../ -I../../../tools -I../../../gwenhywfar5 -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -arch ppc -Wall -Wall -Wall -c genericbuilder.c  -fno-common -DPIC -o .libs/genericbuilder.o
libtool: compile:  /usr/bin/gcc-4.2 -std=gnu99 -DBUILDERDATADIR=\"/opt/local/share/gwenhywfar/gwenbuild/builders\" -I. -I../../.. -I../../.. -I../ -I../../ -I../../../tools -I../../../gwenhywfar5 -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -arch ppc -Wall -Wall -Wall -c gbuilderdescr.c  -fno-common -DPIC -o .libs/gbuilderdescr.o
In file included from gbuilderdescr.c:14:
../../gwenbuild/builders/gbuilderdescr_p.h:21: error: redefinition of typedef 'GWB_GBUILDER_DESCR'
../../gwenbuild/builders/gbuilderdescr.h:22: error: previous declaration of 'GWB_GBUILDER_DESCR' was here
make[5]: *** [gbuilderdescr.lo] Error 1
make[5]: *** Waiting for unfinished jobs....

comment:2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Binary integer constants are supported in gcc 4.3 and later.

C11 and later support typedef redefinition but earlier C standards, like gnu99 used here, don't.

Note: See TracTickets for help on using tickets.