Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 209066

Summary: mit-scheme is missing dependencies (like mhash and crypto) on 64-bit systems
Product: Gentoo Linux Reporter: Reid Kleckner <rnk>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Reid Kleckner 2008-02-05 23:45:52 UTC
Recently, there was a bug posting about mit-scheme depending on mhash, so that dependency was added.  However, mit-scheme is a 32 bit binary package, so adding that dep doesn't solve the problem for 64-bit users.

Some relevant info:
[reid@muikyl ~]$ !ldd
ldd /opt/mit-scheme/bin/scheme 
        linux-gate.so.1 =>  (0xffffe000)
        libgdbm.so.3 => /usr/lib32/libgdbm.so.3 (0xf7f3d000)
        libmhash.so.2 => not found
        libcrypto.so.0.9.7 => not found
        libncurses.so.5 => /lib32/libncurses.so.5 (0xf7ef8000)
        libm.so.6 => /lib32/libm.so.6 (0xf7ed2000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0xf7de6000)
        libc.so.6 => /lib32/libc.so.6 (0xf7cb6000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7cb2000)
        /lib/ld-linux.so.2 (0xf7f72000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7cae000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf7ca7000)
[reid@muikyl ~]$ locate libmhash
/usr/lib64/libmhash.a
/usr/lib64/libmhash.so.2.0.1
/usr/lib64/libmhash.so.2
/usr/lib64/libmhash.la
/usr/lib64/libmhash.so
[reid@muikyl ~]$ locate libcrypto
/opt/googleearth/libcrypto.so.0.9.8
/opt/Acrobat7/Reader/intellinux/lib/libcrypto.so
/opt/Acrobat7/Reader/intellinux/lib/libcrypto.so.0.9.6
/opt/Acrobat7/Reader/intellinux/lib/libcrypto.so.0
/usr/lib32/libcrypto.so
/usr/lib32/libcrypto.so.0.9.8
/usr/lib64/nss/libcryptohi.a
/usr/lib64/libcrypto.so
/usr/lib64/pkgconfig/libcrypto.pc
/usr/lib64/libcrypto.so.0.9.7
/usr/lib64/libcrypto.so.0.9.8
/usr/lib64/libcrypto.a

As we can see, the required libraries libcrypto.0.9.7 and libmhash.so.0.2 are missing from /usr/lib32/, so they are listed as "not found" in ldd.  I haven't tried this, but a probable workaround for the libcrypto problem is to create a link from libcrypto.so.0.9.7 to libcrypto.0.9.8 .

Other relevant, closed bugs:
Addition of mhash dependency: http://bugs.gentoo.org/show_bug.cgi?id=202160
Promotion of mit-scheme to ~amd64: http://bugs.gentoo.org/show_bug.cgi?id=82577

Reproducible: Always

Steps to Reproduce:
1. Install mit-scheme on a 64-bit system.
2. Run /opt/mit-scheme/bin/scheme, note the file not found error.
3. Install mhash, repeat the above.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-05 23:49:02 UTC

*** This bug has been marked as a duplicate of bug 202160 ***
Comment 2 Reid Kleckner 2008-02-06 01:44:44 UTC
I've worked around this problem by compiling the portable C version of MIT scheme from scratch.  That is the Gentoo way, so why isn't this package built like that?  I just used the instructions as given on the web site and it worked.  I get the impression from the web site that this build is not as optimized as it could be, but I imagine if you tweaked the build process you could make it happen.

Installation pages:
http://www.gnu.org/software/mit-scheme/
http://www.gnu.org/software/mit-scheme/liarc-build.html
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-06 10:47:25 UTC
No idea, also the amd64 keyword looks completely bogus. Anyway, move this to the other bug please.