[GRASS-dev] wingrass compilation issue (proj.lib vs. proj_i.lib)
Martin Landa
landa.martin at gmail.com
Sat Dec 5 03:29:46 PST 2015
Hi,
recently I was fixing wingrass compilation issue related to recently
upgraded proj4 package in osgeo4w to 4.9. GRASS compilation fails:
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
c:/OSGeo4W/lib/proj.lib(pj_init.obj):(.text+0x445): undefined
reference to `@__security_check_cookie at 4'
c:/OSGeo4W/lib/proj.lib(pj_transform.obj):(.text+0xa): undefined
reference to `__security_cookie'
c:/OSGeo4W/lib/proj.lib(pj_transform.obj):(.text+0x6d): undefined
reference to `@__security_check_cookie at 4'
c:/osgeo4w/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe:
c:/OSGeo4W/lib/proj.lib(pj_transform.obj): bad reloc address 0x6d in
section `.text'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [/c/osgeo4w/usr/src/grass70_release/dist.i686-pc-mingw32/lib/libgrass_gproj.7.0.3svn.dll]
Error 1
This issue is fixed in trunk by ugly workaround - modifying
Platform.make by sed (r67017), similar issues are solved by
`gdal-config` or `geos-config` wrappers. There is no support for such
wrapper in the case of proj4lib detection by GRASS `configure` script.
Does anyone have any idea how to solve this issue correctly without
modifying Platform.make manually? Thanks, Martin
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
More information about the grass-dev
mailing list