The getalbum example does not compile. The error is because numDates is defined right where it is used. The patch included defined numDates at the beginning of the file. Patch will be submitted to upstream. Reproducible: Always Steps to Reproduce: 1. emerge musicbrainz 2.1.1 (or even 2.1.0) Actual Results: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -march=i686 -O2 -pipe -Wall -c getalbum.c getalbum.c: In function `main': getalbum.c:144: parse error before `int' getalbum.c:145: `numDates' undeclared (first use in this function) getalbum.c:145: (Each undeclared identifier is reported only once getalbum.c:145: for each function it appears in.) make[2]: *** [getalbum.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/musicbrainz-2.1.1/work/libmusicbrainz-2.1.1' make: *** [all] Error 2 Expected Results: Using gcc 2.95.3 and libc 2.2.5, dunno if this is the problem.
Created attachment 38121 [details, diff] Patches musicbrainz source file example/getalbum.c to define numDates at beginning of file instead of where it is used
Created attachment 38122 [details, diff] new ebuld that applies patch
As I just noticed, this was already fixed by upstream. From their cvs: getalbum.c 1.11 3 months robert Fixed a C++ vs C issue
fixed in portage