SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Has anyone here successfully compiled gcc-4.7.1 yet? I'm trying on x86_64, but keep running into failures with gnat linking its shared libraries. The error in question is this:
/usr/x86_64-slackware-linux/bin/ld: adadecode.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
adadecode.o: could not read symbols: Bad value
Indeed, looking earlier in the log, adadecode.c does not appear to be compiled using -fPIC in spite of it appearing in CFLAGS. I tried adding --with-pic to the ./configure options with no noticeable change. Suspecting something had changed in ld, I tried earlier versions of binutils (as -current has a binutils package newer than gcc), but that did not help either. So, I tried compiling gcc-4.7.0 again to see if it would fail. It did not. It also does not seem to be using -fPIC, but it doesn't create a compile error in this case and the gnat package contains all the expected files.
Any help appreciated. Meanwhile it looks like we'll be sticking with 4.7.0.
Thanks ponce! I kludged -fPIC into the adalib/Makefile.in GNATLIBCFLAGS and it appears to have built correctly. But I'll try the post release patch (which seems to revert part of the previous change) and use that instead if it works.