[postgis-users] Re: failure to load postgis.sql
spanring at oir.at
Thu Dec 4 23:51:13 PST 2003
It seems the main problem on mac os x (at least on my 10.3.1) is that
there is no libstdc++XXX.so, only a libstdc++.a.
I checked the linkage with otools (ldd doesn't exist on mac os x) of
postgres etc. -> libstdc++ doesn't appear, it's not linked nor missing.
Maybe the tests regarding libstdc++ during compilation are ok because
there is the .a, but later on runtime it can't find the shared object.
Since this issue goes far beyond my little unix-knowledge, I'm not
quite sure about this theory. If I find a solution I'll let you know.
Good luck! Christian
Am 05.12.2003 um 08:12 schrieb Byron Amerson:
> Hi There,
> It took me a few days to get back to this issue, but I am still having
> this problem.
> I re-compiled postgres-7.4 and was sure to set the environment variable
> LDFLAGS=-lstdc++, I noticed that configure saw that this was set.
> I also insured that everthing for postgis was installed where it should
> be (/usr/local/pgsql/*). geos in /usr/local/* and proj in the same.
> so the command:
> [Tectonic:~] postgres% psql -f /usr/local/pgsql/share/postgis.sql -d
> results in the following error messages:
> PL/PgSQL is installed.
> (1 row)
> psql:/usr/local/pgsql/share/contrib/postgis.sql:41: NOTICE: type
> "histogram2d" is not yet defined
> DETAIL: Creating a shell type definition.
> psql:/usr/local/pgsql/share/contrib/postgis.sql:41: ERROR: could not
> library "/usr/local/pgsql/lib/libpostgis.so.0.8": dyld:
> /usr/local/pgsql/bin/postmaster Undefined symbols:
> psql:/usr/local/pgsql/share/contrib/postgis.sql:46: ERROR: current
> transaction is aborted, commands ignored until end of transaction block
> < snip >
> Why don't the libs work? Is it possible even though the environment
> variable was set things did not work properly during configure/make?
> Any help would be appreciated. again, macosx10.3.1.
> Byron Amerson
> MS student
> University of Washington
> Department of Earth and Space Sciences
> On Mon, 1 Dec 2003, Byron Amerson wrote:
>> I am not at the computer where I am attempting to build postgis,
>> none the
>> in attempting the following LDFLAGS=-lstdc ./compile
>> my system barked that it did not know the command LDFLAGS.
>> So I set an environment variable like so:
>> setenv LADFLAGS -lstdc
>> and indeed it showed up as LDFLAGS=-lstdc when I checked using env.
>> so I went ahead and compiled.
>> evidently this either did not work as expected or was not the right
>> way to
>> Byron Amerson
>> MS student
>> University of Washington
>> Department of Earth and Space Sciences
> postgis-users mailing list
> postgis-users at postgis.refractions.net
More information about the postgis-users