[Slackbuilds-users] build errors with libquicktime

King Beowulf kingbeowulf at gmail.com
Tue Apr 28 21:18:36 UTC 2020


On 4/28/20 1:38 PM, Christopher L Duston via SlackBuilds-users wrote:
> I am having some trouble building libquicktime, errors are below. I
> naively believe this might be because I'm running multilib, but that
> section of the script already includes what I would have added to try
> and fix that:
> 
> 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"
> else
>   SLKCFLAGS="-O2"
>   LIBDIRSUFFIX=""
> fi
> 
> Any thoughts?
> 
> Build Errors:
> 
> 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: error adding symbols: File in wrong format
> collect2: error: ld returned 1 exit status
> Makefile:374: recipe for target 'lqt_vorbis.la' failed
> make[3]: *** [lqt_vorbis.la] Error 1
> make[3]: Leaving directory '/tmp/SBo/libquicktime-1.2.4/plugins/vorbis'
> Makefile:371: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/tmp/SBo/libquicktime-1.2.4/plugins'
> Makefile:444: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/tmp/SBo/libquicktime-1.2.4'
> Makefile:351: recipe for target 'all' failed
> make: *** [all] Error 2
> 
> 

On multilib, you may need this modification in the buildscript:

...

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

...

libquicktime's configure gets confused when there is both /usr/lib
and /usr/lib64

-Ed


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200428/910fa863/attachment.asc>


More information about the SlackBuilds-users mailing list