From owner-freebsd-questions Mon Jun 12 13:33:18 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA20228 for questions-outgoing; Mon, 12 Jun 1995 13:33:18 -0700 Received: from fluke.cmp.com ([198.80.26.75]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id NAA20214 for ; Mon, 12 Jun 1995 13:33:11 -0700 Received: (from splyaski@localhost) by fluke.cmp.com (8.6.11/8.6.9) id QAA04854; Mon, 12 Jun 1995 16:30:19 GMT From: Sergey Plyaskin Message-Id: <199506121630.QAA04854@fluke.cmp.com> Subject: Re: Still error compiling bulk_mailer To: charnier@lirmm.fr (Philippe Charnier) Date: Mon, 12 Jun 1995 16:30:18 +0000 () Cc: questions@freebsd.org, majordomo-users@greatcircle.com In-Reply-To: <199506121710.TAA21850@lirmm.lirmm.fr> from "Philippe Charnier" at Jun 12, 95 07:10:45 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1492 Sender: questions-owner@freebsd.org Precedence: bulk > > Salut, > > In the message Still error compiling bulk_mailer, > Sergey Plyaskin 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 > #endif > #include > > [...] > > #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.