Date: Mon, 12 Jun 1995 16:30:18 +0000 () From: Sergey Plyaskin <splyaski@fluke.cmp.com> To: charnier@lirmm.fr (Philippe Charnier) Cc: questions@freebsd.org, majordomo-users@greatcircle.com Subject: Re: Still error compiling bulk_mailer Message-ID: <199506121630.QAA04854@fluke.cmp.com> In-Reply-To: <199506121710.TAA21850@lirmm.lirmm.fr> from "Philippe Charnier" at Jun 12, 95 07:10:45 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506121630.QAA04854>