GDAL
March 27, 2011, 7:21am
1
#1335: g.region compilation fails with recent proj
----------------------------+-----------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.1
Component: Compiling | Version: svn-releasebranch64
Keywords: g.region, proj | Platform: Linux
Cpu: Unspecified |
----------------------------+-----------------------------------------------
Using fresh `proj4` from SVN I am getting error when compiling `g.region`,
see also https://trac.osgeo.org/proj/ticket/98
{{{
gcc -I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include -g
-Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused
-I/usr/local/include -I/usr/local/include -DPACKAGE=\""grassmods"\"
-I/usr/local/include -I/usr/local/src/grass64_release/dist.i686-pc-linux-
gnu/include -o OBJ.i686-pc-linux-gnu/printwindow.o -c printwindow.c
In file included from /usr/local/include/projects.h:248:0,
from printwindow.c:5:
/usr/local/include/proj_api.h:61:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘*’ token
/usr/local/include/proj_api.h:82:34: error: expected ‘)’ before ‘const’
/usr/local/include/proj_api.h:95:30: error: expected ‘)’ before ‘int’
/usr/local/include/proj_api.h:96:35: error: expected ‘)’ before ‘const’
/usr/local/include/proj_api.h:108:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘pj_get_default_ctx’
/usr/local/include/proj_api.h:109:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘pj_get_ctx’
/usr/local/include/proj_api.h:110:26: error: expected declaration
specifiers or ‘...’ before ‘projCtx’
/usr/local/include/proj_api.h:111:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘pj_ctx_alloc’
/usr/local/include/proj_api.h:114:33: error: expected ‘)’ before ‘int’
/usr/local/include/proj_api.h:115:33: error: expected ‘)’ before ‘int’
/usr/local/include/proj_api.h:116:34: error: expected ‘)’ before ‘void’
/usr/local/include/proj_api.h:117:36: error: expected ‘)’ before ‘void’
/usr/local/include/proj_api.h:120:22: error: expected ‘)’ before ‘ctx’
make: *** [OBJ.i686-pc-linux-gnu/printwindow.o] Error 1
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1335> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
March 27, 2011, 9:27am
2
#1335: g.region compilation fails with recent proj
----------------------------+-----------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.1
Component: Compiling | Version: svn-releasebranch64
Keywords: g.region, proj | Platform: Linux
Cpu: Unspecified |
----------------------------+-----------------------------------------------
Changes (by hamish):
* cc: hamish (added)
Comment:
as per comments in https://trac.osgeo.org/osgeo4w/ticket/34 ,
* '''does it build in 6.5svn and trunk?''' (see comment 3 in ticket # 34,
and r45469 in 6.5svn)
* does it build on wingrass if you use proj-4.7.0-3 from osgeo4w?
Apparently in proj4 trunk svn rev 1975 some headers were dropped from
trunk/proj/src/Makefile.in, including the req'd projects.h.
I had hoped that would be delayed until we could determine another public
way to get at the convergence angle, and for us to get our source updated
& released.
Backporting r45469 to relbr64 is the partial quick-fix, but doesn't help
solve the root of the problem, and that patch would need to have the
`#ifdef __MINGW32__` stuff removed.
:-/
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1335#comment:1> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
March 27, 2011, 9:37am
3
#1335: g.region compilation fails with recent proj
----------------------------+-----------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.1
Component: Compiling | Version: svn-releasebranch64
Keywords: g.region, proj | Platform: Linux
Cpu: Unspecified |
----------------------------+-----------------------------------------------
Comment(by hamish):
try r45789 in 6.5svn and r45790 in trunk.
rebuild and `g.region -n` needs to be tested, I am concerned about
multiple definitions of the function causing problems on systems not using
proj4-trunk.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1335#comment:2> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
March 28, 2011, 9:53pm
4
#1335: g.region compilation fails with recent proj
----------------------------+-----------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.1
Component: Compiling | Version: svn-releasebranch64
Keywords: g.region, proj | Platform: Linux
Cpu: Unspecified |
----------------------------+-----------------------------------------------
Comment(by martinl):
Replying to [comment:2 hamish]:
> try r45789 in 6.5svn and r45790 in trunk.
>
> rebuild and `g.region -n` needs to be tested, I am concerned about
multiple definitions of the function causing problems on systems not using
proj4-trunk.
thanks, +1 for backport to relbr64. Martin
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1335#comment:3> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
April 4, 2011, 2:30pm
5
#1335: g.region compilation fails with recent proj
----------------------------+-----------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.1
Component: Compiling | Version: svn-releasebranch64
Keywords: g.region, proj | Platform: Linux
Cpu: Unspecified |
----------------------------+-----------------------------------------------
Comment(by martinl):
Replying to [comment:3 martinl]:
> > rebuild and `g.region -n` needs to be tested, I am concerned about
multiple definitions of the function causing problems on systems not using
proj4-trunk.
>
> thanks, +1 for backport to relbr64. Martin
I would really vote for this backport, 6.4.1 is knocking on the door...
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1335#comment:4> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
April 4, 2011, 2:45pm
6
#1335: g.region compilation fails with recent proj
----------------------------+-----------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.1
Component: Compiling | Version: svn-releasebranch64
Keywords: g.region, proj | Platform: Linux
Cpu: Unspecified |
----------------------------+-----------------------------------------------
Comment(by mmetz):
Replying to [comment:4 martinl]:
> Replying to [comment:3 martinl]:
> > > rebuild and `g.region -n` needs to be tested, I am concerned about
multiple definitions of the function causing problems on systems not using
proj4-trunk.
> >
> > thanks, +1 for backport to relbr64. Martin
>
> I would really vote for this backport, 6.4.1 is knocking on the door...
Tested in 6.5 with proj-4.7.0, working fine here.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1335#comment:5> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
April 8, 2011, 11:39am
7
#1335: g.region compilation fails with recent proj
----------------------------+-----------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.1
Component: Compiling | Version: svn-releasebranch64
Keywords: g.region, proj | Platform: Linux
Cpu: Unspecified |
----------------------------+-----------------------------------------------
Comment(by martinl):
Replying to [comment:5 mmetz]:
> Tested in 6.5 with proj-4.7.0, working fine here.
Also works for me...
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1335#comment:6> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
April 9, 2011, 3:54am
8
#1335: g.region compilation fails with recent proj
------------------------+---------------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: closed
Priority: blocker | Milestone: 6.4.1
Component: Compiling | Version: svn-releasebranch64
Resolution: fixed | Keywords: g.region, proj
Platform: Linux | Cpu: Unspecified
------------------------+---------------------------------------------------
Changes (by hamish):
* status: new => closed
* resolution: => fixed
Comment:
universal dropping of projects.h backported to relbr64 in r45878.
fingers crossed..
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1335#comment:7> ;
GRASS GIS <http://grass.osgeo.org >