Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104945 - cl-sql-3.2.1 does not install clsql_mysql.so
Summary: cl-sql-3.2.1 does not install clsql_mysql.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 13:21 UTC by DiG
Modified: 2006-01-01 17:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
new working ebuild (cl-sql-3.2.1-r1.ebuild,3.57 KB, application/octet-stream)
2005-09-05 13:59 UTC, DiG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DiG 2005-09-05 13:21:10 UTC
cl-sql has an old .so name need to change to clsql_mysql.so
also need to add to the LDPATH the directory where clsql_uffi.so and
clsql_mysql.so are located. sbcl cannot find them.

Reproducible: Always
Steps to Reproduce:
1.sbcl
2.(require 'clsql-mysql)
3.

Actual Results:  
Couldn't load foreign libraries "clsql_uffi64",
#P"/usr/share/common-lisp/source/clsql-uffi/uffi/clsql_uffi64", "clsql_uffi",
#P"/usr/share/common-lisp/source$
   [Condition of type SIMPLE-ERROR]

WARNING: Error opening shared object "clsql_uffi64.so":                        
                                                                               
  clsql_uffi64.so: cannot open shared object file: No such file or directory.  
                                                                               
WARNING: Error opening shared object "clsql_uffi.so":                          
                                                                               
  clsql_uffi.so: cannot open shared object file: No such file or directory.    
                                                                               
WARNING: Error opening shared object "clsql_uffi64.a":                         
                                                                               
  clsql_uffi64.a: cannot open shared object file: No such file or directory.   
                                                                               
WARNING: Error opening shared object "clsql_uffi.a":                           
                                                                               
  clsql_uffi.a: cannot open shared object file: No such file or directory.     
                                                                               
WARNING: Error opening shared object "clsql_uffi64.o":                         
                                                                               
  clsql_uffiWARNING: Error opening shared object "clsql_uffi64.so":            
                                                                               
           
  clsql_uffi64.so: cannot open shared object file: No such file or directory.  
                                                                               
WARNING: Error opening shared object "clsql_uffi.so":                          
                                                                               
  clsql_uffi.so: cannot open shared object file: No such file or directory.    
                                                                               
WARNING: Error opening shared object "clsql_uffi64.a":                         
                                                                               
  clsql_uffi64.a: cannot open shared object file: No such file or directory.   
                                                                               
WARNING: Error opening shared object "clsql_uffi.a":                           
                                                                               
  clsql_uffi.a: cannot open shared object file: No such file or directory.     
                                                                               
WARNING: Error opening shared object "clsql_uffi64.o":                         
                                                                               
  clsql_uffi64.o: cannot open shared object file: No such file or directory.   
                                                                               
WARNING: Error opening shared object "clsql_uffi.o":                           
                                                                               
  clsql_uffi.o: cannot open shared object file: No such file or directory.     
                                                                              
64.o: cannot open shared object file: No such file or directory.               
                                                                   
WARNING: Error opening shared object "clsql_uffi.o":                           
                                                                               
  clsql_uffi.o: cannot open shared object file: No such file or directory.
Comment 1 DiG 2005-09-05 13:59:37 UTC
Created attachment 67698 [details]
new working ebuild

Just fixed my own bug.
Comment 2 DiG 2005-09-05 14:04:18 UTC
Change hardware to all. Because this problem exists on x86 too. Could somebody
check in my fixed ebuild. Thanks.
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2005-12-29 15:31:53 UTC
I committed a new ebuild for dev-lisp/cl-sql-3.5.2 which should fix any
multilib issues.  It goes about locating the shared libraries a little differently
to how you have done it.  Please test.  If it works, I'll request arch testers to
make it the new stable for x86.
Comment 4 DiG 2005-12-30 17:27:24 UTC
(In reply to comment #3)
> I committed a new ebuild for dev-lisp/cl-sql-3.5.2 which should fix any
> multilib issues.  It goes about locating the shared libraries a little
> differently
> to how you have done it.  Please test.  If it works, I'll request arch testers
> to
> make it the new stable for x86.
> 

I tried it and it does not work on x86 or x86_64. I get this:
STYLE-WARNING: Undefined alien: "clsql_mysql_num_rows"
STYLE-WARNING: Undefined alien: "clsql_mysql_affected_rows"
STYLE-WARNING: Undefined alien: "clsql_mysql_insert_id"
STYLE-WARNING: Undefined alien: "clsql_mysql_data_seek"
Error Attempt to call an undefined alien function.

When I try to connect execute some SQL. The (connect ...) is succeeding.
Need to dig deeper.
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2005-12-31 11:21:00 UTC
Here is the output of my test in SBCL for dev-lisp/cl-sql-3.5.2:

CL-USER> (asdf:oos 'asdf:load-op :clsql-mysql)
...
CL-USER> (defpackage #:test (:use #:common-lisp))
#<PACKAGE "TEST">
CL-USER> 
TEST> (clsql:connect '(nil "database01" "root" "..."))
#<CLSQL-MYSQL:MYSQL-DATABASE localhost/database01/root OPEN {A7DBD71}>
TEST> (clsql:query "select * from table01")
((1 "first"))
("field01" "field02")
TEST> 

Are you using the latest cl-sql ebuild? ie. 3.5.2?

It looks like the clsql_mysql.so is not being loaded. I'll check that out.
Comment 6 Matthew Kennedy (RETIRED) gentoo-dev 2005-12-31 11:49:48 UTC
I found a typo in the path to clsql_mysql.so which would prevent it from being
loaded.  I committed the fix to portage.  It should be available via rsync in
and hour or so (same ebuild version - 3.5.2)
Comment 7 DiG 2006-01-01 15:06:56 UTC
(In reply to comment #6)

That did it. It works on the x86 and x86_64.

Happy New Year!
Comment 8 Matthew Kennedy (RETIRED) gentoo-dev 2006-01-01 17:19:31 UTC
Thanks. You too.