The error message means that it can't find libcurl.

Did you compile curl and libcurl from source or are you using a precompiled binary?

If you compiled from source using the standard ./configure, make, make install way, then this shouldn't happen.

If you use precompiled binary, then the likely reason for the error is that the libfiles are not in the place curl expects them to be. The "correct" place can be found out by executing 'curl-config --libs'. One of the first things you'll see is something like -L/usr/lib or -L/usr/local/lib or whatever. That's the place where the libfiles should be. If you for some reason don't want to do that your options are: editing curl-config, adding -L/adress/to/libdirectory to the second oztool ld line or reworking the installation procedure.

I really recommend compiling curl yourself. It's really painless, allows you to add extra libraries(ssl, ssh, kerberos etc) when you need them and guarantees correct paths.

I hope this helps.
/pavel


On Sun, 19 Aug 2007, Torsten Anders wrote:

Dear Pavel,

meanwhile I installed curl and libcurl ;-) (both version 7.16.4). The install.sh script now does compile the sources (script feedback see below). Nevertheless, its still not working, unfortunately. After feeding your file example.oz, I do {CURL.version_info} and get the error below. I double checked that the file curl.so-i486-darwin really exists in the given directory. I am running MacOS 10.4.10.

Any idea?

Thanks
Torsten


%****************** Error: native code interface ****************
%**
%** Cannot dynamically link object file
%**
%** File name: /Users/t/oz/Collozeum/collozeum/ozcurl/trunk/ozcurl/curl.so-i486-darwin %** dlerror: dlopen(/Users/t/oz/Collozeum/collozeum/ozcurl/trunk/ozcurl/curl.so-i486-darwin, 10): Symbol not found: _curl_easy_escape Referenced from: /Users/t/oz/Collozeum/collozeum/ozcurl/trunk/ozcurl/curl.so-i486-darwin
Expected in: flat namespace

%** In statement: {<P/2 INTERNAL.getNative> '#'('/' [85 115 101 114 115] '/' [116] '/' [111 122] '/' [67 111 108 108 111 122 101 117 109] '/' [99 111 108 108 111 122 101 117 109] ,,,) _}
%**
%** Call Stack:
%** procedure 'Meth_native_win32' in file "/Users/t/oz/mozart/trunk/mozart/share/lib/init/Resolve.oz", line 63, column 3, PC = 1672132
%**--------------------------------------------------------------







-------------------

$ ./install.sh
curl.c: In function 'version_info':
curl.c:268: warning: passing argument 1 of 'make_list' from incompatible pointer type
curl.c: In function 'easy_setopt':
curl.c:496: warning: passing argument 2 of 'open' makes integer from pointer without a cast



--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
strasheela.sourceforge.net
www.torsten-anders.de




_________________________________________________________________________________
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

Reply via email to