[Openmcl-devel] I rebuilt my cdb files...now what?

Ron Garret ron at awun.net
Tue Nov 6 16:43:30 PST 2007


On Nov 6, 2007, at 4:28 PM, R. Matthew Emerson wrote:

>
> On Nov 6, 2007, at 7:04 PM, Ron Garret wrote:
>
>> I then restarted CCL but none of the mysql definitions worked, e.g.:
>>
>> ? #$MYSQL_OPT_CONNECT_TIMEOUT
>>
>>> Error: Constant not found: X86-DARWIN64::MYSQL_OPT_CONNECT_TIMEOUT
>>
>> MYSQL_OPT_CONNECT_TIMEOUT is an enum element.  But nothing works.
>> Constants defined with #DEFINE aren't there.  Functions aren't found
>> using #_ (though I can call them manually using the FFI so I know
>> they're loaded properly).
>>
>> What am I missing?
>
> Maybe (use-interface-dir :mysql)?
>

Yeah, you'd think.

Welcome to Clozure Common Lisp Version 1.1-r7598 (DarwinX8664)!
? (use-interface-dir :mysql)
#<INTERFACE-DIR :MYSQL #P"mysql/" #x300040D7CBED>
? #$MYSQL_OPT_CONNECT_TIMEOUT
 > Error: Constant not found: X86-DARWIN64::MYSQL_OPT_CONNECT_TIMEOUT
 > While executing: CCL::LOAD-OS-CONSTANT, in process listener(1).

? #$MYSQL_NO_DATA
 > Error: Constant not found: X86-DARWIN64::MYSQL_NO_DATA
 > While executing: CCL::LOAD-OS-CONSTANT, in process listener(1).

? (open-shared-library "/usr/local/mysql/lib/mysql/ 
libmysqlclient.dylib")
#<SHLIB /usr/local/mysql/lib/mysql/libmysqlclient.dylib #x300040D71A5D>
? (#_mysql_init)
 > Error: Foreign function not found: X86-DARWIN64::|mysql_init|
 > While executing: CCL::LOAD-EXTERNAL-FUNCTION, in process listener(1).

And yet...

? (external "mysql_init")
#<EXTERNAL-ENTRY-POINT "mysql_init" (#x00000000006850A8)   
#x300040D85FBD>
?

rg




More information about the Openmcl-devel mailing list