LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   unable to install libquicktime on slackware64 14.1 (https://www.linuxquestions.org/questions/slackware-14/unable-to-install-libquicktime-on-slackware64-14-1-a-4175534366/)

allenlinux 02-17-2015 09:50 PM

unable to install libquicktime on slackware64 14.1
 
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include/ -I/usr/include -DLOCALE_DIR=\"/usr/share/locale\" -O2 -fPIC -finline-functions -Wall -Winline -Wmissing-declarations -Wdeclaration-after-statement -fvisibility=hidden -MT lqt_vorbis.lo -MD -MP -MF .deps/lqt_vorbis.Tpo -c lqt_vorbis.c -fPIC -DPIC -o .libs/lqt_vorbis.o
mv -f .deps/lqt_vorbis.Tpo .deps/lqt_vorbis.Plo
/bin/sh ../../libtool --tag=CC --mode=link gcc -I/usr/include -DLOCALE_DIR=\"/usr/share/locale\" -O2 -fPIC -finline-functions -Wall -Winline -Wmissing-declarations -Wdeclaration-after-statement -fvisibility=hidden -avoid-version -module -o lqt_vorbis.la -rpath /usr/lib64/libquicktime vorbis.lo lqt_vorbis.lo ../../src/libquicktime.la -lvorbisenc -L/usr/lib -lvorbis -lm -lvorbisfile -lpthread -lm -lz -ldl
libtool: link: gcc -shared .libs/vorbis.o .libs/lqt_vorbis.o -Wl,-rpath -Wl,/tmp/SBo/libquicktime-1.2.4/src/.libs ../../src/.libs/libquicktime.so /usr/lib/libvorbisenc.so -L/usr/lib /usr/lib/libvorbis.so /usr/lib/libvorbisfile.so -lpthread -lm -lz -ldl -Wl,-soname -Wl,lqt_vorbis.so -o .libs/lqt_vorbis.so
/usr/lib/libvorbisenc.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[3]: *** [lqt_vorbis.la] Error 1
make[3]: Leaving directory `/tmp/SBo/libquicktime-1.2.4/plugins/vorbis'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/libquicktime-1.2.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/libquicktime-1.2.4'
make: *** [all] Error 2
Total build time for package libquicktime : 1 Min 01 Sec

+==============================================================================
| Build package libquicktime-1.2.4 [ FAILED ]
+==============================================================================
| See log file in '/var/log/slpkg/sbo/build_logs' directoryor read README file:
| http://slackbuilds.org/slackbuilds/1...icktime/README
+==============================================================================


i want to install kdenlive. Libquicktime its a formal dep. any suggestion, thanks.

maciuszek 02-17-2015 09:59 PM

No error over here using http://slackbuilds.org/repository/14.../libquicktime/.

Slackware 14.1
3.10.17-smp

If you're still having build issues i'll pastebin my world.
runtime deps:
.. from package libquicktime-1.2.4-i486-2_SBo

aside from the the runtime deps are online:
aaa_elflibs >= 14.1 | alsa-lib >= 1.0.27.2
aaa_elflibs >= 14.1 | zlib >= 1.2.8
glibc >= 2.17 | glibc-solibs >= 2.17
libICE >= 1.0.8
libSM >= 1.2.2
libX11 >= 1.6.2
libXaw >= 1.0.12
libXext >= 1.3.2
libXt >= 1.1.4
libXv >= 1.0.10
libquicktime >= 1.2.4
mesa >= 9.1.7

i can ftp my package if you like.

maciuszek 02-17-2015 10:09 PM

might want to reinstall:

Code:

ls /var/log/packages/ | while read pkname ; do if [ -n "$(cat /var/log/packages/$pkname | grep libvorbisenc.so.2.0.9)" ] ; then echo $pkname ; fi ; done
Quote:

libvorbis-1.3.3-i486-1
/* look in roe: or resoftlink /usr/lib/libvorbis.so -> libvorbis.so.0.4.6 */

willysr 02-17-2015 11:50 PM

it seems that you are running multilib based on this error message:
Quote:

/usr/lib/libvorbisenc.so: could not read symbols: File in wrong format

ponce 02-17-2015 11:51 PM

Quote:

Originally Posted by allenlinux (Post 5319158)
/usr/lib/libvorbisenc.so: could not read symbols: File in wrong format

you are using multilib, see the FAQ.

P.S. oops, too late!

JackHair 02-19-2015 12:53 AM

Quote:

Originally Posted by ponce (Post 5319193)
you are using multilib, see the FAQ.

P.S. oops, too late!

I happen to run into this today too. I can confirm the above fixes the problem.

allenlinux 03-01-2015 10:11 PM

mr maciuszek , can you ftp yor package. I have limitated skills. i dont know how to do the 'faq' link.
thanks. And yes, im running multilib.

JackHair 03-02-2015 07:53 AM

Quote:

Originally Posted by allenlinux (Post 5325414)
mr maciuszek , can you ftp yor package. I have limitated skills. i dont know how to do the 'faq' link.
thanks. And yes, im running multilib.

It's not hard to do. Just open the Slackbuild script with a text editor.
Lookup these lines in the script:
Code:

CFLAGS="$SLKCFLAGS" \
  CXXFLAGS="$SLKCFLAGS" \

And then add:
Code:

LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
below these 2 lines.

When you did it correctly it should now show:
Code:

CFLAGS="$SLKCFLAGS" \
  CXXFLAGS="$SLKCFLAGS" \
  LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \

Save&quit and run the script. You should have an installable package when it's done compiling.

allenlinux 03-04-2015 03:46 PM

thanks jack i fix the problem. thanks to all.

willysr 03-04-2015 05:42 PM

that's the slackbuilds for lxml, not libquicktime

maciuszek 03-04-2015 05:58 PM

Realizing i was called. Just incase there is anymore confusion.
For the multilib solution:

Get and resolve distfile: http://slackbuilds.org/slackbuilds/1...icktime.tar.gz

Modify:
Code:

#!/bin/sh

# Slackware build script for libquicktime

# Copyright 2008-2013 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=libquicktime
VERSION=1.2.4
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}

# Consider
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64" # Consider 
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

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 {} \;

# Fix compatibility with ffmpeg 2.x
patch -p1 -i $CWD/libquicktime-1.2.4-ffmpeg2.patch

# Consider
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --enable-gpl \
  --with-libdv \
  --build=$ARCH-slackware-linux

make
make install-strip DESTDIR=$PKG

find $PKG/usr/man -type f -exec gzip -9 {} \;

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
  AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
    $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

Remember to mark the thread as solved
(On my phone so it would be more tedious to create a diff)

maciuszek 03-04-2015 06:03 PM

Just so you won't have a hard time in the future . if you want to compile for 32bit (not 64 like in this case).. Remember:

Quote:

Compiling 32-bit programs
=========================

In case you need to compile a 32-bit program (wine and grub are two examples
of open source programs that are 32-bit only) you first configure your
shell environment by running the command:

. /etc/profile.d/32dev.sh

Note the 'dot' in front of the filename - that is actually part of the
commandline! It will change or create several environment variables so
that 32-bit versions of binaries are preferred. Once you are done compiling
32-bit software, you should logout of your root shell in order to get rid of
the modified build environment.

In this changed environment, you will be able to use standard SlackBuilds to
build 32-bit packages for Slackware64.
There's a couple of things to keep in mind:

(1) You have to define the ARCH variable as 'i486' because even on your
'x86_64' computer you are compiling a 32-bit program!
This is related to the triplet of '$ARCH-slackware-linux' which
is normally used in the 'configure' command.
(a) As an exception, you will have to compile the 'wine' package with
'ARCH=x86_64' because you will install this package directly on
your multilib computer without converting to a 'compat32' package.

(2) If you want to install this 32-bit package on Slackware64-multilib,
you will have to convert it to a 'compat32' package:

# convertpkg-compat32 -i /path/to/your/fresh/foo-VERSION-i486-BUILD.tgz
# upgradepkg --install-new /tmp/foo-compat32-VERSION-x86_64-BUILDcompat32.txz
SRC:http://www.slackware.com/~alien/multilib/

Remember this is irrelevant to this issue . just future issues with slackbuilds.

allenlinux 03-04-2015 06:04 PM

i realize mr willys , yes, thanks. the post has been edited.
i change lxml dir to quicktime ||| dont ask : - ( ||| my mistake, im sorry
thanks to all

BCarey 03-04-2015 07:02 PM

In my experience sometimes adding

Code:

LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
Does not always work. In such cases I uninstall the offending 32bit compatible program for compiling and then reinstall it afterwards. Slackpkg+ makes this very easy.

Brian


All times are GMT -5. The time now is 08:14 AM.