chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Fix dynamic imports of libraries which are mis


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Fix dynamic imports of libraries which are missing in statically compiled programs
Date: Fri, 27 Apr 2018 21:16:10 +0200
User-agent: NeoMutt/20170113 (1.7.2)

Hi all,

While looking into #1437, I noticed another bug:

$ cat test.scm
(print (eval '(begin (import srfi-1) (assoc 'a '((a . 1)) eq?))))
$ csc -static test.scm
$ ./test
Error: during expansion of (import ...) - call of non-procedure: #f

After applying this patch:

$ csc -static test.scm
$ ./test 
Error: (load) during expansion of (import ...) - unable to load compiled module 
- cannot load compiled code dynamically - this is a statically linked 
executable: "/home/sjamaan/chickens/test-5/lib/chicken/9/srfi-1.import.so"

Cheers,
Peter

Attachment: 0001-Fix-import-library-hook-in-eval-modules-so-it-won-t-.patch
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]