LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Where can I get the source for an old version of libffi - libffi.so.3? for Haskell (https://www.linuxquestions.org/questions/linux-software-2/where-can-i-get-the-source-for-an-old-version-of-libffi-libffi-so-3-for-haskell-4175434349/)

mimosa 10-27-2012 08:25 AM

Where can I get the source for an old version of libffi - libffi.so.3? for Haskell
 
I'm making a package of ghc (Glasgow Haskell compiler) for Salix (a Slackware-based distro). It needs an old version of libgmp, which I found and built; but it seems it also needs an old libffi. The current file is libffi.so.6 (salix/Slakware 14.0).

This could probably be solved with a symlink, but I can't put an ugly hack like that in a package.

Searching for the source turned up nothing.

DavidMcCann 10-27-2012 10:55 AM

The version in Slackware 14 is actually 3.0.11. Version 3 has been around for some time, but there are sources for older versions if you search, such as this link for version 1.2:
http://linux.softpedia.com/progDownl...oad-16089.html

But what version of ghc are you using? The latest (7.6.1) only came out last month.

mimosa 10-27-2012 06:27 PM

Thanks David. I don't understand the relation between the library version numbers and what you see in /usr/lib. For Slackware/Salix 14.0, I think it's libffi.so.6. When I built the library from that link, it produced '.1':


Code:

vanilla[libffi-1.20]$ find ./ -name libffi.so.*
./src/.libs/libffi.so.1.1.3
./src/.libs/libffi.so.1

Regarding the ghc version, that one [EDIT: 7.4.2, as at slackbuilds.org] works with the latest version of Haskell platform (in fact the *previous* version of ghc is officially recommended, but that one works). And it works with xmonad.

However, maybe a more recent ghc would avoid problems with ancient libraries. I think I'll leave that for the next release cycle, though.

I'll keep searching (the very fact that you found this file inspires me to persist), but if anyone happens to have specific info, I'd be delighted.

mimosa 10-28-2012 08:04 AM

I found what looks like a comprehensive archive of old versions here:
http://ltsp.mirrors.tds.net/pub/sourceware.org/libffi/

but when I built a selection, I found the numbers seem to jump straight from libffi.so.1 to libffi.so.5. I've also asked on the libffi mailing list (yes, it actually has a mailing list).

I'll go back to the build environment and check I haven't made a mistake here.

EDIT indeed I did: what's wanted is libffi.so.5. I got muddled because of a smilar problem with another library.

This is therefore SOLVED; I can't see how to edit the original subject to reflect this, but will investigate.


All times are GMT -5. The time now is 10:52 AM.