Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#2934 closed defect (fixed)

Winnie not happy -- undefined reference to `strcasestr'

Reported by: robe Owned by: pramsey
Priority: blocker Milestone: PostGIS 2.1.5
Component: QA/buildbots Version: 2.1.x
Keywords: Cc:

Description

Issue seems to have started around r12983

#2931, BOX representation is case sensitive

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g   -shared -o postgis-2.1.dll  postgis_module.o  lwgeom_accum.o  lwgeom_spheroid.o  lwgeom_ogc.o  lwgeom_functions_analytic.o  lwgeom_inout.o  lwgeom_functions_basic.o  lwgeom_btree.o  lwgeom_box.o  lwgeom_box3d.o  lwgeom_geos.o  lwgeom_backend_api.o  lwgeom_geos_prepared.o  lwgeom_geos_clean.o  lwgeom_geos_relatematch.o  lwgeom_export.o  lwgeom_in_gml.o  lwgeom_in_kml.o  lwgeom_in_geohash.o  lwgeom_in_geojson.o  lwgeom_triggers.o  lwgeom_dump.o  lwgeom_dumppoints.o  lwgeom_functions_lrs.o  long_xact.o  lwgeom_sqlmm.o  lwgeom_rtree.o  lwgeom_transform.o  gserialized_typmod.o  gserialized_gist_2d.o  gserialized_gist_nd.o  gserialized_estimate.o  geography_inout.o  geography_btree.o  geography_measurement.o  geography_measurement_trees.o  geometry_inout.o -Le:/jenkins/postgresql/rel/pg9.4w32gcc481/lib -Wl,--allow-multiple-definition  -Wl,--as-needed   ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a  -L/projects/geos/rel-3.4.2w32gcc481/lib -L/projects/proj/rel-4.8.0w32gcc481/lib -lgeos_c -lproj -L/projects/json-c/rel-0.12w32gcc481/lib -ljson-c -L/projects/libxml/rel-libxml2-2.7.8w32gcc481/lib -lxml2 -lws2_32  -Le:/jenkins/postgresql/rel/pg9.4w32gcc481/lib -lpostgres -lpgcommon -lpgport -lm  -lws2_32 -lshfolder -Wl,--export-all-symbols -Wl,--out-implib=libpostgis-2.1.a
lwgeom_box.o: In function `BOX2D_in':
e:\jenkins\postgis\branches\2.1\postgis/lwgeom_box.c:55: undefined reference to `strcasestr'
collect2.exe: error: ld returned 1 exit status
e:/jenkins/postgresql/rel/pg9.4w32gcc481/lib/pgxs/src/makefiles/../../src/Makefile.shlib:382: recipe for target `postgis-2.1.dll' failed
make[1]: *** [postgis-2.1.dll] Error 1
make[1]: Leaving directory `/projects/postgis/branches/2.1/postgis'
GNUmakefile:14: recipe for target `all' failed
make: *** [all] Error 1

Change History (4)

comment:1 by pramsey, 10 years ago

Attempt at r12989, untested since my platform does have strcasestr

comment:2 by robe, 10 years ago

that worked guess just need to apply to other branches.

comment:3 by pramsey, 10 years ago

Resolution: fixed
Status: newclosed

also in 2.1 at r12990 and 2.0 at r12991

comment:4 by strk, 9 years ago

For the record: completely removed strcasestr usage in 2.0.7/2.1.7/2.2.0 per #3088

Note: See TracTickets for help on using tickets.