[postgis-devel] Compilation problems on OpenSUSE 11

Obe, Regina robe.dnd at cityofboston.gov
Fri Nov 28 04:18:05 PST 2008


Mark,
Ah okay.  I guess I got confused because of the .so name change from
liblwgeom.so to lwpostgis.so so I had 2 sets of .so  and didn't realize
lwpostgis.so was never there before.

Though I always wondered, what is the purpose of making 2 simlinks? I
can understand the .so but what's the .so.1 for?

lrwxrwxrwx   1 0 0   16 2008-11-28 05:07 liblwgeom.so ->
liblwgeom.so.1.3
lrwxrwxrwx   1 0 0   16 2008-11-28 05:07 liblwgeom.so.1 ->
liblwgeom.so.1.3

I don't think version is useful unless our libraries start explicitly
referencing the versioned name and geos also outputs versioned name.  It
would seem to just leave junk around and I can't really see running 2
versions of postgis in the same postgresql install thought guess it
would be useful if you are upgrading a db.  Is that even possible.

It does seem to be possible to run both 1.3.4 and 1.4 because you
happened to name the files differently.  Thus my further confusion
because my 1.3.4 was still working fine so I thought things were not
being replaced.

-----Original Message-----
From: postgis-devel-bounces at postgis.refractions.net
[mailto:postgis-devel-bounces at postgis.refractions.net] On Behalf Of Mark
Cave-Ayland
Sent: Friday, November 28, 2008 4:52 AM
To: PostGIS Development Discussion
Subject: Re: [postgis-devel] Compilation problems on OpenSUSE 11

Obe, Regina wrote:

> More info on my compilation problems.
> 
> I thought maybe it was a permissions issue so I deleted all the lw and

> libl files from my /usr/lib/postgresql directory and then ran
> compile/make clean/make /make install again on postgis-1.4.0.
> 
> After further inspection, it seems that lwpostgis.so is created and 
> copied fine into /usr/lib/postgresql, but
> liblwgeom.so  and the symlinks are not. 
> 
> Looking at the liblwgeom directory of my source - I see a liblwgeom.a

> and  liblwgeom.h but no .so files where as the 1.3.4 had these.

Yeah, liblwgeom.a is stored in the liblwgeom directory, whereas the 
final lwpostgis.so file is stored in the lwgeom directory. At some point

I would like to rename lwgeom/ in trunk to postgis/ to help resolve this

confusion...

> and my /usr/lib/postgresql/ directory only contains one file
lwpostgis.so
> Is this just a difference between 1.4 and 1.3.4 that everything is now

> in one .so file.

Actually everything always was in one .so file for 1.3.x, it's just that

the makefiles added symlinks containing version numbers to the same 
file. Incidentally, I think we can re-enable this with PGXS if people 
feel it is useful.


ATB,

Mark.

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063
_______________________________________________
postgis-devel mailing list
postgis-devel at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-devel
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.



More information about the postgis-devel mailing list