Originally posted by: SystemAdmin
> gcc -g -O2 -Wall -Werror -DHAVE_CONFIG_H -I.././
> -I../charset/ -I../windows/
> -I../unix/ -I../mac/ -I../macosx/ -c ../misc.c
> ../misc.c: In function `dupvprintf':
> ../misc.c:240: warning: implicit declaration of
> function `vsnprintf'
> make: ***
http://misc.o Error 1
FYI, it turns out that in two of the source files there is a problem with finding the appropriate prototype for a pair of related functions. On my system, the stdio.h file has these prototypes but for some reason there is a failure during compilation. Ray's suggestion, manually put the prototype directly in the source file, worked for me. I had these two files with these two prototypes:
misc.c and vsnprintf
uxnet.c and snprintf
In both cases I copied the prototype for each function right out of the header file (in /usr/include/stdio.h) and pasted it into the source file. I chose to put the prototype in the source file immediately following all of the preprocessor directives. Like Ray said, there could very well be some #ifdef weirdness taking place.
Thanks to all of those who offered suggestions on this issue.
-MC
#AIX-Forum