Article View: comp.lang.lisp
Article #111problems (worked-around) while installing cl-gd
From: Anton Antimo
Date: Wed, 02 Dec 2026 03:23
Date: Wed, 02 Dec 2026 03:23
44 lines
2682 bytes
2682 bytes
I have been under the impression that quicklisp does everything I need
to use a package. Today I decided to try cl-gd. I quicklisped it
without any problems and a sample code produced this backtrace:
--8<-------------------------------------------------------->8---
%sbcl --script sample.lisp
To load "cl-gd":
Load 1 ASDF system:
cl-gd
; Loading "cl-gd"
To load "uiop":
Load 1 ASDF system:
uiop
; Loading "uiop"
Unhandled SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR in thread #<SB-THREAD:THREAD tid=7025 "main thread" RUNNING {1200038003}>:
The alien function "gdImageCreateFromJpegFile" is undefined.
--8<-------------------------------------------------------->8---
It turns out what I needed to do was to compile
cl-gd-clue.so
whose source is in
~/quicklisp/dists/quicklisp/software/cl-gd-20201220-git.
It is cl-gd-clue.so that has the procedure gdImageCreateFromJpegFile,
not libgd. So my code wouldn't work without compiling this shared
object. But I'd say that cl-gd being ASDF-loaded implies that this is a
bug: the package wasn't ready to be used yet, how come it loaded just
fine?
But, having said that, I believe an automatic build by quicklisp
probably wouldn't work because I was still missing header files to
compile that glue-code shared object. I installed GNU Void's gd-devel
and was able to compile the shared object okay. (I went through similar
in FreeBSD.)
Wouldn't the ASDF system be more interestingly built if the code were to
check whether the shared object is already operational and blow a
message if not?
Technical Details
Message-ID:
<87jyls5pt7.fsf@safunu.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Anton Antimo <anton@safunu.org> Newsgroups: comp.lang.lisp Subject: problems (worked-around) while installing cl-gd Date: Wed, 02 Dec 2026 00:23:00 -0300 Organization: A noiseless patient Spider Lines: 44 Message-ID: <87jyls5pt7.fsf@safunu.org> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 02 Dec 2026 13:12:04 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3208912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lM3wVr9C0Akzo+aOSVvEzG/ylOfmgpn0="; posting-host="2409abb53a025e6274fa0ed15dded153" Cancel-Lock: sha1:2Fd6WZW6kSWL+3nPcSVS8tnTUoE= sha1:/03lwuEisHGeM9QhUYZ4z2EFu58= sha256:iIdCArpBU2xk0fkjpd4g3PRJJtjOwovlDb9cr6lvYW0= sha1:DoDwx/RjmObhyotKUXHy2KRovp0= sha256:cEZwrAW9eKdosikRWdvCxrOTH0r4rbi7eQw86ZvqME4=