Boriss et al,
Thanks for the ozf
I compiled the so from the contrib directory using
oztool c++ -I/Library/PostgreSQL8/include/ -c PsqlLib.cc
oztool ld -L/Library/PostgreSQL8/lib/ -lpq -lcrypto -o PsqlLib.so-
`oztool platform`
Copied the resulting
PsqlLib.so-darwin-i386
Into the same directory as the ozf
and then executed the following in the OPI
declare [PSQL] = {Module.link ['file:///Users/jhenzie/Downloads/Psql.ozf'
]}
declare CON = {PSQL.startSQL "host=localhost dbname=TestSQL
user=postgres password=postgres"}
The emulator prints the following error
%********************** Error: module manager *******************
%**
%** Could not link module
%**
%** Could not load native functor at URL:
file:///Users/jhenzie/Downloads/PsqlLib.so
%**--------------------------------------------------------------
Is there anyway to get a more verbose message, or explanation of the
error, I can clearly see the so and ozf in the same directory and
their permission are rwx.
Regards,
Justin
OS X Leopard 10.5.5, Mozart 1.4
P.S. I should have thought of this before but I was able to simply
ozc -c Psql.oz and generate the ozf, Sadly the same error occurred.
On Sep 29, 2008, at 6:27 AM, Boriss Mejias wrote:
Hi Justin,
I'm attaching the functor on this email. I don't know if it is going
to work, because I don't know if the compilation of contrib/psql is
platform independent. In fact, on my installation directory cache/x-
oz/contrib I can find Psql.ozf an executable called PsqlLib.so-linux-
i486
cheers
Boriss
Justin Henzie wrote:
Pursuant to my last regarding building .../contrib/psql on OS X
Leopard (x86), I don't suppose any one has the ozf knocking around?
I really don't want to have to use ODBC.
-Justin
_________________________________________________________________________________
mozart-users mailing list [email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
<
Psql
.ozf
>
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users