problem resolving foreign function (I think)
DJ <[email protected]> Fri, 06 Mar 2015 22:58:34 -0500
| Newsgroups | gmane.lisp.clsql.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============0699044803==
Content-Type: multipart/alternative;
boundary="------------030002020207090704070101"
This is a multi-part message in MIME format.
--------------030002020207090704070101
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
OK - I'm in over my head here. I did search the archives for help on
this, but I am not that sure what I am looking for.
I can connect to a mysql database, but when I do any query with
(clsql:query...) I get:
Can't resolve foreign symbol "clsql_mysql_field_flags"
So, here is the setup. I am running:
Linux Mint 17 64-bit
Clozure CL Version 1.10-r16196 64-bit
I do NOT have the debian clsql packages installed. When I had them
installed, doing (ql:quickload :clsql-mysql) caused a compile error.
Some of the uffi stuff did not compile. I do not have the specifics of
that right now because I uninstalled the clsql packages on the
assumption that I could use the shared libraries within the quicklisp
distribution, and so would not need to install the debian packages. (Let
me know if that's wrong.)
Anyway, I did a "make" in the db-mysql directory of the the quicklisp
distro of clsql. This made a 64-bit version of clsql_mysql64.so but
crapped out on the 32-bit version. I don't know how to set up 32-bit
development on my Linux MInt box, but I am not sure that's the real
problem anyway.
I jthen did "readelf -Ws clsql_mysql64.so" and saw that the library
exports "clsql_mysql_field_flags".
I did:
(clsql:push-library-path #p
"/home/jakep/quicklisp/dists/quicklisp/software/clsql-20150302-git/db-mysql/")
As I understand it this should make the shared library available to
clsql, which I would have thought would allow resolution of
clsql_mysql_field_flags.
At one point I also pushed the path to the uffi stuff also:
"/home/jakep/quicklisp/dists/quicklisp/software/clsql-20150302-git/uffi/" but
this made no difference.
I have had no trouble running clsql on two of my OS X machines, but
cannot get it going on Linux Mint.
Any help will be deeply appreciated.
Best,
- DJ -
--------------030002020207090704070101
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf=
-8">
</head>
<body bgcolor=3D"#FFFFFF" text=3D"#000000">
OK - I'm in over my head here. I did search the archives for help on
this, but I am not that sure what I am looking for.<br>
<br>
I can connect to a mysql database, but when I do any query with
(clsql:query...) I get:<br>
<br>
<blockquote>Can't resolve foreign symbol "clsql_mysql_field_flags"<br=
>
</blockquote>
<br>
So, here is the setup. I am running:<br>
<br>
Linux Mint 17 64-bit<br>
Clozure CL Version 1.10-r16196 64-bit<br>
<br>
I do NOT have the debian clsql packages installed. When I had them
installed, doing (ql:quickload :clsql-mysql) caused a compile error.
Some of the uffi stuff did not compile. I do not have the specifics
of that right now because I uninstalled the clsql packages on the
assumption that I could use the shared libraries within the
quicklisp distribution, and so would not need to install the debian
packages. (Let me know if that's wrong.)<br>
<br>
Anyway, I did a "make" in the db-mysql directory of the the
quicklisp distro of clsql. This made a 64-bit version of
clsql_mysql64.so but crapped out on the 32-bit version. I don't know
how to set up 32-bit development on my Linux MInt box, but I am not
sure that's the real problem anyway.<br>
<br>
I jthen did "readelf -Ws clsql_mysql64.so" and saw that the library
exports "clsql_mysql_field_flags".<br>
<br>
I did:<br>
<br>
(clsql:push-library-path #p
"/home/jakep/quicklisp/dists/quicklisp/software/clsql-20150302-git/db-mys=
ql/")<br>
<br>
As I understand it this should make the shared library available to
clsql, which I would have thought would allow resolution of
clsql_mysql_field_flags.<br>
<br>
At one point I also pushed=C2=A0 the path to the uffi stuff also:
"/home/jakep/quicklisp/dists/quicklisp/software/clsql-20150302-git/uf=
fi/"
but this made no difference.<br>
<br>
I have had no trouble running clsql on two of my OS X machines, but
cannot get it going on Linux Mint.<br>
<br>
Any help will be deeply appreciated.<br>
<br>
Best,<br>
<br>
- DJ -<br>
<br>
<br>
</body>
</html>
--------------030002020207090704070101--
--===============0699044803==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
CLSQL mailing list
[email protected]
http://lists.b9.com/cgi-bin/mailman/listinfo/clsql
--===============0699044803==--