suggested fix (non-snprintf-having machines)
rra at stanford.edu
Sun May 16 19:44:59 UTC 2004
Lincoln DeCoursey <decourl at cs.sunyit.edu> writes:
> I was able to correct a compilation error by replacing some code.
> When attempting to build INN 2.4.1 on HP-UX 10.20 using gcc 2.95.2,
> I received the following error:
> gcc -g -O2 -I../include -c setproctitle.c
> In file included from setproctitle.c:16:
> ../include/clibrary.h:110: wrong number of arguments specified for
> gmake: *** [setproctitle.o] Error 1
> gmake: Leaving directory `/usr/local/news/temp/inn-2.4.1/lib'
> gmake: *** [all-lib] Error 2
> Take a look at include/clibrary.h at line 109:
> #if NEED_DECLARATION_SNPRINTF
> extern int snprintf(char *, size_t, const char *, ...)
> __attribute__((__format__(3, 4)));
The syntax was wrong for the __format__ attribute (which is for GCC error
checking). Fixed in CVS, will be fixed in INN 2.4.1.
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-bugs