[postgis-devel] PostGIS 1.2.0 build error on FC7 + gcj
Markus Schaber
schabi at logix-tt.com
Mon Jan 8 01:49:15 PST 2007
Hi, Devrim,
Devrim GUNDUZ <devrim at CommandPrompt.com> wrote:
> I got an error while building PostGIS on FC-7:
>
> http://buildsys.fedoraproject.org/logs/fedora-development-extras/24645-postgis-1.2.0-3.fc7/i386/build.log
The problem here is that the pgjdbc people dropped their debug methods
in favour of the java.util.logging framework. I committed a patch to
fix this, but that means that we won't compile on java 1.3 and earlier
any more.
> 1. WARNING in src/org/postgis/DriverWrapper.java (at line 265)
> pgconn.addDataType("geometry", "org.postgis.PGgeometry");
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> The method addDataType(String, String) from the type PGConnection is deprecated
> ----------
> 2. WARNING in src/org/postgis/DriverWrapper.java (at line 270)
> pgconn.addDataType("box3d", "org.postgis.PGbox3d");
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> The method addDataType(String, String) from the type PGConnection is deprecated
> ----------
> =======================================================================================
>
> So that means we may need to change something in PostGIS source code.
This is because the PGJDBC people kept changing their interface for
datatype extensions, and I've to support it back to 7.2.
So I use some ugly classloader tricks and a custom stub to make it work.
Things would be much easier here if we could support only pgjdbc 8.0 and
newer (which would still work against older servers)
Now, it seems that GCJ does not get the classpath correct, when the
classpath has components relative to the current directory, and uses the
original PGJDBC classes instead.
I committed a small makefile patch that should fix it.
Thanks,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
More information about the postgis-devel
mailing list