Opened 14 years ago

Closed 13 years ago

#531 closed defect (wontfix)

pgis_getopt() defines colliding opt* vars

Reported by: frankie Owned by: pramsey
Priority: medium Milestone: PostGIS 1.5.3
Component: postgis Version: 1.5.X
Keywords: Cc:




/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.

Change History (4)

comment:1 by frankie, 14 years ago

Summary: pgis_getopt() define colliding opt* varspgis_getopt() defines colliding opt* vars

comment:2 by robe, 13 years ago

I think this one should be fixed before release since it causes packaging issues and according to the author is a trivial fix.

comment:3 by pramsey, 13 years ago

I look forward to receiving that trivial fix.

comment:4 by pramsey, 13 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.