As reported in bug#161500, bconsole is missing after emerging. This is also true for bacula-1.36.3-r2.ebuild. The problem is a name collision with "tee" in glibc-2.5's /usr/include/bits/fcntl.h and bacula's src/console/console.c. Compiling will continue, even this error occurred. Fix is easy, just rename the variable "tee" in bacula's src/console/console.c Patch is applied for this problem. ----------------------------------------------------------------------------- ==>Entering directory /var/tmp/portage/app-backup/bacula-1.36.3-r2/work/bacula-1.36.3/src/console make[1]: Entering directory `/var/tmp/portage/app-backup/bacula-1.36.3-r2/work/bacula-1.36.3/src/console' i686-pc-linux-gnu-g++ -c -I. -I.. -O2 -march=pentium4 -pipe -fomit-frame-pointer console.c i686-pc-linux-gnu-g++ -c -I. -I.. -O2 -march=pentium4 -pipe -fomit-frame-pointer console_conf.c i686-pc-linux-gnu-g++ -c -I. -I.. -O2 -march=pentium4 -pipe -fomit-frame-pointer authenticate.c console.c:82: error: 'bool tee' redeclared as different kind of symbol /usr/include/bits/fcntl.h:233: error: previous declaration of 'int tee(int, int, size_t, unsigned int)' console.c: In function 'int get_cmd(FILE*, const char*, BSOCK*, int)': console.c:574: warning: the address of 'int tee(int, int, size_t, unsigned int)', will always evaluate as 'true' console.c: In function 'int teecmd(FILE*, BSOCK*)': console.c:644: error: assignment of function 'int tee(int, int, size_t, unsigned int)' console.c:644: error: cannot convert 'bool' to 'int ()(int, int, size_t, unsigned int)throw ()' in assignment console.c: In function 'int outputcmd(FILE*, BSOCK*)': console.c:651: error: assignment of function 'int tee(int, int, size_t, unsigned int)' console.c:651: error: cannot convert 'bool' to 'int ()(int, int, size_t, unsigned int)throw ()' in assignment console.c: In function 'int do_outputcmd(FILE*, BSOCK*)': console.c:669: error: assignment of function 'int tee(int, int, size_t, unsigned int)' console.c:669: error: cannot convert 'bool' to 'int ()(int, int, size_t, unsigned int)throw ()' in assignment console.c: In function 'void sendit(const char*)': console.c:752: warning: the address of 'int tee(int, int, size_t, unsigned int)', will always evaluate as 'true' console.c:755: warning: the address of 'int tee(int, int, size_t, unsigned int)', will always evaluate as 'true' make[1]: *** [console.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/app-backup/bacula-1.36.3-r2/work/bacula-1.36.3/src/console'
Created attachment 119335 [details, diff] Patch to rename variable "tee" in console.c
No point in fixing anything for 1.x, those versions are fubared. *** This bug has been marked as a duplicate of bug 153189 ***