[postgis-users] issue while building postgis-1.5.2 with pg-9

Dharmendra Goyal dharmendra.goyal at enterprisedb.com
Thu Oct 21 23:33:56 PDT 2010


Hi Mark,

I added one CFLAG /GS- and security cookie related warnings went away but
following symbols still could not be found:

c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(pj_gridinfo.obj):(.text+0x6e7):
undefined reference to `_ftol2_sse'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(pj_gridinfo.obj):(.text+0x6fc):
undefined reference to `_ftol2_sse'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(pj_gridinfo.obj):(.text+0xade):
undefined reference to `_ftol2_sse'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(pj_gridinfo.obj):(.text+0xaf3):
undefined reference to `_ftol2_sse'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(pj_gridlist.obj):(.text+0x1a2):
undefined reference to `_imp___wassert'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(PJ_tmerc.obj):(.text+0x917):
undefined reference to `_ftol2_sse'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(PJ_robin.obj):(.text+0x2e):
undefined reference to `_ftol2_sse'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(PJ_robin.obj):(.text+0x181):
undefined reference to `_ftol2_sse'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(nad_intr.obj):(.text+0x21):
undefined reference to `_ftol2_sse'
c:/pginstaller.pune-repo/proj-4.7.0.staging/lib/proj.lib(nad_intr.obj):(.text+0x42):
undefined reference to `_ftol2_sse'
collect2: ld returned 1 exit status

This is coming at the time of linking:
dllwrap -o postgis-1.5.dll --dllname postgis-1.5.dll  --def
libpostgis-1.5dll.def lwgeom_pg.o lwgeom_debug.o lwgeom_accum.o
lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o
lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o
lwgeom_transform.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o
lwgeom_chip.o lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_export.o
lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_in_gml.o
lwgeom_in_kml.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o
long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o geography_inout.o geography_gist.o
geography_btree.o geography_estimate.o geography_measurement.o
 -Lc:/PGINST~1.PUN/PGSQL-~1.1/lib -Wl,--allow-multiple-definition
 -L/C/pgBuild/krb5/lib/i386 -L/C/pgBuild/OpenSSL/lib -L/C/pgBuild/zlib/lib
-Wl,--as-needed   -L/C/pginstaller.pune-repo/geos-3.1.1.staging/lib
-L/C/pginstaller.pune-repo/proj-4.7.0.staging/lib -lgeos_c -lproj
-L/c/pgBuild/libxml2_mingw/lib -lxml2 -lws2_32 ../liblwgeom/liblwgeom.a
-Lc:/PGINST~1.PUN/PGSQL-~1.1/lib -lpostgres

Any clue...??

Regards,
Dharmendra

On Thu, Oct 21, 2010 at 4:33 PM, Mark Cave-Ayland <
mark.cave-ayland at siriusit.co.uk> wrote:

> Dharmendra Goyal wrote:
>
>  Hi,
>>
>> I am trying to build postgis-1.5.2 with postgresql-9.0.1 and i am getting
>> following error while building the sources:
>>
>> c:/pginstaller.pune-repo/proj-4.6.1.staging/lib/proj.lib(pj_utils.obj):(.text+0x47):
>> undefined reference to `__security_cookie'
>> c:/pginstaller.pune-repo/proj-4.6.1.staging/lib/proj.lib(pj_utils.obj):(.text+0x539):
>> undefined reference to `@__security_check_cookie at 4'
>>
>> Error is coming just after executing:
>> make[1]: Entering directory
>> `/c/pginstaller.pune-repo/postgis.windows/postgis'
>> dllwrap -o postgis-1.5.dll --dllname postgis-1.5.dll  --def
>> libpostgis-1.5dll.def lwgeom_pg.o lwgeom_debug.o lwgeom_accum.o
>> lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o
>> lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o
>> lwgeom_transform.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o
>> lwgeom_chip.o lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_export.o
>> lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_in_gml.o
>> lwgeom_in_kml.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o
>> long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o geography_inout.o geography_gist.o
>> geography_btree.o geography_estimate.o geography_measurement.o
>>  -Lc:/PGINST~1.PUN/PGSQL-~1.1/lib -Wl,--allow-multiple-definition
>>  -L/C/pgBuild/krb5/lib/i386 -L/C/pgBuild/OpenSSL/lib -L/C/pgBuild/zlib/lib
>> -Wl,--as-needed   -L/C/pginstaller.pune-repo/geos-3.1.1.staging/lib
>> -L/C/pginstaller.pune-repo/proj-4.6.1.staging/lib -lgeos_c -lproj
>> -L/c/pgBuild/libxml2_mingw/lib -lxml2 -lws2_32 ../liblwgeom/liblwgeom.a
>> -Lc:/PGINST~1.PUN/PGSQL-~1.1/lib -lpostgres
>>
>
> Looks like an MSVC-specific issue with the PROJ.4 library to me:
> http://blogs.msdn.com/b/nikolad/archive/2005/01/27/unresolved-external-security-cookie-with-platform-sdk-compiler.aspx
>
>
> ATB,
>
> Mark.
>
> --
> Mark Cave-Ayland - Senior Technical Architect
> PostgreSQL - PostGIS
> Sirius Corporation plc - control through freedom
> http://www.siriusit.co.uk
> t: +44 870 608 0063
>
> Sirius Labs: http://www.siriusit.co.uk/labs
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



-- 
Dharmendra Goyal
Senior Software Engineer
EnterpriseDB Corporation
The Enterprise Postgres Company

Phone: +91-20-30589493
Mobile: +91-9552103323

Website: http://www.enterprisedb.com
EnterpriseDB Blog: http://blogs.enterprisedb.com/
Follow us on Twitter: http://www.twitter.com/enterprisedb

This e-mail message (and any attachment) is intended for the use of the
individual or entity to whom it is addressed. This message contains
information from EnterpriseDB Corporation that may be privileged,
confidential, or exempt from disclosure under applicable law. If you are not
the intended recipient or authorized to receive this for the intended
recipient, any use, dissemination, distribution, retention, archiving, or
copying of this communication is strictly prohibited. If you have received
this e-mail in error, please notify the sender immediately by reply e-mail
and delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20101022/d8524105/attachment.html>


More information about the postgis-users mailing list