[plt-scheme] 4.2.1 not running sqlite.plt?

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Thu Aug 20 21:02:55 EDT 2009

Howdy

The old version is incompatible with new plt as you observed.

The new version uses the v2 API of sqlite. It appears that you have an  
old version of sqlite.

Jay

Sent from my iPhone

On Aug 19, 2009, at 5:59 PM, praimon <praimon at gmail.com> wrote:

> hello,
> I'm having problems using 4.2.1 to run jay mccarthy's sqlite module.
> I'm using winxp.
>
> Simply running:
> #lang scheme
> (require (planet "sqlite.ss" ("jaymccarthy" "sqlite.plt" 3 1)))
> ;; (3 1) through (3 8) lead to the same result:
>
> . ..\..\Documents and Settings\<username>\Application Data\PLT
> Scheme\planet\300\4.2.1\cache\jaymccarthy\sqlite.plt\3\8\sqlite.ss: 
> 12:3:
> expand: unbound identifier in module in: ptr-ref
>
> If I run:
> #lang scheme
> (require (planet "sqlite.ss" ("jaymccarthy" "sqlite.plt" 4 5)))
> ;; (4 0) through (4 5) lead to the same result:
>
> ffi-obj: couldn't get "sqlite3_prepare_v2" from "libsqlite3.dll"
> (The specified procedure could not be found.; errno=127)
> reference to an identifier before its definition:
> provide/contract-contract-id-sqlite3_open.5
>
> If I uninstall DrScheme, wipe out the Application Data's PLT folder,
> reinstall and again run
> (require (planet "sqlite.ss" ("jaymccarthy" "sqlite.plt" 3 1)))
> I get the following long readout:
>
> require: unknown module: 'program
> setup-plt: error: during Building docs for C:\Documents and
> Settings\<username>\Application Data\PLT
> Scheme\planet\300\4.2.1\cache\cce\scheme.plt\4\1\scribblings/ 
> main.scrbl
> setup-plt:   require: unknown module: 'program
> WARNING: collected information for key multiple times: (mod-path
> "(planet schematics/sake)"); values: #(#<path:C:\Documents and
> Settings\<username>\Application Data\PLT
> Scheme\planet\300\4.2.1\cache\schematics\sake.plt\1\0\doc\sake 
> \Build_files.html>
> ("Build files") #t (mod-path "(planet schematics/sake)"))
> #(#<path:C:\Documents and Settings\<username>\Application Data\PLT
> Scheme\planet\300\4.2.1\cache\schematics\sake.plt\1\0\doc\sake 
> \The_Sake_API.html>
> ("The Sake API") #t (mod-path "(planet schematics/sake)"))
> WARNING: collected information for key multiple times: (index-entry
> (mod-path "(planet schematics/sake)")); values: (("(planet
> schematics/sake)") (#(struct:sized-element ... ...))
> #<module-path-index-desc>) (("(planet schematics/sake)")
> (#(struct:sized-element ... ...)) #<module-path-index-desc>)
> WARNING: collected information for key multiple times: (mod-path
> "(planet schematics/sake)"); values: #(#<path:C:\Documents and
> Settings\<username>\Application Data\PLT
> Scheme\planet\300\4.2.1\cache\schematics\sake.plt\1\0\doc\sake 
> \Build_files.html>
> ("Build files") #t (mod-path "(planet schematics/sake)"))
> #(#<path:C:\Documents and Settings\<username>\Application Data\PLT
> Scheme\planet\300\4.2.1\cache\schematics\sake.plt\1\0\doc\sake 
> \The_Sake_API.html>
> ("The Sake API") #t (mod-path "(planet schematics/sake)"))
> WARNING: collected information for key multiple times: (index-entry
> (mod-path "(planet schematics/sake)")); values: (("(planet
> schematics/sake)") (#(struct:sized-element ... ...))
> #<module-path-index-desc>) (("(planet schematics/sake)")
> (#(struct:sized-element ... ...)) #<module-path-index-desc>)
> compile: unbound identifier in module
> setup-plt: error: during making for
> <planet>/jaymccarthy/sqlite.plt/3/8 (SQLite 3 FFI)
> setup-plt:   compile: unbound identifier in module
>
> (Note the references to version 3.8 of sqlite.plt)
>
> If, on a completely clean system, I run
> (require (planet "sqlite.ss" ("jaymccarthy" "sqlite.plt" 4 5)))
> I get exactly the same result as above, except that the last 3 lines
> are replaced by:
>
> ffi-lib: couldn't open "libsqlite3.dll" (The specified module could
> not be found.; errno=126)
> reference to an identifier before its definition:
> provide/contract-contract-id-sqlite3_open.5
>
> My sqlite programs work normally if I go back to version 4.1.5.
> Does anyone have any idea what's happening?
> regards,
> praimon
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.