[plt-scheme] v3.99.0.2, dvh mysqlclient.ss no build

From: Geoff Knauth (geoff at knauth.org)
Date: Tue Nov 13 13:59:20 EST 2007

I have some MySQL connectivity code from David Van Horn that has been  
working great.  After my SVN update this morning, the mysqlclient.ss  
extension no longer builds.

mzc -v --save-temps --debug ++ccf --save-temps --auto-dir --extension + 
+ldf /opt/local/lib/mysql5/mysql/libmysqlclient.dylib ++cppf -I/opt/ 
local/include/mysql5/mysql ++ccf -I/opt/local/include/mysql5/mysql  
mzc v3.99.0.2 [3m], Copyright (c) 2004-2007 PLT Scheme Inc.
Warning: compilation to C is usually less effective
for performance than relying on the bytecode JIT compiler.
  Reading...  expanding...
       [cpu: 140ms, real: 185ms, gc: 46ms]
  extracting core expressions
c-syntax.ss:123:10: #%variable-reference: identifier cannot refer to  
an imported binding at: values in: (#%variable-reference values)

  === context ===
/usr/local/plt/collects/compiler/private/driver.ss:697:25: core-thunk
/usr/local/plt/collects/compiler/private/driver.ss:507:8: verbose-time
/usr/local/plt/collects/compiler/private/driver.ss:563:8: s:compile

Here is a snippet from David's c-syntax.ss:

(module c-syntax mzscheme
   (require (lib "cffi.ss" "compiler")   ;; c-lambda, c-declare syntax.
   ; ...
   (define-syntax (c-enum stx)
     (syntax-case stx ()
       ((_ enum-name)
        (identifier? (syntax enum-name))
        (with-syntax ([str (format "___result = ~a;"
                                    (syntax-e (syntax enum-name))))])
           ((c-lambda () int str)))))))
   ; ...
   (define-syntax define-c-enums
     (syntax-rules ()
       ((_ i ...)
        (define-values (i ...)
          (values (c-enum i) ...)))))     ;; <== this is line 123
   ; ...

How do I fix this, or how should I approach fixing this?

Geoffrey S. Knauth | http://knauth.org/gsk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20071113/b444f271/attachment.html>

Posted on the users mailing list.