Re: Problems compiling UncommonSQL!
Craig Brozefsky <[email protected]> 31 Oct 2002 07:22:25 -0600
| Newsgroups | gmane.lisp.uncommon-sql |
|---|---|
| Message-ID | <[email protected]> |
Sukumar Bhattacharya-6516928 <[email protected]> writes: [I'm CCing the USQL user list.] > Thanks for your prompt help. I was able to compile UncommonSQL but > when I tried to test it by loading the file > "doc/usql-tutorial.lisp", it gave me errors. Please see the > transcript that I have cut and pasted at the end of the mail. Looks > like the error has something to do with "WITH-LOCK", which leads me > to point out that while compiling the file "postgresql-sql.lisp", I > found the following error, although compilation went ahead and > completed. Ah! I see from the transcript that you are on CMUCL/Sparc, which is not a supported platform of USQL. However, I think it would not take much effort to make it operational, provided that you are at least marginally familiar with FFI, or unafraid of learning about it. The problem stems from the file usql:dbms;postgresql;glue-cmucl.lisp file which does not properly define the with-lock macro for CMUCL on sparc, which does not have the underlying mp::with-lock-held macro that it is trying to expand into, hence the failure. You could change the conditional compiles such that it defines with-lock as it would for a non cmucl system when it is on cmucl/sparc. Then there may be a need to deal with any FFI portability issues across the hardware platforms, but I really don't know if there are going to be any. Unfortunately, I do not have a Sparc/Solaris box at this time, so I cannot directly perform the port. In the future, you may want to use the usql mailing list, see http://lists.onshored.com/mailman/listinfo/usql-list -- Craig Brozefsky <[email protected]> Senior Programmer onShore, Inc. http://www.onshore.com (312) 850 5200