Opened 13 years ago

Closed 12 years ago

#314 closed defect (fixed)

Can't dump #<A Foreign Pointer #x1> - unknown type

Reported by: vii Owned by: gb
Priority: minor Milestone:
Component: Foreign Function Interface Version: 1.2
Keywords: Cc:


With 1.2-r9226-RC1 (LinuxX8664), cannot compile-file with a pointer defconstant. A little annoying as it works on SBCL, clisp, etc.

(load "signal.lisp")
(compile-file "signal.lisp")

Error: Can't dump #<A Foreign Pointer #x1> - unknown type While executing: CCL::FASL-UNKNOWN, in process listener(1).

Here is signal.liop

(asdf:operate 'asdf:load-op :cffi)
(defconstant +SIG_IGN+ (cffi:make-pointer 1))
(defconstant +SIGPIPE+ 13)

(cffi:defcfun ("signal" syscall-signal)
  (signum :int) 
  (action :pointer)) 

(defun disable-sigpipe ()
  (syscall-signal +SIGPIPE+ +SIG_IGN+))

Attachments (1)

signal.lisp (317 bytes) - added by vii 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by vii

comment:1 Changed 13 years ago by rme

  • Milestone 1.2 deleted

Milestone 1.2 deleted

comment:2 Changed 12 years ago by rme

  • Resolution set to fixed
  • Status changed from new to closed

This should work now (ccl 1.4, current trunk).

(Fixed in r12922, probably)

Note: See TracTickets for help on using tickets.