[SOLVED] Slackware64 14, problems with compiling packages from slackbuilds.org
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
GCC 4.7.x changed in a few significant ways, mostly in becoming more strict with compiling. Also glibc changed the way includes are handled. The latest ffmpeg has changed too, anything dependent upon that needs rebuilding. All of those types of build issues need to be resolved upstream or patched in the build scripts. Etc., etc.
So patience will be required with the slackbuilds scripts for 14.0.
I thought I'd piggy-back onto this comment some more specifics about gcc 4.7.x. One of the issues is actually well documented (if you know where to look) on the gnu/gcc site:
Quote:
Many of the standard C++ library include files have been edited to no longer include <unistd.h> to remove namespace pollution.
As such, C++ programs that used functions including truncate, sleep or pipe without first including <unistd.h> will no longer compile. The diagnostic produced is similar to:
error: ‘truncate’ was not declared in this scope
error: ‘sleep’ was not declared in this scope
error: ‘pipe’ was not declared in this scope
error: there are no arguments to 'offsetof' that depend on a template
parameter, so a declaration of 'offsetof' must be available
Fixing this issue is easy: just include <unistd.h>.
Unfortunately, this isn't something you're going to work around with a configure option or environment variable. You'll need to find the particular file in the source and add the include line. Fortunately, this has actually fixed the few instances I've found where this was a problem.
I'll usually rebase SBo-git/current on slackbuilds.org's git master (the delay is some hours at max) so you will have that stuff plus the needed updates for -current for the stuff I use, so it's safe to use that if you use -current.
As an alternate to editing /etc/sbopkg/sbopkg.conf, you can change the version sbopkg uses with
Code:
# sbopkg -V SBo/14.0
This will prompt you to create the repository directory in /var/lib/sbopkg/SBo/14.0 and take you to the ncurses dialog, where you can start to sync the archive to your local repository and check/build and install updates.
Yes, but using like this (with the -V option) it's only for temporary use: if you don't specify the "-V SBo/14.0" also the next time you launch it, it will default to the repository set in /etc/sbopkg/sbopkg.conf (or ~/.sbopkg.conf, if you save your options from the dialog interface).
Last edited by ponce; 10-03-2012 at 11:21 AM.
Reason: added .sbopkg.conf
I would think that sbopkg is feature complete, so a slow development cycle has to be expected. It works fine here, the only thing that bother me a bit is that the queue files are not adapted yet. I have to look into how to maintain them and then maybe volunteer for that. Well, and I have to learn how to work with git, in the first place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.