well, i'm sorry to have offended half the cmucl mailinglist, but i must say it was provoced so please refrain yourself from teaching me etiquette.
anyway, the problem is solved, and indeed, the call to ld which load-foreign prevents its use on shared objects, and yes you can solve this by calling system::load-object-file. i do think this should be in the cmucl section on aliens though. if it was in the reference manual, i wouldn't be tempted to ask the stupid question in the first place. the xported symbols do not contain load-object-file. ----- Original Message ----- From: "Daniel Barlow" <[EMAIL PROTECTED]> To: "cmucl-help" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 10:22 PM Subject: Re: shared object files > --=-=-= > Content-Transfer-Encoding: quoted-printable > > cees-bart <[EMAIL PROTECTED]> writes: > > > if you read your own documentation properly, you would have noticed that= > =20 > > load-foreign loads object files, and not shared object files. there is a= > =20 > > difference here. > > If you bothered to follow the advice that people have provided you, > for free and without reward, you might well find that the difference > is immaterial.=20=20 > > cees-bart claims to have solved the problem himself already but > demonstrates a lack of normal etiquette by not offering the solution > to the list. So, for anyone else wondering, on x86 linux, because > it's what I happen to have here: > > * (ext:load-foreign "/usr/lib/libjpeg.so") > ;;; Running /usr/bin/ld... > ;;; Done. > NIL > * (sys:foreign-symbol-address "jpeg_abort") > #.(SYSTEM:INT-SAP #xB0000590) > > You can also use (system::load-object-file) on an ELF system (and > possibly some others) to avoid the step that runs ld. Note that this > is an internal symbol, though > > > =2Ddan > > =2D-=20 > > http://www.cliki.net/ - Link farm for free CL-on-Unix resources=20 > > --=-=-= > Content-Type: application/pgp-signature > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > > iD8DBQA/b1oJHDK5ZnWQiRMRAo8vAKC8jjpLjWMJZxAfLvaYqdYKl5+eAQCfWtlo > RuJa/kxSModTAlqRsqzhGkw= > =g3ab > -----END PGP SIGNATURE----- > --=-=-=-- >
