I ran into this after upgrading openssl and working to recompile dependent ports.
It appears to be very similar to the previously resolved ports/136599: [PATCH] mail/postfix patch for closefrom() in 8.0
On a freebsd-update-ed version of 7.4, with the currents ports tree (portsnap) over the last couple days, the compile fails with
The following are set in make config:
I've tried it in both the host machine (i386), as well as in jails, including a "fresh" jail (shown above) and it fails in the same way in all cases.
It succeeds on FreeBSD 9 (amd64)
Is anyone else seeing this? Any suggestions for resolution?
It appears to be very similar to the previously resolved ports/136599: [PATCH] mail/postfix patch for closefrom() in 8.0
On a freebsd-update-ed version of 7.4, with the currents ports tree (portsnap) over the last couple days, the compile fails with
Code:
cc -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"/usr/local/share/doc/postfix\" -DDEF_HTML_DIR=\"/usr/local/share/doc/postfix\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include -DHAVE_NS_TYPE -DHAS_SPF -I/usr/local/include -O2 -fno-strict-aliasing -pipe -I. -DFREEBSD7 -c attr_print64.c
In file included from attr_clnt.c:77:
/usr/include/unistd.h:329: error: conflicting types for 'closefrom'
./sys_defs.h:1495: error: previous declaration of 'closefrom' was here
In file included from ./vstream.h:22,
from attr_print0.c:96:
/usr/include/unistd.h:329: error: conflicting types for 'closefrom'
./sys_defs.h:1495: error: previous declaration of 'closefrom' was here
*** Error code 1
*** Error code 1
In file included from ./vstream.h:22,
from attr_print64.c:96:
/usr/include/unistd.h:329: error: conflicting types for 'closefrom'
./sys_defs.h:1495: error: previous declaration of 'closefrom' was here
- PCRE
- DOVECOT2
- TLS
- TEST
- SPF
Code:
[root@test-compile /usr/ports/mail/postfix]# cat /var/db/ports/postfix/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for postfix-2.9.1,1
_OPTIONS_READ=postfix-2.9.1,1
WITH_PCRE=true
WITHOUT_SASL2=true
WITHOUT_DOVECOT=true
WITH_DOVECOT2=true
WITHOUT_SASLKRB5=true
WITHOUT_SASLKMIT=true
WITH_TLS=true
WITHOUT_BDB=true
WITHOUT_MYSQL=true
WITHOUT_PGSQL=true
WITHOUT_SQLITE=true
WITHOUT_OPENLDAP=true
WITHOUT_LDAP_SASL=true
WITHOUT_CDB=true
WITHOUT_NIS=true
WITHOUT_VDA=true
WITH_TEST=true
WITH_SPF=true
WITHOUT_INST_BASE=true
Code:
[root@test-compile /usr/ports/mail/postfix]# uname -a
FreeBSD test-compile 7.4-RELEASE-p3 FreeBSD 7.4-RELEASE-p3 #0: Tue Sep 27 14:47:23 UTC 2011 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
I've tried it in both the host machine (i386), as well as in jails, including a "fresh" jail (shown above) and it fails in the same way in all cases.
It succeeds on FreeBSD 9 (amd64)
Code:
[jeff@port3 /usr/ports/mail/postfix]$ uname -a
FreeBSD port3.pn.wagsky.com 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Apr 16 23:48:11 PDT 2012 root@port3.pn.wagsky.com:/usr/obj/usr/src/sys/VIMAGE amd64
Is anyone else seeing this? Any suggestions for resolution?