Opened 11 years ago

Closed 10 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:

Description

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)
      :pointer
  (signum :int) 
  (action :pointer)) 

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

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by vii

comment:1 Changed 11 years ago by rme

  • Milestone 1.2 deleted

Milestone 1.2 deleted

comment:2 Changed 10 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.