LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   gcc exits with "libXrender" error when building wmii for Slackware64-current (http://www.linuxquestions.org/questions/slackware-14/gcc-exits-with-libxrender-error-when-building-wmii-for-slackware64-current-943496/)

markush 05-05-2012 06:00 PM

gcc exits with "libXrender" error when building wmii for Slackware64-current
 
Quote:

Originally Posted by TobiSGD (Post 4671236)
... 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

TobiSGD 05-05-2012 06:21 PM

Quote:

Originally Posted by markush (Post 4671245)
@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


markush 05-05-2012 06:29 PM

Quote:

Originally Posted by TobiSGD (Post 4671254)
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

ponce 05-06-2012 01:10 AM

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.

markush 05-06-2012 04:49 AM

Quote:

Originally Posted by ponce (Post 4671442)
...
I changed also the other 2 lines because of a typo.

Thank you very much, now it works.

Markus


All times are GMT -5. The time now is 02:35 AM.