FS#40528 - [postgis] postgis broken by json-c update 0.11 to 0.12

Attached to Project: Community Packages
Opened by Christoph Brill (egore911) - Saturday, 24 May 2014, 15:26 GMT
Last edited by Anatol Pomozov (anatolik) - Monday, 02 June 2014, 16:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Anatol Pomozov (anatolik)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 14
Private No

Details

Description:
After upgrading json-c from 0.11 to 0.12 I get the following error:

/usr/lib/postgresql/postgis-2.1.so: undefined symbol: json_tokener_errors
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Monday, 02 June 2014, 16:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed 2.1.3-2
Comment by Jaroslav Lichtblau (Dragonlord) - Sunday, 25 May 2014, 19:18 GMT
How about building postgis against json-c from [testing]. Does that fix the error?
I guess once json-c 0.12 is moved from testing, I'll have to rebuild postgis.
Comment by Christoph Brill (egore911) - Sunday, 25 May 2014, 22:16 GMT
Json-c 0.12 is API and ABI inkompatible with 0.11, without bumping the soname. Builing postgis against json-c 0.12 failed. Maybe json-c 0.12 should install und er a different soname vor path?
Comment by Marius (65kid) - Tuesday, 27 May 2014, 08:07 GMT Comment by Sergey Vidyuk (vestnik) - Thursday, 29 May 2014, 12:45 GMT
This issue requires recompilation of the two packages with custom patches: gdal and postgis. Patch for gdal already taken upstream and will be released with the next version: http://trac.osgeo.org/gdal/ticket/5449 fixing postgis requires 3 line changes in the liblwgeom/lwin_geojson.c file (minimal patch which is attached). I've added patching to the prepare section of PKGBUILDs downloaded with abs and recompiled corresponding packages to fix this issue. I think it might be good to use this solution untill bugs are not fixed upstream.
Comment by Vlalislav (dumphblooz) - Friday, 30 May 2014, 09:24 GMT
Same problem.
Comment by Anatol Pomozov (anatolik) - Friday, 30 May 2014, 12:52 GMT
Current workaround is to downgrade json-c back to 0.11.

Jaroslav, do you need help with this bug? I can take care of it.
Comment by Anatol Pomozov (anatolik) - Saturday, 31 May 2014, 01:23 GMT
This bug affects many people so I am going to bite the bullet and fix this issue.

Fixed postgis will be available in [testing] soon. Please check that it works as expected.
Comment by Anatol Pomozov (anatolik) - Monday, 02 June 2014, 15:36 GMT
Ping. Did anyone test version 2.1.3-2 from [testing]?
Comment by Marius (65kid) - Monday, 02 June 2014, 16:06 GMT
works fine for me, thanks.

Loading...