Great Circle Associates Majordomo-Users
(June 1995)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Still error compiling bulk_mailer
From: Sergey Plyaskin <splyaski @ fluke . cmp . com>
Date: Mon, 12 Jun 1995 16:30:18 +0000 ()
To: charnier @ lirmm . fr (Philippe Charnier)
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

> 
> 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.

Indexed By Date Previous: allowing not subscribers to post to a closed list?
From: "John A. LaCour III" <jal@mcs.com>
Next: Solution for MD on AIX: fix W_UID/W_GID in Makefile
From: gilligan@helena.phy.vanderbilt.edu (Jonathan M. Gilligan)
Indexed By Thread Previous: Re: Still error compiling bulk_mailer
From: Sergey Plyaskin <splyaski@fluke.cmp.com>
Next: Problem with MD on AIX..perhaps a Perl prob
From: David Wall <wall@hsb.baylor.edu>

Google
 
Search Internet Search www.greatcircle.com