Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178608 - app-backup/bacula-1.36.3-r2 failes to compile, bconsole missing
Summary: app-backup/bacula-1.36.3-r2 failes to compile, bconsole missing
Status: RESOLVED DUPLICATE of bug 153189
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 08:04 UTC by Andreas Gerstenberg
Modified: 2007-05-15 08:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to rename variable "tee" in console.c (bacula-1.36.3-console-rename-variable-tee.patch,1.60 KB, patch)
2007-05-15 08:11 UTC, Andreas Gerstenberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Gerstenberg 2007-05-15 08:04:56 UTC
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'
Comment 1 Andreas Gerstenberg 2007-05-15 08:11:48 UTC
Created attachment 119335 [details, diff]
Patch to rename variable "tee" in console.c
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-05-15 08:15:03 UTC
No point in fixing anything for 1.x, those versions are fubared.


*** This bug has been marked as a duplicate of bug 153189 ***