[GRASS-dev] wingrass compilation issue (proj.lib vs. proj_i.lib)

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@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@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

Hi,

2015-12-05 12:29 GMT+01:00 Martin Landa <landa.martin@gmail.com>:

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

seems that r67021 solves this issue. Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa