[postgis-devel] [PostGIS] #531: pgis_getopt() define colliding opt* vars
PostGIS
trac at osgeo.org
Sat May 22 08:02:14 PDT 2010
#531: pgis_getopt() define colliding opt* vars
---------------------+------------------------------------------------------
Reporter: frankie | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 1.5.2
Component: postgis | Version: 1.5.X
Keywords: |
---------------------+------------------------------------------------------
See
{{{
https://buildd.debian.org/fetch.cgi?pkg=postgis;ver=1.5.1-3;arch=mips;stamp=1274527990
}}}
Specifically:
{{{
/usr/bin/make -C loader
make[2]: Entering directory `/build/buildd-postgis_1.5.1-3-mips-
L5JyGx/postgis-1.5.1/loader'
mips-linux-gnu-gcc -Wall -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I. -I/usr/include/postgresql/8.4/server
-I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/include/tcl8.5 -c -o stringbuffer.o stringbuffer.c
mips-linux-gnu-gcc -Wall -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I. -I/usr/include/postgresql/8.4/server
-I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/include/tcl8.5 -c -o shpopen.o shpopen.c
mips-linux-gnu-gcc -Wall -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I. -I/usr/include/postgresql/8.4/server
-I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/include/tcl8.5 -c -o dbfopen.o dbfopen.c
mips-linux-gnu-gcc -Wall -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I. -I/usr/include/postgresql/8.4/server
-I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/include/tcl8.5 -c -o getopt.o getopt.c
mips-linux-gnu-gcc -Wall -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-c shp2pgsql-core.c
mips-linux-gnu-gcc -Wall -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I. -I/usr/include/postgresql/8.4/server
-I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/include/tcl8.5 -c -o shp2pgsql-cli.o shp2pgsql-cli.c
mips-linux-gnu-gcc -Wall -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
stringbuffer.o shpopen.o dbfopen.o getopt.o shp2pgsql-core.o shp2pgsql-
cli.o ../liblwgeom/liblwgeom.a -o shp2pgsql -lc -lm
/usr/bin/ld: non-dynamic relocations refer to dynamic symbol
optopt@@GLIBC_2.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
}}}
It causes problems with mips(el) build failure, probably due to oddities
in mips arch binutils, but anyway it is not a good programming style.
Patching is trivial, anyway.
Cheers by your friendly neighborhood Debian packager.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/531>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list