[squeak-dev] Problems with FFI, SqueakDBX and MacOS
Mariano Martinez Peck
marianopeck at gmail.com
Fri Jan 30 12:22:24 UTC 2009
Hi people: I am asking for help with squeakDBX in mac. Yes, I am one of the
developers, so ? heheheheh
The thing is that Michael Atkisson is trying to getting working and have
problems. As I know very little about mac, I ask for help.
The problem is that FFI is not founding the openDBX library. The error is
the famous "unable to find function address'".
This is his enviorment:
- Image: the 201 core, updated using the system update.
- Squeak vm: 3.8.18beta3U.app
- OS: Mac osx 10.5.6
- FFI instaled from here:
http://map.squeak.org/accountbyid/cf58c358-46ee-465e-b6db-2740e9b32a53/files/InstallFFI3.st
- DYLD_LIBRARY_PATH="/usr/local/lib/:/usr/lib" .....
- PATH=/usr/lib:/usr/local/lib:other entries ....
- Check the property SqueakPluginsBuiltInOrLocalOnly in Info.plist de la VM
was in true but changed to false.
- The ls of the directories of /usr/local/lib and /usr/lib are above.
- We also try to put the openDBX library in the directory where is the VM or
the image, but the same.
- I read this: http://wiki.squeak.org/squeak/5846
Is this true ? I mean, FFI doesn't support dylib ? what can I do in this
case ?
Thanks for all the help you can give us.
Mariano
arkhons-macbook-pro-17:~ arkhon$ cd /usr/local
arkhons-macbook-pro-17:local arkhon$ ls
bin include lib share
arkhons-macbook-pro-17:local arkhon$ cd lib
arkhons-macbook-pro-17:lib arkhon$ ls -l
total 696
-rwxr-xr-x 1 root wheel 20248 Jan 27 18:02 libopendbx.1.1.0.dylib
lrwxr-xr-x 1 root wheel 22 Jan 27 18:02 libopendbx.1.dylib ->
libopendbx.1.1.0.dylib
-rw-r--r-- 1 root wheel 28048 Jan 27 18:02 libopendbx.a
lrwxr-xr-x 1 root wheel 22 Jan 27 18:02 libopendbx.dylib ->
libopendbx.1.1.0.dylib
-rwxr-xr-x 1 root wheel 871 Jan 27 18:02 libopendbx.la
-rwxr-xr-x 1 root wheel 57904 Jan 27 18:02 libopendbxplus.0.0.0.dylib
lrwxr-xr-x 1 root wheel 26 Jan 27 18:02 libopendbxplus.0.dylib ->
libopendbxplus.0.0.0.dylib
-rw-r--r-- 1 root wheel 217424 Jan 27 18:02 libopendbxplus.a
lrwxr-xr-x 1 root wheel 26 Jan 27 18:02 libopendbxplus.dylib ->
libopendbxplus.0.0.0.dylib
-rwxr-xr-x 1 root wheel 928 Jan 27 18:02 libopendbxplus.la
drwxr-xr-x 7 root wheel 238 Jan 27 18:02 opendbx
drwxr-xr-x 3 root wheel 102 Jan 27 18:02 pkgconfig
arkhons-macbook-pro-17:lib arkhon$ cd opendbx
arkhons-macbook-pro-17:opendbx arkhon$ ls -l
total 104
-rwxr-xr-x 1 root wheel 15804 Jan 27 18:02 libpgsqlbackend.1.1.0.so
lrwxr-xr-x 1 root wheel 24 Jan 27 18:02 libpgsqlbackend.1.so ->
libpgsqlbackend.1.1.0.so
-rw-r--r-- 1 root wheel 23760 Jan 27 18:02 libpgsqlbackend.a
-rwxr-xr-x 1 root wheel 908 Jan 27 18:02 libpgsqlbackend.la
lrwxr-xr-x 1 root wheel 24 Jan 27 18:02 libpgsqlbackend.so ->
libpgsqlbackend.1.1.0.so
arkhons-macbook-pro-17:opendbx arkhon$ cd ..
arkhons-macbook-pro-17:lib arkhon$ cd pkgconfig
arkhons-macbook-pro-17:pkgconfig arkhon$ ls -l
total 8
-rw-r--r-- 1 root wheel 231 Jan 27 18:02 opendbx.pc
arkhons-macbook-pro-17:pkgconfig arkhon$
arkhons-macbook-pro-17:~ arkhon$ cd /usr/local
arkhons-macbook-pro-17:local arkhon$ ls
bin include lib share
arkhons-macbook-pro-17:local arkhon$ cd lib
arkhons-macbook-pro-17:lib arkhon$ ls -l
total 696
-rwxr-xr-x 1 root wheel 20248 Jan 27 18:02 libopendbx.1.1.0.dylib
lrwxr-xr-x 1 root wheel 22 Jan 27 18:02 libopendbx.1.dylib ->
libopendbx.1.1.0.dylib
-rw-r--r-- 1 root wheel 28048 Jan 27 18:02 libopendbx.a
lrwxr-xr-x 1 root wheel 22 Jan 27 18:02 libopendbx.dylib ->
libopendbx.1.1.0.dylib
-rwxr-xr-x 1 root wheel 871 Jan 27 18:02 libopendbx.la
-rwxr-xr-x 1 root wheel 57904 Jan 27 18:02 libopendbxplus.0.0.0.dylib
lrwxr-xr-x 1 root wheel 26 Jan 27 18:02 libopendbxplus.0.dylib ->
libopendbxplus.0.0.0.dylib
-rw-r--r-- 1 root wheel 217424 Jan 27 18:02 libopendbxplus.a
lrwxr-xr-x 1 root wheel 26 Jan 27 18:02 libopendbxplus.dylib ->
libopendbxplus.0.0.0.dylib
-rwxr-xr-x 1 root wheel 928 Jan 27 18:02 libopendbxplus.la
drwxr-xr-x 7 root wheel 238 Jan 27 18:02 opendbx
drwxr-xr-x 3 root wheel 102 Jan 27 18:02 pkgconfig
arkhons-macbook-pro-17:lib arkhon$ cd opendbx
arkhons-macbook-pro-17:opendbx arkhon$ ls -l
total 104
-rwxr-xr-x 1 root wheel 15804 Jan 27 18:02 libpgsqlbackend.1.1.0.so
lrwxr-xr-x 1 root wheel 24 Jan 27 18:02 libpgsqlbackend.1.so ->
libpgsqlbackend.1.1.0.so
-rw-r--r-- 1 root wheel 23760 Jan 27 18:02 libpgsqlbackend.a
-rwxr-xr-x 1 root wheel 908 Jan 27 18:02 libpgsqlbackend.la
lrwxr-xr-x 1 root wheel 24 Jan 27 18:02 libpgsqlbackend.so ->
libpgsqlbackend.1.1.0.so
arkhons-macbook-pro-17:opendbx arkhon$ cd ..
arkhons-macbook-pro-17:lib arkhon$ cd pkgconfig
arkhons-macbook-pro-17:pkgconfig arkhon$ ls -l
total 8
-rw-r--r-- 1 root wheel 231 Jan 27 18:02 opendbx.pc
arkhons-macbook-pro-17:pkgconfig arkhon$
arkhons-macbook-pro-17:lib arkhon$ cd pkg*
arkhons-macbook-pro-17:pkgconfig arkhon$ ls -l
total 72
-rw-r--r-- 1 root wheel 345 Sep 23 2007 apr-1.pc
-rw-r--r-- 1 root wheel 393 Sep 23 2007 apr-util-1.pc
-rw-r--r-- 1 root wheel 1757 Sep 23 2007 libcurl.pc
-rw-r--r-- 1 root wheel 286 Sep 23 2007 libexslt.pc
-rw-r--r-- 1 root wheel 3591 Sep 23 2007 libiodbc.pc
-rw-r--r-- 1 root wheel 270 Sep 14 21:08 libxml-2.0.pc
-rw-r--r-- 1 root wheel 276 Sep 23 2007 libxslt.pc
-rw-r--r-- 1 root wheel 225 Jan 27 18:04 opendbx.pc
-rw-r--r-- 1 root wheel 262 Sep 23 2007 openssl.pc
arkhons-macbook-pro-17:pkgconfig arkhon$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090130/90a9c6fb/attachment.htm
More information about the Squeak-dev
mailing list
|