mail/postfix-current error: conflicting types for 'closefrom'

Jorge Medina jorge at bsdchile.cl
Mon Jul 27 21:13:38 UTC 2009


On Mon, Jul 27, 2009 at 4:46 PM, Jorge Medina<jorge at bsdchile.cl> wrote:
> FYI
> set -e; for i in src/util src/global src/dns src/tls src/xsasl
> src/milter src/master  src/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  src/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  src/virtual
> src/proxymap src/anvil src/scache src/discard src/tlsmgr
> src/postmulti; do  (set -e; echo "[$i]"; cd $i; make 'CC=cc -DHAS_PCRE
> -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include
> -DSNAPSHOT' update MAKELEVEL=) || exit 1;  done
> [src/util]
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
>  -O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c alldig.c
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
>  -O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c allprint.c
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
>  -O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c argv.c
> cc -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
>  -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=\"dovecot\" -DUSE_TLS -I/usr/include
> -DHAS_PGSQL -I/usr/local/include -I/usr/local/pgsql/include -DSNAPSHOT
>  -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 at mail% uname -a
FreeBSD mail.jp.cl 7.2-STABLE FreeBSD 7.2-STABLE #0: Mon Jul 27
15:01:32 CLT 2009     mnothic at 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

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


More information about the freebsd-ports mailing list