Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-25-2010, 03:30 AM
|
#1
|
|
Member
Registered: Jul 2007
Distribution: Slackware
Posts: 147
Rep:
|
Compiling mesa from git
Hi,
I just wanted to warn the Slack team that since the commit of the new GLSL compiler from Intel to mesa, there was a hard dependency introduced on the talloc library, which is right now provided in Slackware within the Samba package.
However, I could only compile a recent mesa git pull by creating a "/usr/lib64/pkgconfig/talloc.pc" file, following the advice of nanonyme, on Phoronix.
The file has been copied from Fedora :
Code:
Code:
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include
Name: talloc
Description: A hierarchical pool based memory system with destructors
Version: 2.0.1
Libs: -L${libdir} -ltalloc
Cflags: -I${includedir}
URL: http://talloc.samba.org/
After that compilation could work.
Since there's a fair chance that this is to stay, I thought that maybe the Slack team, and some others, could be interested in this trick.
Best regards,
|
|
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
08-27-2010, 02:06 AM
|
#2
|
|
Member
Registered: May 2009
Posts: 198
Rep:
|
Thanks for the info.
Irecently tried to do the same. But didn't figure out that this lib is already included with slackware. So i downloaded talloc 2.0.1, and installed it as a separate package.
PS didn't have time yet to check. But isn't simple symlinking libtalloc.so-2.0.1 to libtalloc.so-2.0 should resolve this problem?
|
|
|
|
08-27-2010, 06:01 AM
|
#3
|
|
Member
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191
Rep:
|
On my system, there is no libtalloc.so-2.0
Code:
root@marcin:~# ls -la /usr/lib64/*talloc*
lrwxrwxrwx 1 root root 14 2010-08-17 14:54 /usr/lib64/libtalloc.so -> libtalloc.so.2
-rwxr-xr-x 1 root root 38928 2010-07-27 20:04 /usr/lib64/libtalloc.so.2
root@marcin:~#
so, there is no libtalloc.so-2.0.1 either 
|
|
|
|
08-27-2010, 02:46 PM
|
#4
|
|
Member
Registered: May 2009
Posts: 198
Rep:
|
Quote:
Originally Posted by Martinezio
On my system, there is no libtalloc.so-2.0
Code:
root@marcin:~# ls -la /usr/lib64/*talloc*
lrwxrwxrwx 1 root root 14 2010-08-17 14:54 /usr/lib64/libtalloc.so -> libtalloc.so.2
-rwxr-xr-x 1 root root 38928 2010-07-27 20:04 /usr/lib64/libtalloc.so.2
root@marcin:~#
so, there is no libtalloc.so-2.0.1 either 
|
You are absolutely right. I wrote above message from my memory, which was wrong. After installing talloc from a separate package from http://talloc.samba.org/ (I used modified slackbuild from slackware samba script), I actually have this:
Code:
vladimir@darkstar:~$ ls -l /usr/lib64/*talloc*
-rwxr-xr-x 1 root root 56148 2010-08-26 09:02 /usr/lib64/libtalloc.a*
lrwxrwxrwx 1 root root 14 2010-08-26 09:55 /usr/lib64/libtalloc.so -> libtalloc.so.2*
-rwxr-xr-x 1 root root 38928 2010-07-27 21:04 /usr/lib64/libtalloc.so.2*
-rwxr-xr-x 1 root root 45195 2010-08-26 09:02 /usr/lib64/libtalloc.so.2.0.1*
and mesa builds normally. Not sure this is the right way, but it worked for me.
|
|
|
|
08-31-2010, 09:26 PM
|
#5
|
|
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,895
Rep: 
|
Almost surely some CFLAGS-fu and LDFLAGS-fu (and there might even be TALLOC_CFLAGS and TALLOC_LDFLAGS (or similar) variables that one can use to override pkg-config) would fix this without having a libtalloc.pc file, but this is handy to know nonetheless. Assuming samba will use an external libtalloc if it's present, and the ABI is stable, and so on, then probably the best option will be to split libtalloc out of the samba package when the time comes. We'll see. :-) Thanks for the heads-up.
|
|
|
|
09-01-2010, 03:56 AM
|
#6
|
|
Member
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191
Rep:
|
I think, that best way is just add "-ltalloc" to LDFLAGS (-L flag is already set with --libdir switch of configure script). This is most secure way IMHO, if You don't want to add libtalloc.pc file  I don't know, if changing CFLAGS has something to do with this problem 
Please, let us know, it this solved the problem - I don't want to utilize my CPU for useles for me compilation processes 
|
|
|
|
09-01-2010, 08:38 AM
|
#7
|
|
Member
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191
Rep:
|
Ok, I've downloaded current mesa git repository to checkout, and this should be added to ./configure command:
Code:
TALLOC_CFLAGS="-O2 -fPIC" TALLOC_LIBS="-ltalloc"
With this env settings configure script will find libtalloc without havig proper .pc file.
Enjoy!
|
|
|
2 members found this post helpful.
|
09-01-2010, 10:53 AM
|
#8
|
|
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,895
Rep: 
|
Very nice; thanks!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:23 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|