LinuxQuestions.org
Visit Jeremy's Blog.
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 05-05-2012, 07:00 PM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
gcc exits with "libXrender" error when building wmii for Slackware64-current


Quote:
Originally Posted by TobiSGD View Post
... my wmii runs fine with the radeon driver.
...
@TobiSGD: I cannot seem to get wmii to build on my Slackware64-current machine. Did you experience any difficulties when you once built it?
It's a problem when gcc builds somthing with "libXrender", it exits with error.

Markus
 
Old 05-05-2012, 07:21 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by markush View Post
@TobiSGD: I cannot seem to get wmii to build on my Slackware64-current machine. Did you experience any difficulties when you once built it?
It's a problem when gcc builds somthing with "libXrender", it exits with error.

Markus
Not at all, I just used sbopkg to built and install it. But I just tried it again and let sbopkg build a new package and there is indeed a problem with libXrender that breaks the build.
Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.7.0/../../../../x86_64-slackware-linux/bin/ld: wmii/xext.o: undefined reference to symbol 'XRenderQueryExtension'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.0/../../../../x86_64-slackware-linux/bin/ld: note: 'XRenderQueryExtension' is defined in DSO /usr/lib64/libXrender.so.1 so try adding it to the linker command line
/usr/lib64/libXrender.so.1: could not read symbols: Invalid operation

Last edited by TobiSGD; 05-05-2012 at 07:22 PM.
 
Old 05-05-2012, 07:29 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
Originally Posted by TobiSGD View Post
Not at all, I just used sbopkg to built and install it. But I just tried it again and let sbopkg build a new package and there is indeed a problem with libXrender that breaks the build.
Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.7.0/../../../../x86_64-slackware-linux/bin/ld: wmii/xext.o: undefined reference to symbol 'XRenderQueryExtension'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.0/../../../../x86_64-slackware-linux/bin/ld: note: 'XRenderQueryExtension' is defined in DSO /usr/lib64/libXrender.so.1 so try adding it to the linker command line
/usr/lib64/libXrender.so.1: could not read symbols: Invalid operation
Well, I've also tried with sbopkg, but it also doesn't build on the native way (./configure && make) (same error). I'll try to find a solution, there's a hint in the errormessage about "try adding it to the linker command line". Maybe I've to learn a bit more about gcc and the linker.

Markus
 
Old 05-06-2012, 02:10 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,504

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
gcc exits with "libXrender" error when building wmii for Slackware64-current

for wmii you can try this
Code:
--- wmii.SlackBuild.orig        2012-05-06 08:00:11.649280748 +0200
+++ wmii.SlackBuild     2012-05-06 08:05:34.558258880 +0200
@@ -78,15 +78,16 @@
 # Fixup mk/hdr.mk
 patch -p1 < $CWD/wmii-3.9.2-mk_hdr_mk.diff
 
+LDFLAGS="-L/usr/lib${LIBDIRSUFFIX} -lXrender -lX11" \
 make \
-  OPT="$SLKCLAGS" \
+  OPT="$SLKCFLAGS" \
   PREFIX=/usr \
   MAN=/usr/man \
   ETC=/etc \
   LIBDIRSUFFIX=${LIBDIRSUFFIX}
    
 make install \
-  OPT="$SLKCLAGS" \
+  OPT="$SLKCFLAGS" \
   PREFIX=$PKG/usr \
   MAN=$PKG/usr/man \
   ETC=$PKG/etc \
I changed also the other 2 lines because of a typo.
 
1 members found this post helpful.
Old 05-06-2012, 05:49 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
Originally Posted by ponce View Post
...
I changed also the other 2 lines because of a typo.
Thank you very much, now it works.

Markus
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Install "VirtualBox-3.2.12-68 302" in slackware64-current ( kernel 2.6.38.7 ) afreitascs Slackware 16 06-26-2011 02:16 PM
Error in building "c" code using gcc 2.95.2 Mushabbar Linux - Newbie 2 04-25-2011 03:22 AM
"bad tty" & "file descriptor error" while building RPM on F13 gosssamer Linux - Software 7 12-28-2010 06:02 PM
X11 error "No screens found" with FGLRX after upgrade to slackware64-current Dinobot Linux - Desktop 17 03-06-2010 11:02 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 05:23 AM


All times are GMT -5. The time now is 08:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration