castget
castget copied to clipboard
Compilation failure on Ubuntu 22.04
Version: castget-rel_2_0_0
$ configure --prefix=/usr/local/castget
...
$ make
make all-recursive
make[1]: Entering directory '/tmp/castget-rel_2_0_0'
Making all in tests
make[2]: Entering directory '/tmp/castget-rel_2_0_0/tests'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/castget-rel_2_0_0/tests'
Making all in src
make[2]: Entering directory '/tmp/castget-rel_2_0_0/src'
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/local/include -g -O2 -MT castget.o -MD -MP -MF .deps/castget.Tpo -c -o castget.o castget.c
In file included from /usr/include/unicode/umachine.h:52,
from /usr/include/unicode/utypes.h:38,
from /usr/include/unicode/ucnv_err.h:88,
from /usr/include/unicode/ucnv.h:51,
from /usr/include/libxml2/libxml/encoding.h:31,
from /usr/include/libxml2/libxml/parser.h:812,
from castget.c:32:
/usr/include/id3/globals.h:87:13: error: two or more data types in declaration specifiers
87 | typedef int bool;
| ^~~~
make[2]: *** [Makefile:472: castget.o] Error 1
make[2]: Leaving directory '/tmp/castget-rel_2_0_0/src'
make[1]: *** [Makefile:554: all-recursive] Error 1
make[1]: Leaving directory '/tmp/castget-rel_2_0_0'
make: *** [Makefile:400: all] Error 2
In case you are still stuck with this, I think that this is the same as #47, which was fixed by replacing id3 with taglib: 6ad0c9d. No releases have happened since, but master has the fix, so you should be able to check that out and build from there.
If for whatever reason you want to stay on 2.0.0, you could try passing --disable-id3lib
when invoking configure
. I have not tried this out, but in theory it should avoid this issue.