[postgis-tickets] [PostGIS] #5332: Override proj_log_func to stop proj errors leaking out to PgSQL logs

PostGIS trac at osgeo.org
Tue Feb 14 22:43:22 PST 2023


#5332: Override proj_log_func to stop proj errors leaking out to PgSQL logs
--------------------------+---------------------------
  Reporter:  pramsey      |      Owner:  pramsey
      Type:  enhancement  |     Status:  assigned
  Priority:  medium       |  Milestone:  PostGIS 3.3.3
 Component:  postgis      |    Version:  3.3.x
Resolution:               |   Keywords:
--------------------------+---------------------------
Changes (by robe):

 * milestone:  PostGIS 3.4.0 => PostGIS 3.3.3

Comment:

 This broke stable 3.3, so reopening
 https://github.com/postgis/postgis/actions/runs/4181273355/jobs/7243056415

 I guess maybe the syntax is different for PROJ 5.2?  Cause it should have
 worked but didn't on this 5.2 ci.


 {{{
 In file included from postgis_module.c:67:
 /usr/local/include/proj.h:123:2: error: #error proj.h must be included
 before proj_api.h
   123 | #error proj.h must be included before proj_api.h
       |  ^~~~~
 /usr/local/include/proj.h:167:25: error: conflicting types for 'PJ'
   167 | typedef struct PJconsts PJ;         /* the PJ object herself */
       |                         ^~
 In file included from ../libpgcommon/lwgeom_pg.h:27,
                  from postgis_module.c:36:
 ../liblwgeom/liblwgeom.h:48:3: note: previous declaration of 'PJ' was here
    48 | } PJ;
       |   ^~
 In file included from ../liblwgeom/liblwgeom.h:43,
                  from ../libpgcommon/lwgeom_pg.h:27,
                  from postgis_module.c:36:
 /usr/local/include/proj.h:272:5: error: expected identifier before numeric
 constant
   272 |     PJ_LOG_NONE  = 0,
       |     ^~~~~~~~~~~
 cc1: note: unrecognized command-line option '-Wno-unknown-warning-option'
 may have been intended to silence earlier diagnostics
 make[1]: *** [<builtin>: postgis_module.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make: *** [GNUmakefile:24: all] Error 1
 make[1]: Leaving directory '/src/postgis/postgis'
 [logbt] saw 'make' exit with code:2 (INT)
 Error: Process completed with exit code 2.
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5332#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list