Help save net neutrality! Learn more.
Close

#3 Fails to build with mysql and id3 tags on Debian stable

open
nobody
None
5
2005-04-13
2005-04-13
No

mendoza@polarboing:~/icegenerator-0.5.5-pre2/src$ make
source='circular.cpp' object='circular.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I.. -ansi -pedantic -pipe -Wall -O3 -
pthread -pthread -I'/usr/include/mysql' -c -o circular.o circular.cpp
circular.cpp: In method `void cDoubleLinkedItem::LoadID3()':
circular.cpp:220: no matching function for call to `ID3_Frame::GetField
(ID3_FieldID)'
circular.cpp:222: `bzero' undeclared (first use this function)
circular.cpp:222: (Each undeclared identifier is reported only once
circular.cpp:222: for each function it appears in.)
circular.cpp:209: warning: `class ID3_Field * my_field' might be used
uninitialized in this function
make: *** [circular.o] Error 1

the bzero is easily solved by adding
#include <strings.h>
to circular.cpp
(maybe the configure script didn't pick up this somewhere)

The later error:

mendoza@polarboing:~/icegenerator-0.5.5-pre2/src$ make
source='circular.cpp' object='circular.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I.. -ansi -pedantic -pipe -Wall -O3 -
pthread -pthread -I'/usr/include/mysql' -c -o circular.o circular.cpp
circular.cpp: In method `void cDoubleLinkedItem::LoadID3()':
circular.cpp:221: no matching function for call to `ID3_Frame::GetField
(ID3_FieldID)'
circular.cpp:210: warning: `class ID3_Field * my_field' might be used
uninitialized in this function
make: *** [circular.o] Error 1

I'm afraid I didn't find out what was exactly wrong,

I'm using

ii libid3-dev 3.7.13-4.1 ID3 Tag
Library: Development Libraries and Header Files.

Thanks for your attention

Discussion

  • Nicolas Mendoza

    Nicolas Mendoza - 2005-04-13

    Logged In: YES
    user_id=622019

    It builds with 3.8.3 from id3lib webpage but a nother missing strings.h is
    found in data_streamer.cpp

    Anyway, when finally build it SIGSEVS with this:

    (gdb) run -f icegen.conf
    Starting program: /usr/local/bin/icegenerator -f icegen.conf
    (no debugging symbols found)...(no debugging symbols found)...(no
    debugging symbols found)...(no debugging symbols found)...(no debugging
    symbols found)...(no debugging symbols found)...
    (no debugging symbols found)...[New Thread 1024 (LWP 28344)]
    Trying to insert: /home/mendoza/Strandjungs_-_Kaffeebraun.mp3
    creating tag /home/mendoza/Strandjungs_-_Kaffeebraun.mp3

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 28344)]
    0x4012951e in ID3_Tag::ID3_Tag (this=0x80577a8, name=0x8056f20 "/
    home/mendoza/Strandjungs_-_Kaffeebraun.mp3") at tag.cpp:290
    /home/mendoza/id3lib-3.8.3/src/tag.cpp:290:10766:beg:0x4012951e
    Current language: auto; currently c++
    (gdb) bt
    #0 0x4012951e in ID3_Tag::ID3_Tag (this=0x80577a8, name=0x8056f20 "/
    home/mendoza/Strandjungs_-_Kaffeebraun.mp3") at tag.cpp:290
    #1 0x0804a13e in cDoubleLinkedItem::LoadID3 ()
    #2 0x0804a4bf in cCircularList::Insert ()
    #3 0x0804ad5d in cCircularList::FillWithM3U ()
    #4 0x0804b347 in cCircularList::ParsePlayList ()
    #5 0x0804d07b in main ()
    #6 0x4020314f in __libc_start_main () from /lib/libc.so.6

    This is even after I added som printf debugging and tried to instantiate
    Id3_Tag with a filename parameter, sigseved without too.

    Is this a libid3 bug? Or am I doing sometehing awfully wrong here?

     
  • Nicolas Mendoza

    Nicolas Mendoza - 2005-04-13

    Logged In: YES
    user_id=622019

    It builds with 3.8.3 from id3lib webpage but a nother missing strings.h is
    found in data_streamer.cpp

    Anyway, when finally build it SIGSEVS with this:

    (gdb) run -f icegen.conf
    Starting program: /usr/local/bin/icegenerator -f icegen.conf
    (no debugging symbols found)...(no debugging symbols found)...(no
    debugging symbols found)...(no debugging symbols found)...(no debugging
    symbols found)...(no debugging symbols found)...
    (no debugging symbols found)...[New Thread 1024 (LWP 28344)]
    Trying to insert: /home/mendoza/Strandjungs_-_Kaffeebraun.mp3
    creating tag /home/mendoza/Strandjungs_-_Kaffeebraun.mp3

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 28344)]
    0x4012951e in ID3_Tag::ID3_Tag (this=0x80577a8, name=0x8056f20 "/
    home/mendoza/Strandjungs_-_Kaffeebraun.mp3") at tag.cpp:290
    /home/mendoza/id3lib-3.8.3/src/tag.cpp:290:10766:beg:0x4012951e
    Current language: auto; currently c++
    (gdb) bt
    #0 0x4012951e in ID3_Tag::ID3_Tag (this=0x80577a8, name=0x8056f20 "/
    home/mendoza/Strandjungs_-_Kaffeebraun.mp3") at tag.cpp:290
    #1 0x0804a13e in cDoubleLinkedItem::LoadID3 ()
    #2 0x0804a4bf in cCircularList::Insert ()
    #3 0x0804ad5d in cCircularList::FillWithM3U ()
    #4 0x0804b347 in cCircularList::ParsePlayList ()
    #5 0x0804d07b in main ()
    #6 0x4020314f in __libc_start_main () from /lib/libc.so.6

    This is even after I added som printf debugging and tried to instantiate
    Id3_Tag with a filename parameter, sigseved without too.

    Is this a libid3 bug? Or am I doing sometehing awfully wrong here?

     

Log in to post a comment.