LinuxQuestions.org
Review your favorite Linux distribution.
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 12-14-2012, 03:11 AM   #1
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Skackware
Posts: 76

Rep: Reputation: 5
Wink BIND fail compilation under slackware64


Hello!
I compile bind under slackware64 14.0 and have error.
I think compiler search libraries in wrong places (in compat dirs(multilib system))
logfile - ftp://ifconfig.com.ua/incoming/bindbuild.log
 
Old 12-14-2012, 03:54 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
Fastest way to work out how you broke it is to get you to post the output from "export"
 
Old 12-14-2012, 04:08 PM   #3
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 50
Based on the snippet below, it looks like you're trying to build on a multilib enabled 64-bit system:

Code:
gcc -O2 -fPIC -I/usr/include/libxml2 -o .libs/dig .libs/dig.o .libs/dighost.o  ../../lib/lwres/.libs/liblwres.so ../../lib/dns/.libs/libdns.so ../../lib/bind9/.libs/libbind9.so /bind-b29356bcad88ebcf1052a5fd085ce468/bind-9.9.2-P1/lib/isccfg/.libs/libisccfg.so ../../lib/isccfg/.libs/libisccfg.so /bind-b29356bcad88ebcf1052a5fd085ce468/bind-9.9.2-P1/lib/dns/.libs/libdns.so -lcrypto /bind-b29356bcad88ebcf1052a5fd085ce468/bind-9.9.2-P1/lib/isccc/.libs/libisccc.so /bind-b29356bcad88ebcf1052a5fd085ce468/bind-9.9.2-P1/lib/isc/.libs/libisc.so ../../lib/isc/.libs/libisc.so /usr/lib64/libxml2.so /usr/lib64/liblzma.so -L/usr/lib /usr/lib64/libidnkit.so -lcap -lpthread /usr/lib/libxml2.so -ldl /usr/lib/liblzma.so -lz -lm  -Wl,--rpath -Wl,/usr/lib64
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/lib/libxml2.so: could not read symbols: File in wrong format
Try setting "LDFLAGS="-L/usr/lib64" when you run the configure script. For example, if using the bind.SlackBuild that comes with slackware64-14.0, change

Code:
# Configure:
CFLAGS="$SLKCFLAGS" \
./configure \
to

Code:
# Configure:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
CFLAGS="$SLKCFLAGS" \
./configure \
and rerun the script.
 
1 members found this post helpful.
Old 12-14-2012, 04:29 PM   #4
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Skackware
Posts: 76

Original Poster
Rep: Reputation: 5
Thanks you Mike_M !
With this fix, all works.
 
Old 12-15-2012, 01:01 AM   #5
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
Quote:
Originally Posted by Mike_M View Post
Based on the snippet below, it looks like you're trying to build on a multilib enabled 64-bit system:
There are plenty of us with multilib enabled systems that compile code on a regular basis but never have these sorts of problems.

Which is why I asked for the output from export as it would show what he has done to his systems environment to cause this error. And setting yet another environment variable is not a fix, it is just covering up the problem further and may result in even more failures in the long term.
 
Old 12-15-2012, 06:23 AM   #6
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 50
Quote:
Originally Posted by wildwizard View Post
There are plenty of us with multilib enabled systems that compile code on a regular basis but never have these sorts of problems.

Which is why I asked for the output from export as it would show what he has done to his systems environment to cause this error. And setting yet another environment variable is not a fix, it is just covering up the problem further and may result in even more failures in the long term.
And how about the people with multilib enabled systems who compile code on a regular basis who do have these sorts of problems?

I maintain a few hundred of my own SlackBuild scripts for the software I use. Most software builds fine without the need of adding an LDFLAGS env variable to force the linker to look in the correct place. Very few of them don't work correctly, most likely because of something amiss in their configure scripts.

This isn't necessarily due to user error or a broken environment. The issue pops up from time to time here and elsewhere. I'm not the first person to suggest this, and I doubt I'll be the last.
 
  


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
[SOLVED] Clementine - compilation error on Slackware64 -current BoydRice Slackware 2 04-21-2012 11:14 AM
[SOLVED] Samba 4 alpha14 compilation error on Slackware64-13.1 KamasCZ Slackware 2 01-28-2011 05:00 AM
[SOLVED] XBMC 9.11 on Slackware64 13.1 compilation problems lpallard Slackware 13 11-23-2010 08:24 PM
Slackware64-13.1 : mac (Monkey's Audio Linux port) build fail using sbopkg pokipoki08 Slackware 2 06-05-2010 03:54 PM
c++: virtual methods fail compilation if..... eantoranz Programming 3 02-22-2006 07:01 PM


All times are GMT -5. The time now is 01:25 AM.

Main Menu
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