Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 2009 17:13:36 -0400
From:      Jorge Medina <jorge@bsdchile.cl>
To:        freebsd-ports@freebsd.org
Subject:   Re: mail/postfix-current error: conflicting types for 'closefrom'
Message-ID:  <28d0e6b80907271413q792b4be5n101ae9e62294573d@mail.gmail.com>
In-Reply-To: <28d0e6b80907271346w55892affv4bd5dd732a79233d@mail.gmail.com>
References:  <28d0e6b80907271346w55892affv4bd5dd732a79233d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 27, 2009 at 4:46 PM, Jorge Medina<jorge@bsdchile.cl> wrote:
> FYI
> set -e; for i in src/util src/global src/dns src/tls src/xsasl
> src/milter src/master =A0src/postfix src/fsstone src/smtpstone
> src/sendmail src/error src/pickup src/cleanup src/smtpd src/local
> src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce =A0src/pipe
> src/showq src/postalias src/postcat src/postconf src/postdrop
> src/postkick src/postlock src/postlog src/postmap src/postqueue
> src/postsuper src/qmqpd src/spawn src/flush src/verify =A0src/virtual
> src/proxymap src/anvil src/scache src/discard src/tlsmgr
> src/postmulti; do =A0(set -e; echo "[$i]"; cd $i; make 'CC=3Dcc -DHAS_PCR=
E
> -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=3D\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include
> -DSNAPSHOT' update MAKELEVEL=3D) || exit 1; =A0done
> [src/util]
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=3D\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
> =A0-O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c alldig.c
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=3D\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
> =A0-O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c allprint.c
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=3D\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
> =A0-O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c argv.c
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=3D\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
> =A0-O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c argv_split.c
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=3D\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
> =A0-O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c attr_clnt.c
> In file included from attr_clnt.c:77:
> /usr/include/unistd.h:329: error: conflicting types for 'closefrom'
> ./sys_defs.h:1395: error: previous declaration of 'closefrom' was here
> *** Error code 1
>
>
> I change int closefrom(int) to void closefrom(int) like
> /usr/include/unistd.h:329 in sys_defs.h and sys_defs.c and work ok
>
more information
root@mail% uname -a
FreeBSD mail.jp.cl 7.2-STABLE FreeBSD 7.2-STABLE #0: Mon Jul 27
15:01:32 CLT 2009     mnothic@mail.jp.cl:/usr/obj/usr/src/sys/GENERIC
amd64

maybe the problem is in the line 329  of /usr/include/unistd.h
because had a type conflict with __void closefrom(int);__ after update
from source tree

--=20
Jorge Andr=E9s Medina Oliva.
System Manager & BSD Software Advocacy Leader
From: http://www.bsdchile.cl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28d0e6b80907271413q792b4be5n101ae9e62294573d>