[gambit-list] Patching gambit to fix out of source build

Marijn Schouten (hkBst) hkBst at gentoo.org
Sun Jun 29 10:01:46 EDT 2008

Hash: SHA1

Marijn Schouten (hkBst) wrote:
> Nathan Thern wrote:
>> OK, here's my first go at it. In the source directory I applied the
>> sed script as follows:
>> $ find -name makefile.in | xargs sed --in-place -f ../fix_gambc.sed
>> The rest of the changes were all hand edits and are encapsulated in
>> gambc-v4.2.8_post_sed.patch.
>> gambc-v4.2.8.patch applies all the changes in one smash.
>> The patches work for the 4.2.8 source release and the latest repo
>> tree. I haven't had time to test compiling the patched source on
>> anything other than cygwin yet. This is my first time submitting
>> changes to a project source code - let me know if I've done something
>> stupid, or committed a faux pas.
>> regards,
>> NT
> Hi Nathan,
> I tested your patch but it doesn't solve the following problem:
> $ gsi
> gsi: error while loading shared libraries:
> /var/tmp/portage/dev-scheme/gambit-4.2.8/image//usr/lib/libgambcgsi.so: cannot
> open shared object file: No such file or directory
> $ equery f gambit | grep libgambcgsi.so
> /usr/lib/libgambcgsi.so
> The /var/tmp/portage/dev-scheme/gambit-4.2.8/image/ is DESTDIR and somehow it is
> encoded in the binaries, but I don't know how exactly this happens.
> I used the following:
> ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
> --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
> --localstatedir=/var/lib --enable-shared --disable-single-host
> --disable-gcc-opts --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
> note the --enable-shared.
> Marijn

When using --disable-shared gambit tries to install the non-directory file
DESTDIR/usr/lib64, so that is unusable too.


- --
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Gambit-list mailing list