First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 178608
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 153189
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Andreas Gerstenberg <andy+gentoo@nxdomain.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
bacula-1.36.3-console-rename-variable-tee.patch Patch to rename variable "tee" in console.c patch Andreas Gerstenberg 2007-05-15 08:11 0000 1.60 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 178608 depends on: Show dependency tree
Bug 178608 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-15 08:04 0000
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 From Andreas Gerstenberg 2007-05-15 08:11:48 0000 -------
Created an attachment (id=119335) [details]
Patch to rename variable "tee" in console.c

------- Comment #2 From Jakub Moc (RETIRED) 2007-05-15 08:15:03 0000 -------
No point in fixing anything for 1.x, those versions are fubared.


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

First Last Prev Next    No search results available      Search page      Enter new bug