Bug #6388 | Make fails because 'bzero' undeclared | ||
---|---|---|---|
Submitted: | 2 Nov 2004 15:56 | Modified: | 31 Jul 2005 21:51 |
Reporter: | Sasa Ivanovic | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 4.1.7 | OS: | Other (QNX Neutrinos 6.3.0) |
Assigned to: | CPU Architecture: | Any |
[2 Nov 2004 15:56]
Sasa Ivanovic
[3 Nov 2004 7:39]
Sasa Ivanovic
FYI: I could avoid the compiler errors by adding a macro to config.h which calls __builtin_bzero instead of bzero. But I'm not sure if this is the right solution and works fine. Regards, Sasa
[17 Dec 2004 23:36]
Georg Schwarz
I'm seeing the same problem (also tried 4.1.7) or IRIX 5.3 where bzero() is defined in bstring.h. I added #ifdef NEEDS_BSTRING_H // defines bzero() #include <bstring.h> #endif to client/mysql.cc and client/completion_hash.cc, then added -DNEEDS_BSTRING_H to CFLAGS. Would of course be nice if that was detected automatically by configure.
[31 Jul 2005 21:51]
Jorge del Conde
I was unable to reproduce this problem in our QNX server. Also, mysqldev@buildqnx2:~/jorge> cat t.c #include <stdio.h> void main() { char *x; bzero((char *)x, 10); } mysqldev@buildqnx2:~/jorge> make t cc t.c -o t t.c: In function `main': t.c:6: warning: return type of `main' is not `int' mysqldev@buildqnx2:~/jorge>