LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-22-2010, 10:25 PM   #1
camphor
Member
 
Registered: Jan 2009
Location: USA
Distribution: Fedora 14 / Slackware 13.1
Posts: 85

Rep: Reputation: 20
Compiling ncmpcpp with multilib Slackware 13.1


I'm running into trouble compiling ncmpcppp with a SlackBuild under a multilib Slackware 13.1. Even though my ARCH is exported correctly and it's looking in /usr/lib64 for the relevant libraries, the build fails with these errors:

Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libnsl.so when searching for -lnsl
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libnsl.a when searching for -lnsl
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libncursesw.so when searching for -lncursesw
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libncursesw.a when searching for -lncursesw
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/lib/libcurl.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [ncmpcpp] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Any help would be appreciated.
 
Old 11-23-2010, 03:07 PM   #2
Fidori
LQ Newbie
 
Registered: Oct 2007
Location: Finland
Distribution: Slackware
Posts: 27

Rep: Reputation: 17
I think this is caused by a bug in ncurses.

The ncmpcpp build system uses ncursesw5-config to get ncurses specific link flags.

Code:
ncursesw5-config --libs
incorrectly outputs
Code:
-L/usr/lib -lncursesw
while it should output
Code:
-L/usr/lib64 -lncursesw
Curl uses the linker flag -lcurl. Libtool combines the flags -L/usr/lib and -lcurl to an absolute path /usr/lib/libcurl.so which is the 32-bit library.

If I modify /usr/bin/ncursesw5-config to output the correct flags, ncmpcpp compiles successfully.

It seems the bug has been fixed in latest ncurses snapshots.
 
Old 11-23-2010, 03:09 PM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
as a temporary solution you can add an
Code:
LDFLAGS="-L/usr/lib64 -L/lib64" \
to the configure like this
Code:
@@ -69,6 +69,7 @@
 chown -R root:root .
 chmod -R u+w,go+r-w,a-s .
 
+LDFLAGS="-L/usr/lib64 -L/lib64" \
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \

Last edited by ponce; 11-23-2010 at 03:10 PM.
 
1 members found this post helpful.
  


Reply

Tags
compilation, multilib, slackbuilds



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
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM
[SOLVED] libofa-0.9.3 in slackware-64 current multilib escaflown Slackware 7 03-11-2010 08:20 PM
slackware-current 64 multilib portia Slackware 9 12-28-2009 10:08 AM
martian modem drivers on slackware 13-64 multilib afreitascs Slackware 2 11-13-2009 10:07 PM
[SOLVED] Slackware64 multilib - E17 compiling problem? kukibl Slackware 1 10-08-2009 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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
Open Source Consulting | Domain Registration