Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jsf

#1
newLISP and the O.S. / sqlite3 and OpenBSD
April 23, 2005, 11:25:20 PM
I am trying to get SQLite working on OpenBSD 3.6 or 3.7-CURRENT.



I have compiled sqlite 3.2.1 with the --enable-shared option (using configure) which results in a file /usr/local/lib/libsqlite.so.8.6



Whenever I load the sqlite.lsp program, I get the following error message:



Can't open file
problem loading library in function import : "/usr/local/lib/libsqlite.so.8.6"


When I try from the newlisp commandline to load the .so file with sqlite3_open as a function, I get the following:



(load "/usr/local/lib/libsqlite.so.8.6" "sqlite3_open" "cdecl")
nil


At this point, I haven't tried extremely hard to figure out what is happening and thought I'd post to the list to see if anyone else has seen this behavior. In theory, this should work just fine, but it doesn't.



I've considering trying the SQLite 2.x series, but would prefer to run 3.1 or higher for some functionality I would like to use.



Any ideas from someone who has made this work?





As a side-note, the sql function/define fails on OS X when attempting to perform any sql command:



> (sql3 "select * from mytable;")

invalid function : (sql3 "select * from mytable;")


Perhaps I'm just tired, but this should work based on the documentation (in the sqlite3.lsp file), which states:


Quote
;; (sql3 "select * from mytable;")  ; makes a sql query, returns result
#2
I have no idea why many of us have become so used to an application exiting when we hit Ctrl-D, but we have. Ctrl-D is baked into our brains and has been for a very long time.



Typing (exit) isn't that hard, but I find myself hitting Ctrl-D every single time and then realize I need to type (exit).



Thanks for this feature. It's probably silly, but I appreciate it very much.


Quote from: "Lutz"


• Ctrl-D now exits the newLISP command line (Linux/UNIX only)



Lutz