LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling ncmpcpp with multilib Slackware 13.1 (https://www.linuxquestions.org/questions/slackware-14/compiling-ncmpcpp-with-multilib-slackware-13-1-a-845936/)

camphor 11-22-2010 10:25 PM

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.

Fidori 11-23-2010 03:07 PM

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.

ponce 11-23-2010 03:09 PM

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 \



All times are GMT -5. The time now is 10:42 AM.