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 07-08-2014, 02:46 AM   #1
Toutatis
Member
 
Registered: Feb 2013
Posts: 419

Rep: Reputation: Disabled
problems with taglib


1) I get the following error with riocp (from l/libkarma-0.1.1-x86_64-2.txz) :

riocp: symbol lookup error: /usr/lib64/libtag.so.1: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE

was is compiled with the actual version of taglib (1.8) ?


2) it seems that vlc requires taglib-1.9.1
 
Old 07-08-2014, 05:05 AM   #2
aaazen
Member
 
Registered: Dec 2009
Posts: 358

Rep: Reputation: Disabled
On Slackware64 current I too got the same error just by running "riocp -h".

After Google searching the problem it appears to be a missing stdc++ library from the l/taglib package.

Code:
$ldd -d -r /usr/lib64/libtag.so
        linux-vdso.so.1 (0x00007fff12fff000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f553505f000)
        libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007f5534e49000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f5534a84000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f553557f000)
undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE      (/usr/lib64/libtag.so)
undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE (/usr/lib64/libtag.so)
undefined symbol: __cxa_pure_virtual    (/usr/lib64/libtag.so)
undefined symbol: _ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE   (/usr/lib64/libtag.so)
undefined symbol: _ZNSt8ios_base4InitD1Ev       (/usr/lib64/libtag.so)

...
So I modified the build script for the taglib package to add the -lstdc++ to the build.

Code:
--- taglib-orig/taglib.SlackBuild	2013-09-09 15:48:43.000000000 -0700
+++ taglib/taglib.SlackBuild	2014-07-08 02:17:35.559615395 -0700
@@ -22,7 +22,7 @@
 
 
 VERSION=${VERSION:-$(echo taglib-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
 
 # Automatically determine the architecture we're building on:
 if [ -z "$ARCH" ]; then
@@ -73,6 +73,7 @@
 cmake \
   -DCMAKE_INSTALL_PREFIX=/usr \
   -DCMAKE_BUILD_TYPE=Release \
+  -DCMAKE_SHARED_LINKER_FLAGS=-lstdc++ \
   -DLIB_SUFFIX="${LIBDIRSUFFIX}" \
   -DWITH_MP4=ON \
   -DWITH_ASF=ON \
After building the new taglib package and upgrading, the error goes away:

Code:
$ ldd -d -r /usr/lib64/libtag.so                    
        linux-vdso.so.1 (0x00007fffd83a4000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fea2f439000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fea2f224000)
        libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fea2f00d000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fea2ec49000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fea2e943000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fea2fa47000)
 
Old 07-08-2014, 06:10 AM   #3
Toutatis
Member
 
Registered: Feb 2013
Posts: 419

Original Poster
Rep: Reputation: Disabled
Thank you very much. This solves the problems.
 
Old 07-08-2014, 12:15 PM   #4
aaazen
Member
 
Registered: Dec 2009
Posts: 358

Rep: Reputation: Disabled
Quote:
Originally Posted by Toutatis View Post
... This solves the problems.
Good. The above taglib.SlackBuild script was for version 1.8 of taglib

You mentioned a newer version of taglib.
Quote:
Originally Posted by Toutatis View Post
...
2) it seems that vlc requires taglib-1.9.1
The newer version of taglib can be built for Slackware:
  1. Download the new version, taglib-1.9.1.tar.gz, to the taglib build directory
    from http://taglib.github.com/
  2. Erase the old taglib-1.8.tar.xz from the build directory
  3. Modify the taglib.SlackBuild to set the minor version to 1 and add the -lstdc++
    Code:
    --- taglib-orig/taglib.SlackBuild	2013-09-09 15:48:43.000000000 -0700
    +++ taglib/taglib.SlackBuild	2014-07-08 09:38:14.518847930 -0700
    @@ -22,7 +22,7 @@
     
     
     VERSION=${VERSION:-$(echo taglib-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
    -BUILD=${BUILD:-2}
    +BUILD=${BUILD:-1}
     
     # Automatically determine the architecture we're building on:
     if [ -z "$ARCH" ]; then
    @@ -73,6 +73,7 @@
     cmake \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DCMAKE_BUILD_TYPE=Release \
    +  -DCMAKE_SHARED_LINKER_FLAGS=-lstdc++ \
       -DLIB_SUFFIX="${LIBDIRSUFFIX}" \
       -DWITH_MP4=ON \
       -DWITH_ASF=ON \
  4. Build the taglib package and upgrade

Maybe Patrick can take a look at this?

Last edited by aaazen; 07-08-2014 at 12:19 PM. Reason: patch was backwards...
 
Old 07-08-2014, 02:47 PM   #5
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,761

Rep: Reputation: 9054Reputation: 9054Reputation: 9054Reputation: 9054Reputation: 9054Reputation: 9054Reputation: 9054Reputation: 9054Reputation: 9054Reputation: 9054Reputation: 9054
Quote:
Originally Posted by comet.berkeley View Post
Maybe Patrick can take a look at this?
Will do. Thanks!
 
  


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] Vlc SlackBuild fails taglib-1.9.1 mike_booth76 Slackware 3 06-15-2014 05:44 PM
taglib 1.7 lonestar_italy Slackware 2 03-27-2012 01:34 PM
JSTL Standard Taglib cookie_ie Debian 1 06-07-2006 01:35 PM
KAT + Taglib = Nightmare carl0ski Linux - Software 4 12-04-2005 04:48 PM
Update Taglib on Suse 9.1 Breex Linux - Software 1 01-28-2005 07:25 AM

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

All times are GMT -5. The time now is 06:27 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