FS#5039 - id3lib bug?

Attached to Project: Arch Linux
Opened by Sébastien (sebcactus) - Thursday, 13 July 2006, 14:25 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To No-one
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,
I think I found a bug with id3 lib:

Here's an example:
conftest.cpp:
#include "id3/tag.h"
int
main() {
ID3_Tag myTag;
return 0;
}

g++ -c conftest.cpp -o conftest.o
g++ -o conftest conftest.o -lid3
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libid3.so: undefined reference to `uncompress'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libid3.so: undefined reference to `compress'

This task depends upon

Closed by  Jan de Groot (JGC)
Saturday, 15 July 2006, 11:51 GMT
Reason for closing:  Fixed
Comment by Sébastien (sebcactus) - Thursday, 13 July 2006, 14:28 GMT
Ok, my mistake problem with linking (must add -lz)
Comment by Jan de Groot (JGC) - Thursday, 13 July 2006, 14:39 GMT
This is actually a bug: libid3 contains external references to zlib symbols, so it should link to it. ldd /usr/lib/libid3.so shows that zlib is not linked in.
Comment by Sébastien (sebcactus) - Thursday, 13 July 2006, 15:17 GMT
Here is a patch
-> in the build(), add the sed line

./configure --prefix=/usr
sed -i 's|LIBS =|LIBS = -lz|' src/Makefile
make || return 1

Loading...