LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-03-2017, 10:21 AM   #1
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Rep: Reputation: 7
Slackware 14.2 multilib - Icecast fails to build


Hello,

i am trying to install Icecast on a multilib system. Although i have modified the .SlackBuild file as described here i keep getting the error
Code:
/bin/sh ../libtool  --tag=CC   --mode=link gcc -pthread -O2 -fPIC -L/usr/lib -loggkate -lkate -logg -L/usr/lib64 -o icecast cfgfile.o main.o logging.o sighandler.o connection.o global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o format_midi.o format_flac.o format_ebml.o auth.o auth_htpasswd.o format_kate.o format_skeleton.o format_opus.o format_vorbis.o format_theora.o format_speex.o auth_url.o yp.o net/libicenet.la thread/libicethread.la httpp/libicehttpp.la log/libicelog.la avl/libiceavl.la timing/libicetiming.la  -lssl -lcrypto  -lcurl   -lspeex  -ltheora  -lvorbis -logg  -L/usr/lib64 -lxslt -lxml2 -lz -llzma -ldl -lm  -loggkate -lkate -logg 
libtool: link: gcc -pthread -O2 -fPIC -o icecast cfgfile.o main.o logging.o sighandler.o connection.o global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o format_midi.o format_flac.o format_ebml.o auth.o auth_htpasswd.o format_kate.o format_skeleton.o format_opus.o format_vorbis.o format_theora.o format_speex.o auth_url.o yp.o  -L/usr/lib -L/usr/lib64 net/.libs/libicenet.a thread/.libs/libicethread.a httpp/.libs/libicehttpp.a log/.libs/libicelog.a avl/.libs/libiceavl.a timing/.libs/libicetiming.a -lssl -lcrypto /usr/lib/libcurl.so /usr/lib64/libspeex.so /usr/lib64/libtheora.so /usr/lib/libvorbis.so /usr/lib/libxslt.so /usr/lib/libxml2.so -lz /usr/lib/liblzma.so -ldl -lm /usr/lib64/liboggkate.so /usr/lib64/libkate.so /usr/lib/libogg.so -pthread
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto
/usr/lib64/gcc/x86_64-slackware-linux/5.3.0/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto
/usr/lib/libcurl.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:502: recipe for target 'icecast' failed
make[3]: *** [icecast] Error 1
make[3]: Leaving directory '/tmp/SBo/icecast-2.4.3/src'
Makefile:579: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/SBo/icecast-2.4.3/src'
Makefile:495: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/icecast-2.4.3'
Makefile:406: recipe for target 'all' failed
make: *** [all] Error 2
In any case i have attached the whole file for reference. Has anybody experienced such a problem?
Attached Files
File Type: txt icecast.SlackBuild.txt (3.0 KB, 4 views)
 
Old 01-03-2017, 10:49 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Tried on 14.1+multilib (don't have 14.2+multilib) and it fails even with LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}".

However, it works with :
Code:
XIPH_LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}"
--
SeB

Last edited by phenixia2003; 01-03-2017 at 10:50 AM.
 
1 members found this post helpful.
Old 01-03-2017, 11:02 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Code:
/usr/lib/libcurl.so: error adding symbols: File in wrong format
You may need to make curl package compat32 ?
 
Old 01-03-2017, 11:29 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by willysr View Post
Code:
/usr/lib/libcurl.so: error adding symbols: File in wrong format
You may need to make curl package compat32 ?
Code:
$ grep -B 5 -A 5 LDFLAGS icecast.SlackBuild
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./configure \
  --prefix=/usr \

$ ls -l /var/log/packages/curl-*
/var/log/packages/curl-7.45.0-x86_64-1_slack14.1
/var/log/packages/curl-compat32-7.47.1-x86_64-1_slack14.1compat32

$ ./icecast.SlackBuild
...
/usr/lib/libcurl.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[3]: *** [icecast] Error 1
make[3]: Leaving directory `/tmp/SBo/icecast-2.4.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/icecast-2.4.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/icecast-2.4.3'
make: *** [all] Error 2
As I said in my previous post, using XIPH_LDFLAGS instead of LDFLAGS solves the issue :

Code:
$ grep -B 5 -A 5 XIPH_LDFLAGS icecast.SlackBuild

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
XIPH_LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./configure \
  --prefix=/usr \

$ ./icecast.SlackBuild
...
make[3]: Leaving directory `/tmp/SBo/icecast-2.4.3'
make[2]: Leaving directory `/tmp/SBo/icecast-2.4.3'
make[1]: Leaving directory `/tmp/SBo/icecast-2.4.3'

...
Creating Slackware package:  /tmp/icecast-2.4.3-x86_64-1_SBo.tgz

..../
install/
install/slack-desc
install/doinst.sh
etc/
etc/icecast.xml.new
usr/
usr/doc/
usr/doc/icecast-2.4.3/
usr/doc/icecast-2.4.3/icecast_minimal.xml.dist
usr/doc/icecast-2.4.3/icecast_urlauth.xml.dist
usr/doc/icecast-2.4.3/icecast_shoutcast_compat.xml.dist
usr/doc/icecast-2.4.3/AUTHORS
usr/doc/icecast-2.4.3/admin-interface.html
usr/doc/icecast-2.4.3/relaying.html
usr/doc/icecast-2.4.3/config-file.html
usr/doc/icecast-2.4.3/HACKING
usr/doc/icecast-2.4.3/img/
usr/doc/icecast-2.4.3/img/masterslave.png
usr/doc/icecast-2.4.3/img/relay.png
usr/doc/icecast-2.4.3/img/listener_auth3.png
usr/doc/icecast-2.4.3/img/listener_auth1.png
usr/doc/icecast-2.4.3/img/listener_auth2.png
usr/doc/icecast-2.4.3/ChangeLog
usr/doc/icecast-2.4.3/glossary.html
usr/doc/icecast-2.4.3/TODO
usr/doc/icecast-2.4.3/basic-setup.html
usr/doc/icecast-2.4.3/index.html
usr/doc/icecast-2.4.3/win32.html
usr/doc/icecast-2.4.3/COPYING
usr/doc/icecast-2.4.3/introduction.html
usr/doc/icecast-2.4.3/icecast.SlackBuild
usr/doc/icecast-2.4.3/icecast.xml.dist
usr/doc/icecast-2.4.3/server-stats.html
usr/doc/icecast-2.4.3/faq.html
usr/doc/icecast-2.4.3/changes.html
usr/doc/icecast-2.4.3/NEWS
usr/doc/icecast-2.4.3/README
usr/doc/icecast-2.4.3/assets/
usr/doc/icecast-2.4.3/assets/img/
usr/doc/icecast-2.4.3/assets/img/xiph-community.svg
usr/doc/icecast-2.4.3/assets/css/
usr/doc/icecast-2.4.3/assets/css/style.css
usr/doc/icecast-2.4.3/assets/font/
usr/doc/icecast-2.4.3/assets/font/FiraSans-Regular.woff
usr/doc/icecast-2.4.3/assets/font/FiraMono-Bold.eot
usr/doc/icecast-2.4.3/assets/font/FiraSans-BoldItalic.eot
usr/doc/icecast-2.4.3/assets/font/FiraSans-Italic.eot
usr/doc/icecast-2.4.3/assets/font/FiraSans-Regular.eot
usr/doc/icecast-2.4.3/assets/font/FiraMono-Regular.woff
usr/doc/icecast-2.4.3/assets/font/FiraMono-Bold.woff
usr/doc/icecast-2.4.3/assets/font/FiraSans-BoldItalic.woff
usr/doc/icecast-2.4.3/assets/font/FiraMono-Regular.eot
usr/doc/icecast-2.4.3/assets/font/FiraSans-Bold.eot
usr/doc/icecast-2.4.3/assets/font/FiraSans-Italic.woff
usr/doc/icecast-2.4.3/assets/font/FiraSans-Bold.woff
usr/doc/icecast-2.4.3/yp.html
usr/doc/icecast-2.4.3/auth.html
usr/bin/
usr/bin/icecast
usr/share/
usr/share/icecast/
usr/share/icecast/admin/
usr/share/icecast/admin/vclt.xsl
usr/share/icecast/admin/response.xsl
usr/share/icecast/admin/stats.xsl
usr/share/icecast/admin/listmounts.xsl
usr/share/icecast/admin/xspf.xsl
usr/share/icecast/admin/updatemetadata.xsl
usr/share/icecast/admin/listclients.xsl
usr/share/icecast/admin/moveclients.xsl
usr/share/icecast/admin/manageauth.xsl
usr/share/icecast/web/
usr/share/icecast/web/status-json.xsl
usr/share/icecast/web/server_version.xsl
usr/share/icecast/web/xml2json.xslt
usr/share/icecast/web/status.xsl
usr/share/icecast/web/tunein.png
usr/share/icecast/web/auth.xsl
usr/share/icecast/web/key.png
usr/share/icecast/web/style.css
usr/share/icecast/web/icecast.png
var/
var/log/
var/log/icecast/

Slackware package /tmp/icecast-2.4.3-x86_64-1_SBo.tgz created.


--
SeB
 
1 members found this post helpful.
Old 01-03-2017, 11:35 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
As an alternative to Seb's solution, a temporary "quick fix" is to just move (rename) the /usr/lib/ directory during compilation. Once the program has been compiled, you can then move (rename) it back.

But I always try the trick on SBo's multilib first. I'm not sure if I would be smart enough on my own to find the solution Seb did (which is why I'd resort to temporarily moving the directory).

Seb's is a proper solution, where mine is a hack at best.
 
Old 01-04-2017, 03:50 AM   #6
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

The patch icecast-src-makefile-fix-am_ldflags.patch.txt fixes this issue :

Code:
--- src/Makefile.in.orig        2017-01-04 10:10:36.175223420 +0100
+++ src/Makefile.in     2017-01-04 10:11:01.925224569 +0100
@@ -414,7 +414,7 @@
 icecast_LDADD = $(icecast_DEPENDENCIES) @XIPH_LIBS@ @KATE_LIBS@
 AM_CFLAGS = @XIPH_CFLAGS@
 AM_CPPFLAGS = @XIPH_CPPFLAGS@
-AM_LDFLAGS = @XIPH_LDFLAGS@ @KATE_LIBS@
+AM_LDFLAGS = @LDFLAGS@ @XIPH_LDFLAGS@ @KATE_LIBS@
 all: all-recursive
 
 .SUFFIXES:
Here is a patch to update icecast.SlackBuild accordingly :
Code:
--- icecast.SlackBuild.orig     2016-06-28 03:36:55.000000000 +0200
+++ icecast.SlackBuild  2017-01-04 10:26:27.967265889 +0100
@@ -72,6 +72,9 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+ # patch src/Makefile.in to ensure support for LDFLAGS variable.
+patch -p0<$CWD/icecast-src-makefile-fix-am_ldflags.patch
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
With that, on Slackware64/14.1+multilib, icecast builds fine without the need to use XIPH_LDFLAGS instead of LDFLAGS :
Code:
$ LDFLAGS=-L/usr/lib64 ./icecast.SlackBuild
...
usr/share/icecast/web/server_version.xsl
usr/share/icecast/web/xml2json.xslt
usr/share/icecast/web/status.xsl
usr/share/icecast/web/tunein.png
usr/share/icecast/web/auth.xsl
usr/share/icecast/web/key.png
usr/share/icecast/web/style.css
usr/share/icecast/web/icecast.png
var/
var/log/
var/log/icecast/

Slackware package /tmp/icecast-2.4.3-x86_64-1_SBo.tgz created.
--
SeB
 
1 members found this post helpful.
Old 01-04-2017, 06:55 AM   #7
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
Thanks for the solution

SeB,

just to make it clear to other people, what i did. I copied the patch file (renamed it to .patch) in the icecast directory (created by extracting the slackbuild, where .info and all other files need to be copied in order to create the slackbuild). I edited the icecast.SlackBuild file as follows:
Code:
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

# patch src/Makefile.in to ensure support for LDFLAGS variable.
patch -p0<$CWD/icecast-src-makefile-fix-am_ldflags.patch 
  

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --build=$ARCH-slackware-linux
then i executed
Code:
LDFLAGS=-L/usr/lib64 ./icecast.SlackBuild
in the same directory as root
and a SlackBuild was successfully created. I installed it via
Code:
installpkg /tmp/icecast-2.4.3-x86_64-1_SBo.tgz
I hope this might help someone.
 
  


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] virt-manager build's on slackware 14.1 multilib but won't start bmarley83 Slackware 10 10-22-2015 09:52 PM
[SOLVED] py3cairo build fails 14.1 multilib bmarley83 Slackware 12 10-05-2015 02:54 PM
[SOLVED] Cannot build autogen on Slackware 14.1 64bit / multilib andrew.46 Slackware 2 07-18-2014 02:15 AM
Frostwire on Slackware (32, 64 and multilib) fails to run kingbeowulf Slackware 5 12-30-2011 03:43 AM
multilib current trying to install Icecast SavoTU Slackware 2 09-12-2011 01:23 PM

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

All times are GMT -5. The time now is 06:09 PM.

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