From owner-freebsd-ports@FreeBSD.ORG Mon Jul 27 21:07:22 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 923B4106566B for ; Mon, 27 Jul 2009 21:07:22 +0000 (UTC) (envelope-from jorge@bsdchile.cl) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 5989B8FC1A for ; Mon, 27 Jul 2009 21:07:22 +0000 (UTC) (envelope-from jorge@bsdchile.cl) Received: by an-out-0708.google.com with SMTP id d14so1758320and.13 for ; Mon, 27 Jul 2009 14:07:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.13.201 with SMTP id d9mr2269096iba.35.1248727561601; Mon, 27 Jul 2009 13:46:01 -0700 (PDT) Date: Mon, 27 Jul 2009 16:46:01 -0400 Message-ID: <28d0e6b80907271346w55892affv4bd5dd732a79233d@mail.gmail.com> From: Jorge Medina To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: mail/postfix-current error: conflicting types for 'closefrom' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 21:07:22 -0000 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