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

next in thread | raw e-mail | index | archive | help
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=3Dcc -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' update MAKELEVEL=3D) || exit 1;  done
[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
 -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
 -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
 -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
 -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
 -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


--=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?28d0e6b80907271346w55892affv4bd5dd732a79233d>