LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-06-2011, 05:18 PM   #1
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 126

Rep: Reputation: 20
Guile upgrade dependency problems


I'm excited to try the new 2.0.1 version of Guile.

I'm running Slackware64 13.37 and the latest version of Guile distributed with it is 1.8.8.

I see that this new version, as part of it's new capabilities, has a few new requirements.

I have built and installed libffi, libunistring and libgc according to their install instructions, but Guile's configure script can't find them.

I have tried manually creating libffi.pc libunistring.pc and libgc.pc files, which has allowed configure to get past the first two, but I still can't determine the correct name for libgc.

Further, I am now not confident that Guile will find these where it expects to find them in the end.

I would like to ask for some clarification of the install process for this new version of Guile, but I'm not sure whom to ask.
 
Old 06-06-2011, 09:49 PM   #2
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by leeeoooooo View Post
I have built and installed libffi, libunistring and libgc according to their install instructions, but Guile's configure script can't find them.
Their corresponding .pc files should be found in /usr/lib/pkgconfig . Nonetheless, I just completed an installation yesterday and will describe what I did.

Install libffi using the 12.2 slackbuild from slackbuilds.org .

Install gc (Guile calls this bdw-gc) using the 13.37 slackbuild from slackbuilds.org .

For libunistring, I did the following:

Code:
wget http://ftp.wayne.edu/pub/gnu/libunistring/libunistring-0.9.3.tar.gz
tar zxf libunistring-0.9.3.tar.gz
cd libunistring-0.9.3
./configure --prefix=/usr
make
mkdir /tmp/package-unistring
DESTDIR=/tmp/package-unistring make install

Now log in as root and perform the following:

Code:
cd /tmp/package-unistring
makepkg -l y -c y ../libunistring-0.9.3-i486-1_sg.tgz
cd ..
installpkg libunistring-0.9.3-i486-1_sg.tgz
For Guile, I originally edited Mr Volkerding's slackbuild but encountered a bug in the Guile code which precluded using the 2.0.1 Guile tarball. After many hours in IRC with the (wonderfully patient and helpful) Guile developers, the problem was resolved and corrected in the stable-2.0 GIT branch. The problem is only exhibited on certain 32-bit processors so you may wish to try updating the official slackbuild and use the 2.0.1 tarball (I don't think a newer tarball has been released yet); if the problem exists for your processor then your compile will fail.

I won't describe how I edited the slackbuild (because I never successfully compiled the guile package that way), however, here is what I did to build a package from GIT.

Code:
git clone git://git.sv.gnu.org/guile.git
cd guile
git checkout stable-2.0
./autogen.sh --prefix=/usr
./configure --prefix=/usr
make
mkdir /tmp/package-guile
DESTDIR=/tmp/package-guile make install
Now log in as root and perform the following:

Code:
cd /tmp/package-guile
makepkg -l y -c y ../guile-2.0.1-1-i486-1_sg.tgz
cd ..
upgradepkg guile-2.0.1-1-i486-1_sg.tgz
You may need to adjust these steps for your architecture, but hopefully these instructions are of some use -- despite the fact that the result is not a "proper" Slackware package.

Last edited by saulgoode; 06-07-2011 at 07:05 AM.
 
1 members found this post helpful.
Old 06-07-2011, 06:32 AM   #3
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by saulgoode View Post
Install libffi using the 12.2 slackbuild from slackbuilds.org .
Just wanted to note that libffi is part of gcc-java package. I think that's the reason why it's not in SBo anymore.
 
Old 06-07-2011, 06:55 AM   #4
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by audriusk View Post
Just wanted to note that libffi is part of gcc-java package. I think that's the reason why it's not in SBo anymore.
Thanks for that info. But then shouldn't the gcc-java package include a 'usr/lib/pkgconfig/libffi.pc' file?
 
Old 06-07-2011, 07:29 AM   #5
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by saulgoode View Post
Thanks for that info. But then shouldn't the gcc-java package include a 'usr/lib/pkgconfig/libffi.pc' file?
If libffi can't be found by Guile otherwise, I guess it should. Might be a good idea to send Pat an email about this subject, since it concerns -current which will get new Guile version sooner or later.
 
Old 06-08-2011, 05:42 PM   #6
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 126

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by saulgoode View Post
Install libffi using the 12.2 slackbuild from slackbuilds.org .
Thanks!

I looked for SlackBuilds, I didn't think to look for older ones.

I prefer working with packages, but I didn't realize that was an option here.

I've tried using src2pkg in the past but haven't had it work consistently (it doesn't help that for its initial test and example it tries to untar and compile a text file).

I just assumed I'd have to go directly to 'configure, make, make install', which was fine until I ran into the pkg-config complications.

I'll try again (but differently this time) this weekend.
 
Old 06-08-2011, 06:08 PM   #7
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 126

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by audriusk View Post
Just wanted to note that libffi is part of gcc-java package. I think that's the reason why it's not in SBo anymore.
Yep, there it is. Maybe I should remember to search the Manifest first.

I'll update the libffi.pc that I created to refer to the one installed by the gcc-java pkg and uninstall the one I built that is now superfluous.
 
Old 06-09-2011, 06:03 PM   #8
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 126

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by saulgoode View Post
Thanks for that info. But then shouldn't the gcc-java package include a 'usr/lib/pkgconfig/libffi.pc' file?
Is a *.pc file something that has to be created manually for every executable or library on the system?

This is the first time I've run across pkg-config but surely there's a better way...
 
Old 06-09-2011, 09:13 PM   #9
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by leeeoooooo View Post
Is a *.pc file something that has to be created manually for every executable or library on the system?
The *.pc files typically ship with the source code or are generated by 'configure' (from a *.pc.in file). The original source code for libffi includes just such a libffi.pc.in file and it is a bit surprising to me that the gcj project 1) includes libffi as an internal library and 2) has removed the libffi.pc file.

Last edited by saulgoode; 06-09-2011 at 09:14 PM.
 
Old 11-27-2011, 12:15 PM   #10
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 126

Original Poster
Rep: Reputation: 20
I just installed the new guile according to the outline given by saulgoode above (Thank you SO much, Saul!).

I must have missed a step during the build of libunistring and ended up with an empty package that installed successfully but installed nothing. I was able to install libunistring with the generic make install.

I built the guile package with the newer 2.0.3 build instead of using git. All worked well and I now have a nicely upgraded guile.

It would be nice if the standard distro had this, or at least SlackBuilds...
 
Old 11-28-2011, 09:41 AM   #11
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by leeeoooooo View Post
I built the guile package with the newer 2.0.3 build instead of using git. All worked well and I now have a nicely upgraded guile.

It would be nice if the standard distro had this, or at least SlackBuilds...
I do not believe that slackbuilds.org typically provides scripts for newer versions of official Slackware packages.

This is a reasonable policy because Mr Volkerding's slackbuild scripts are so well written that, unless there have been significant changes upstream to the build process, merely running his .SlackBuild file in the same directory as the newer tarball (and a slack-desc) is sufficient to create an updated package.
 
Old 11-28-2011, 08:55 PM   #12
leeeoooooo
Member
 
Registered: Jan 2009
Distribution: Slackware64 14.2 (current)
Posts: 126

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by saulgoode View Post
I do not believe that slackbuilds.org typically provides scripts for newer versions of official Slackware packages.
.
Good point... I was just getting impatient to see the new features in guile 2.0

Thanks again...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mint upgrade => dependency problem ThePigster Linux - Software 3 06-05-2011 06:13 PM
upgrade from Fedora 9 to 10, Missing Dependency Dr_Death_UAE Linux - General 1 12-05-2008 05:39 PM
FC3 to FC4 upgrade, dependency problems thejonmoore Fedora 3 05-07-2006 09:59 PM
Swaret upgrade from 9.1 to 10 dependency errors zez Linux - Software 0 06-27-2004 11:41 PM
Failed Dependency: KDE 3.2.3 Upgrade MatthewASmith79 Linux - Newbie 1 06-13-2004 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration