Paste number 163616: untitled

Index of paste annotations: 1 | 2 | 3

Paste number 163616: untitled
Pasted by: Posterdati
When:3 years, 10 months ago
Share:Tweet this! | http://paste.lisp.org/+3I8W
Channel:None
Paste contents:
Raw Source | XML | Display As
cc -m64 -g -O2 -fPIC  -Dfreebsd -I /usr/local/include/ -I/usr/local/lib/libffi-3.2.1/include -I/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/ -o /usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/libffi/libffi-unix /usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/libffi/libffi-unix.c/usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/libffi/libffi-unix.c: In function 'main':
/usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/libffi/libffi-unix.c:71: error: 'FFI_SYSV' undeclared (first use in this function)
/usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/libffi/libffi-unix.c:71: error: (Each undeclared identifier is reported only once
/usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/libffi/libffi-unix.c:71: error: for each function it appears in.)
/usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/libffi/libffi-unix.c:81: error: 'FFI_UNIX64' undeclared (first use in this function)

Annotations for this paste:

Annotation number 1: libffi-unix.lisp
Pasted by: Posterdati
When:3 years, 10 months ago
Share:Tweet this! | http://paste.lisp.org/+3I8W/1
Paste contents:
Raw Source | Display As
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
;;;
;;; libffi-unix.lisp -- libffi CFFI-Grovel definitions for unix systems.
;;;
;;; Copyright (C) 2009, 2010, 2011 Liam M. Healy  <lhealy@common-lisp.net>
;;;
;;; Permission is hereby granted, free of charge, to any person
;;; obtaining a copy of this software and associated documentation
;;; files (the "Software"), to deal in the Software without
;;; restriction, including without limitation the rights to use, copy,
;;; modify, merge, publish, distribute, sublicense, and/or sell copies
;;; of the Software, and to permit persons to whom the Software is
;;; furnished to do so, subject to the following conditions:
;;;
;;; The above copyright notice and this permission notice shall be
;;; included in all copies or substantial portions of the Software.
;;;
;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
;;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
;;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
;;; NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
;;; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
;;; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
;;; DEALINGS IN THE SOFTWARE.
;;;

(in-package #:cffi)

#+linux
(define "_GNU_SOURCE")

;; When installed through Mac Ports, libffi include files
;; will be found in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")

#+openbsd
(cc-flags "-I/usr/local/include")

(pkg-config-cflags "libffi" :optional t)

#+openbsd
(include "ffitarget.h")

#+darwin
(include "ffi/ffi.h")
#-darwin
(include "ffi.h")

(cenum status
 ((:OK "FFI_OK"))
 ((:bad-typedef "FFI_BAD_TYPEDEF"))
 ((:bad-abi "FFI_BAD_ABI")))

#+freebsd
(cenum abi
 ((:default-abi "FFI_DEFAULT_ABI")))
#-freebsd
(cenum abi
 ((:default-abi "FFI_DEFAULT_ABI"))
 ((:sysv "FFI_SYSV"))
 ((:unix64 "FFI_UNIX64")))

(ctype ffi-abi "ffi_abi")
(ctype :sizet "size_t")
(ctype ushort "unsigned short")
(ctype unsigned "unsigned")

(cstruct ffi-type "struct _ffi_type"
  (size    "size"     :type :sizet)
  (alignment "alignment"     :type ushort)
  (type    "type"     :type ushort)
  (elements   "elements"   :type :pointer))

#|
;;; Will not compile
;;; error: invalid application of `sizeof' to incomplete type `struct ffi_cif'
;;; When structs are defined with the name at the end, apparently they
;;; are intended to be "opaque types".
(cstruct ffi-cif "struct ffi_cif"
 (abi    "abi"     :type ffi-abi)
 (nargs "nargs"     :type unsigned)
 (arg-types    "arg_types"     :type :pointer)
 (return-type   "rtype"   :type :pointer)
 (bytes   "bytes"   :type :unsigned)
 (flags   "flags"   :type :unsigned))
|#

(constant (+type-void+ "FFI_TYPE_VOID"))
(constant (+type-int+ "FFI_TYPE_INT"))
(constant (+type-float+ "FFI_TYPE_FLOAT"))
(constant (+type-double+ "FFI_TYPE_DOUBLE"))
(constant (+type-longdouble+ "FFI_TYPE_LONGDOUBLE"))
(constant (+type-uint8+ "FFI_TYPE_UINT8"))
(constant (+type-sint8+ "FFI_TYPE_SINT8"))
(constant (+type-uint16+ "FFI_TYPE_UINT16"))
(constant (+type-sint16+ "FFI_TYPE_SINT16"))
(constant (+type-uint32+ "FFI_TYPE_UINT32"))
(constant (+type-sint32+ "FFI_TYPE_SINT32"))
(constant (+type-uint64+ "FFI_TYPE_UINT64"))
(constant (+type-sint64+ "FFI_TYPE_SINT64"))
(constant (+type-struct+ "FFI_TYPE_STRUCT"))
(constant (+type-pointer+ "FFI_TYPE_POINTER"))

Annotation number 2: libffi-unix.lisp
Pasted by: Posterdati
When:3 years, 10 months ago
Share:Tweet this! | http://paste.lisp.org/+3I8W/2
Paste contents:
Raw Source | Display As
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
;;;
;;; libffi-unix.lisp -- libffi CFFI-Grovel definitions for unix systems.
;;;
;;; Copyright (C) 2009, 2010, 2011 Liam M. Healy  <lhealy@common-lisp.net>
;;;
;;; Permission is hereby granted, free of charge, to any person
;;; obtaining a copy of this software and associated documentation
;;; files (the "Software"), to deal in the Software without
;;; restriction, including without limitation the rights to use, copy,
;;; modify, merge, publish, distribute, sublicense, and/or sell copies
;;; of the Software, and to permit persons to whom the Software is
;;; furnished to do so, subject to the following conditions:
;;;
;;; The above copyright notice and this permission notice shall be
;;; included in all copies or substantial portions of the Software.
;;;
;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
;;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
;;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
;;; NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
;;; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
;;; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
;;; DEALINGS IN THE SOFTWARE.
;;;

(in-package #:cffi)

#+linux
(define "_GNU_SOURCE")

;; When installed through Mac Ports, libffi include files
;; will be found in /opt/local/include.
#+darwin
(cc-flags "-I/opt/local/include/")

#+openbsd
(cc-flags "-I/usr/local/include")

(pkg-config-cflags "libffi" :optional t)

#+darwin
(include "ffi/ffi.h")
#-darwin
(include "ffi.h")

(cenum status
 ((:OK "FFI_OK"))
 ((:bad-typedef "FFI_BAD_TYPEDEF"))
 ((:bad-abi "FFI_BAD_ABI")))

#+freebsd
(cenum abi
 ((:default-abi "FFI_DEFAULT_ABI")))
#-freebsd
(cenum abi
 ((:default-abi "FFI_DEFAULT_ABI"))
 ((:sysv "FFI_SYSV"))
 ((:unix64 "FFI_UNIX64")))

(ctype ffi-abi "ffi_abi")
(ctype :sizet "size_t")
(ctype ushort "unsigned short")
(ctype unsigned "unsigned")

(cstruct ffi-type "struct _ffi_type"
  (size    "size"     :type :sizet)
  (alignment "alignment"     :type ushort)
  (type    "type"     :type ushort)
  (elements   "elements"   :type :pointer))

#|
;;; Will not compile
;;; error: invalid application of `sizeof' to incomplete type `struct ffi_cif'
;;; When structs are defined with the name at the end, apparently they
;;; are intended to be "opaque types".
(cstruct ffi-cif "struct ffi_cif"
 (abi    "abi"     :type ffi-abi)
 (nargs "nargs"     :type unsigned)
 (arg-types    "arg_types"     :type :pointer)
 (return-type   "rtype"   :type :pointer)
 (bytes   "bytes"   :type :unsigned)
 (flags   "flags"   :type :unsigned))
|#

(constant (+type-void+ "FFI_TYPE_VOID"))
(constant (+type-int+ "FFI_TYPE_INT"))
(constant (+type-float+ "FFI_TYPE_FLOAT"))
(constant (+type-double+ "FFI_TYPE_DOUBLE"))
(constant (+type-longdouble+ "FFI_TYPE_LONGDOUBLE"))
(constant (+type-uint8+ "FFI_TYPE_UINT8"))
(constant (+type-sint8+ "FFI_TYPE_SINT8"))
(constant (+type-uint16+ "FFI_TYPE_UINT16"))
(constant (+type-sint16+ "FFI_TYPE_SINT16"))
(constant (+type-uint32+ "FFI_TYPE_UINT32"))
(constant (+type-sint32+ "FFI_TYPE_SINT32"))
(constant (+type-uint64+ "FFI_TYPE_UINT64"))
(constant (+type-sint64+ "FFI_TYPE_SINT64"))
(constant (+type-struct+ "FFI_TYPE_STRUCT"))
(constant (+type-pointer+ "FFI_TYPE_POINTER"))

Annotation number 3: untitled
Pasted by: Posterdati
When:3 years, 10 months ago
Share:Tweet this! | http://paste.lisp.org/+3I8W/3
Paste contents:
Raw Source | Display As
CL-USER> (ql:quickload :gsll)
To load "gsll":
  Load 1 ASDF system:
    gsll
; Loading "gsll"
; cc -m64    -g -O2 -fPIC  -Dfreebsd -I /usr/local/include/ -I/usr/local/lib/libffi-3.2.1/include -I/usr/local/lib/libffi-3.2.1/include -I/usr/home/angel/quicklisp/dists/quicklisp/software/cffi_0.16.1/ -o /usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/static-vectors-1.6/src/ffi-types /usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/static-vectors-1.6/src/ffi-types.c
; /usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/static-vectors-1.6/src/ffi-types /usr/home/angel/.cache/common-lisp/ecl-16.1.0-039446df-bsd-sparc64/usr/home/angel/quicklisp/dists/quicklisp/software/static-vectors-1.6/src/ffi-types.grovel-tmp.lisp
[package antik]...................................
[package grid]....................................
[package affi].............................
;;; Error:
;;;   in file format-output.lisp, position 2162
;;;   at (DEFINE-PARAMETER NF ...)
;;;   * The macro form (DEFINE-PARAMETER NF :TIME :VALUE :TUD :TYPE (OR NULL (MEMBER :TUD :ALTERNATE)) :DOCUMENTATION "How to format time intervals:
;;;    :tud = ISO8601 time-unit designator (like P10H7M23.726979085813582S)
;;;    :alternative = ISO8601 alternate (like P10:07:23.726979085813582)
;;;    nil = with the unit for time given by :system-of-units
;;;            (like #_36443.72697908581_S.") was not expanded successfully.
;;; Error detected:
;;; Cannot export symbol COMMON-LISP:TIME from locked package #<"COMMON-LISP" package>.; Evaluation aborted on #<a UIOP/LISP-BUILD:COMPILE-FILE-ERROR>.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.