🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.lisp
Article #112

Re: problems (worked-around) while installing cl-gd

#112
From: Madhu
Date: Wed, 02 Dec 2026 14:06
46 lines
2829 bytes
* Anton Antimo <87jyls5pt7.fsf@safunu.org> :
Wrote on Wed, 02 Dec 2026 00:23:00 -0300:

> It turns out what I needed to do was to compile
>
>   cl-gd-clue.so

The README and doc/index.html both say this is needed.

> 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?

 see below

> 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?

The code is written "uffi" which was before "cffi" was `becamed' the
defacto-standard, and your lisp uses actually uses cffi via the
cffi-uffi-compat layer.

The runtime error should occur when loading init.lisp which calls
(load-gd-glue) in the toplevel.  This calls uffi:find-foreign-library
and passes the result to uffi:load-foreign-library.

If the result is nil load-gd-glue could check signal an error to give
you what you want, or print a warning.

However it just calls uffi:load-foreign-library with nil and the cffi
implementation doesn't throw a runtime error.  I'd say the defect is in
cffi-uffi-compat:load-foreign-library where this should be signalled.




Technical Details
Message-ID: <m38q277p5p.fsf@pison.robolove.meer.net>
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
References: <87jyls5pt7.fsf@safunu.org>

Show 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: Madhu <enometh@meer.net>
Newsgroups: comp.lang.lisp
Subject: Re: problems (worked-around) while installing cl-gd
Date: Wed, 02 Dec 2026 19:36:26 +0530
Organization: Motzarella
Lines: 46
Message-ID: <m38q277p5p.fsf@pison.robolove.meer.net>
References: <87jyls5pt7.fsf@safunu.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 02 Dec 2026 14:06:28 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3249903"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18RzEc12AEQFf/I67lzN4bNn/cgww6laYM="; posting-host="554cbf439adf9d46cba791528fff12e0"
Cancel-Lock: sha1:l4yZwLti2agYqYpu+XxllB4Dxj0=
	sha1:0XFFBYMtFgapGKN4ydeqSgFu9Uk= sha256:ffUoBv9N7mIwGzos+oZv6qKMccvZ8vG9hZf5PukQr28=
	sha1:Pp5Ws9+zxAFxqdvIR+rFRnnmSNI= sha256:gC3JmK2fKbAOe1I6Imp7bmCOkpWs1D8zphaPja/6A08=