Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-22-2010, 11:25 PM   #1
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:

/usr/lib64/gcc/x86_64-slackware-linux/4.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/ 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/ 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/ 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/ 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, 04:07 PM   #2
LQ Newbie
Registered: Oct 2007
Location: Finland
Distribution: Slackware
Posts: 24

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

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

ncursesw5-config --libs
incorrectly outputs
-L/usr/lib -lncursesw
while it should output
-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/ 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, 04:09 PM   #3
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,981

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

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


compilation, multilib, slackbuilds

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

All times are GMT -5. The time now is 05:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration