On Thursday 28 December 2006 22:47, [EMAIL PROTECTED] wrote: > I have attempted to install two versions of bacula (client only), on FC6, > and get the following errors with "make":
> > make[1]: Leaving directory `/root/bacula-1.38.11/src/filed' > ==>Entering directory /root/bacula-1.38.11/src/console > make[1]: Entering directory `/root/bacula-1.38.11/src/console' > /usr/bin/g++ -c -I. -I.. -g -O2 -Wall console.c > console.c:78: 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:705: 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:784: error: assignment of function âint tee(int, int, size_t, > unsigned int)â > console.c:784: 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:791: error: assignment of function âint tee(int, int, size_t, > unsigned int)â > console.c:791: 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:809: error: assignment of function âint tee(int, int, size_t, > unsigned int)â > console.c:809: 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:893: warning: the address of âint tee(int, int, size_t, unsigned > int)â, will always evaluate as âtrueâ > console.c:896: 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]: Leaving directory `/root/bacula-1.38.11/src/console' > This occurs because some genious decided to declare a function named tee() in the system libraries in FC6. Solutions: 1. Change every occurrence of tee in src/console/console.c to teeout. 2. Upgrade to version 1.39.32 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users