#67957 closed defect (fixed)

librasterlite2 fails to build with gcc-4.2: rl2mapconfig.h: error: redefinition of typedef 'rl2MapConfig'

Reported by: barracuda156 Owned by: nilason (Nicklas Larsson)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: librasterlite2

Description

/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -pipe -Os -arch ppc -I/opt/local/include -I/opt/local/lib/proj9/include -I../headers -I/opt/local/include -I/opt/local/lib/proj9/include -I/opt/local/include/libpng16 -I/opt/local/include/webp -I/opt/local/include/openjpeg-2.5 -I/opt/local/include/libxml2 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/pixman-1 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16  -pipe -Os -arch ppc -MT rl2map_config.lo -MD -MP -MF .deps/rl2map_config.Tpo -c -o rl2map_config.lo rl2map_config.c
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -pipe -Os -arch ppc -I/opt/local/include -I/opt/local/lib/proj9/include -I../headers -I/opt/local/include -I/opt/local/lib/proj9/include -I/opt/local/include/libpng16 -I/opt/local/include/webp -I/opt/local/include/openjpeg-2.5 -I/opt/local/include/libxml2 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/pixman-1 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -pipe -Os -arch ppc -MT rl2draping.lo -MD -MP -MF .deps/rl2draping.Tpo -c rl2draping.c  -fno-common -DPIC -o .libs/rl2draping.o
In file included from rl2_internal_data.c:54:
../headers/rasterlite2_private.h:516: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:517: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:518: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:519: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:520: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:521: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:522: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:523: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:524: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:525: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:526: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:560: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:561: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:563: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:564: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:565: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:566: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:567: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:568: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:569: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:570: warning: 'uint16' is deprecated
In file included from rl2draping.c:54:
../headers/rasterlite2_private.h:516: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:517: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:518: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:519: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:520: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:521: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:522: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:523: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:524: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:525: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:526: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:560: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:561: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:563: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:564: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:565: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:566: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:567: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:568: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:569: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:570: warning: 'uint16' is deprecated
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -pipe -Os -arch ppc -I/opt/local/include -I/opt/local/lib/proj9/include -I../headers -I/opt/local/include -I/opt/local/lib/proj9/include -I/opt/local/include/libpng16 -I/opt/local/include/webp -I/opt/local/include/openjpeg-2.5 -I/opt/local/include/libxml2 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/pixman-1 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -pipe -Os -arch ppc -MT rl2map_config.lo -MD -MP -MF .deps/rl2map_config.Tpo -c rl2map_config.c  -fno-common -DPIC -o .libs/rl2map_config.o
In file included from rl2map_config.c:56:
../headers/rasterlite2/rl2mapconfig.h:753: error: redefinition of typedef 'rl2MapConfig'
../headers/rasterlite2/rasterlite2.h:685: error: previous declaration of 'rl2MapConfig' was here
../headers/rasterlite2/rl2mapconfig.h:759: error: redefinition of typedef 'rl2MapConfigPtr'
../headers/rasterlite2/rasterlite2.h:692: error: previous declaration of 'rl2MapConfigPtr' was here
In file included from rl2map_config.c:58:
../headers/rasterlite2_private.h:516: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:517: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:518: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:519: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:520: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:521: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:522: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:523: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:524: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:525: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:526: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:560: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:561: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:563: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:564: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:565: warning: 'uint32' is deprecated
../headers/rasterlite2_private.h:566: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:567: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:568: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:569: warning: 'uint16' is deprecated
../headers/rasterlite2_private.h:570: warning: 'uint16' is deprecated
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -pipe -Os -arch ppc -I/opt/local/include -I/opt/local/lib/proj9/include -I../headers -I/opt/local/include -I/opt/local/lib/proj9/include -I/opt/local/include/libpng16 -I/opt/local/include/webp -I/opt/local/include/openjpeg-2.5 -I/opt/local/include/libxml2 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/pixman-1 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -pipe -Os -arch ppc -MT rl2_internal_data.lo -MD -MP -MF .deps/rl2_internal_data.Tpo -c rl2_internal_data.c -o rl2_internal_data.o >/dev/null 2>&1
make[2]: *** [rl2map_config.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

Change History (1)

comment:1 Changed 15 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In da8c4e1ee163b23fbc841adae243c486d75a31b6/macports-ports (master):

librasterlite2: fix build on < 10.7

Fixes: #67957

Note: See TracTickets for help on using tickets.