>
> Salut,
>
> In the message Still error compiling bulk_mailer,
> Sergey Plyaskin <splyaski@fluke.cmp.com> wrote :
>
>
> >I'm trying to compile bulk_mailer on my FreeBSD 2.0-950412 system.
> >I've got the source from cs.utk.edu so no errors anymore :-)
> >Here's what I get:
> >
> ># make
> >cc -c bulk_mailer.c
> >bulk_mailer.c:71: conflicting types for `sys_errlist'
> >/usr/include/stdio.h:244: previous declaration of `sys_errlist'
> >bulk_mailer.c:208: warning: static declaration for `strdup' follows non-static
> >*** Error code 1
> >
>
> The dirty thing is to remove the declaration of sys_errlist in bulk_mailer.c.
> The correct one can be found in paragraph 0.2 of /usr/ports/GUIDELINES.
>
> Add -D_HAVE_PARAM_H to the CFLAGS in the Makefile.
>
> #ifdef _HAVE_PARAM_H
> #include <sys/param.h>
> #endif
> #include <stdio.h>
>
> [...]
>
> #if (defined(BSD) && (BSD >= 199306))
> /* nothing to do */
> #else
> declaration of sys_errlist
> #endif
>
> -------- --------
> Philippe Charnier charnier@lirmm.fr
>
Thanks, Philippe
Now it compiles ok, although I still get the warning
# make
cc -g -c -DHASSTRDUP -DHASSTRERROR '-DDEFAULT_DOMAIN="fluke.cmp.com"' -D_HAVE_PA
RAM_H bulk_mailer.c
bulk_mailer.c:222: warning: static declaration for `strdup' follows non-static
cc -g -o bulk_mailer bulk_mailer.o
#
I have not tested it yet.
-Serge.
|
|