libiconv Probleme beim kompilieren von tagger

tschepe

Well-Known Member
Guten Tag,

ich bin gerade dabei tagger [1] zu kompilieren. Jedoch ohne Erfolg.


Ein ./configure sieht so weit ganz gut aus:
Code:
checking for program gcc... /usr/bin/gcc
checking for CC flag -MT /dev/null -MD -MP -MF /dev/null... yes
checking iconv (-liconv)... no
assuming libc contains iconv
checking for program pkg-config... /usr/local/bin/pkg-config
checking vorbisfile... gnome-config: not found
no
gnome-config: not found
Package vorbisfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `vorbisfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vorbisfile' found
Library requirements (vorbisfile) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
Generating config.h
Generating config.mk
Generating Makefile
Generating tagger/Makefile

Configuration:
vorbis:              no

Compiler Settings:
CC:                  gcc
LD:                  gcc
CFLAGS:              -O2 -Wall -g
LDFLAGS:
SOFLAGS:             -fPIC

Installation Directories:
prefix:              /usr/local

Jedoch bricht ein gmake bei "utf8_decode.c" ab:
Code:
 * Making build in tagger
   CC     comment.o
   CC     file.o
   CC     main.o
   CC     opt.o
   CC     utf8_decode.o
utf8_decode.c:23:19: iconv.h: No such file or directory
utf8_decode.c: In function `utf8_decode':
utf8_decode.c:32: error: syntax error before "cd"
utf8_decode.c:35: error: `cd' undeclared (first use in this function)
utf8_decode.c:35: error: (Each undeclared identifier is reported only once
utf8_decode.c:35: error: for each function it appears in.)
utf8_decode.c:35: warning: implicit declaration of function `iconv_open'
utf8_decode.c:36: error: `iconv_t' undeclared (first use in this function)
utf8_decode.c:44: warning: implicit declaration of function `iconv'
utf8_decode.c:49: warning: implicit declaration of function `iconv_close'
gmake[1]: *** [utf8_decode.o] Fehler 1
gmake: *** [recursive-build] Fehler 1

Er beschwehrt sich darueber das "iconv.h" nicht existiert. libiconv ist jedoch als Package installiert und die Datei liegt auch unter "/usr/local/include".


Wenn ich jetzt einfach in "utf8_decode.c" und utf8_encode.c" jeweils
#include <iconv.h>
durch
#include "/usr/local/include/iconv.h"
ersetze bringt mich das zwar etwas weiter aber auch nicht ganz (ist sowieso nicht ganz die fine Englischeart):
Code:
 * Making build in tagger
   CC     utf8_decode.o
utf8_decode.c: In function `utf8_decode':
utf8_decode.c:45: warning: passing arg 2 of `libiconv' from incompatible pointer type
   CC     utf8_encode.o
utf8_encode.c: In function `utf8_encode':
utf8_encode.c:52: warning: passing arg 2 of `libiconv' from incompatible pointer type
   CC     utils.o
   CC     xmalloc.o
   CC     xstrjoin.o
   CC     mp3-tagger.o
   CC     id3.o
   LD     tagger
utf8_decode.o(.text+0x12): In function `utf8_decode':
/tmp/tagger-0.2.6/tagger/utf8_decode.c:36: undefined reference to `libiconv_open'
utf8_decode.o(.text+0x72):/tmp/tagger-0.2.6/tagger/utf8_decode.c:45: undefined reference to `libiconv'
utf8_decode.o(.text+0x89):/tmp/tagger-0.2.6/tagger/utf8_decode.c:54: undefined reference to `libiconv_close'
utf8_decode.o(.text+0xaf):/tmp/tagger-0.2.6/tagger/utf8_decode.c:50: undefined reference to `libiconv_close'
utf8_encode.o(.text+0x15): In function `utf8_encode':
/tmp/tagger-0.2.6/tagger/utf8_encode.c:36: undefined reference to `libiconv_open'
utf8_encode.o(.text+0x8b):/tmp/tagger-0.2.6/tagger/utf8_encode.c:52: undefined reference to `libiconv'
utf8_encode.o(.text+0xa2):/tmp/tagger-0.2.6/tagger/utf8_encode.c:63: undefined reference to `libiconv_close'
utf8_encode.o(.text+0xcc):/tmp/tagger-0.2.6/tagger/utf8_encode.c:57: undefined reference to `libiconv_close'
gmake[1]: *** [tagger] Fehler 1
gmake: *** [recursive-build] Fehler 1
Nur seltsam ist, das in "config.mk" schon ein "export includedir := /usr/local/include" drin steht, was ja nicht ganz verkehrt sein kann.

Leider gibts es kein port von tagger und die Programme die aehnliches erledigen sind meist ziemlich veraltet.

Weiss jemand Rat?

Gruss tschepe

[1] http://onion.dynserv.net/~timo/tagger.html
 
Beim tagger-0.2.7 laeuft es besser. Man muss nach einem ./configure lediglich "-Wno-pointer-sign" aus der liste "CFLAGS" in config.mk entfernen.
 
Zurück
Oben