From redline6561 at gmail.com Tue Nov 3 16:04:56 2009 From: redline6561 at gmail.com (Brit Butler) Date: Tue, 3 Nov 2009 16:04:56 -0500 Subject: [pg-cvs] ECL Build Problems Message-ID: <975972700911031304n5e741632t21521185fd857334@mail.gmail.com> Dear osicat-devs, I am presently unable to (require 'osicat) on ECL Head. There is a complete log of the (require ...) output at http://redlinernotes.com/docs/osicat.txt. Here's the short version: There is some sort of problem with posix/basic-unixint.c. My understanding is that ECL invokes GCC to try and produce a .o file and that compilation seems to fail. I get no output explaining why. Later ECL seems to try to link against basic-unixint.o which was never created and it complains of a truncated file. I may be misreading the output. I would love to be able to use Osicat with ECL. Is there some way I can provide more information or otherwise help rectify this? Regards, Brit Butler -------------- next part -------------- An HTML attachment was scrubbed... URL: http://common-lisp.net/pipermail/osicat-devel/attachments/20091103/12edb482/attachment.html From madnificent at gmail.com Wed Nov 11 06:56:49 2009 From: madnificent at gmail.com (madnificent at gmail.com) Date: Wed, 11 Nov 2009 12:56:49 +0100 (CET) Subject: [pg-cvs] issue: mmap returns a pointer Message-ID: Hello osicat-devel Whilst getting help from John Fremlin for manardb, an issue with osicat arose. Apparently osicat-posix assumes that the return value from mmap is an int when it is a pointer. He noted that mremap is broken too. a backtrace containing the result: CL-USER> (manardb:use-mmap-dir "/tmp/manardb/" :if-does-not-exist :create) The value -134270976 is not of type (UNSIGNED-BYTE 64). [Condition of type TYPE-ERROR] Restarts: 0: [ABORT] Return to SLIME's top level. 1: [TERMINATE-THREAD] Terminate this thread (#) Backtrace: 0: (OSICAT-POSIX:MMAP #.(SB-SYS:INT-SAP #X00000000) 4096 3 1 4 0) 1: (MANARDB::MTAGMAP-OPEN #)[:EXTERNAL] 2: (MANARDB:OPEN-ALL-MMAPS) John Fremlin made me fix the bug by evaluating the following code in osicat-posix: (DEFCFUN ("mmap_cffi_wrap" MMAP :CONVENTION :CDECL :LIBRARY :DEFAULT) (ERRNO-WRAPPER :UNSIGNED-LONG :ERROR-PREDICATE (LAMBDA (P) (= P MAP-FAILED)) :RETURN-FILTER MAKE-POINTER) (START :POINTER) (LENGTH SIZE) (PROT :INT) (FLAGS :INT) (FD FILE-DESCRIPTOR-DESIGNATOR) (OFFSET OFF)) cheers, the madnificent -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature Url : http://common-lisp.net/pipermail/osicat-devel/attachments/20091111/2663be67/attachment.pgp