Date: Wed, 10 Apr 2013 16:38:40 GMT From: Fabian Wenk <fabian@wenks.ch> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/177758: amavisd-milter does not build on FreeBSD 9.1 Message-ID: <201304101638.r3AGceE9057790@red.freebsd.org> Resent-Message-ID: <201304101640.r3AGe1A9073128@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 177758 >Category: ports >Synopsis: amavisd-milter does not build on FreeBSD 9.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 10 16:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Fabian Wenk >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: FreeBSD batman.home4u.ch 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #0 r248931: Sat Mar 30 18:07:14 CET 2013 root@batman.home4u.ch:/usr/obj/usr/src/sys/BATMAN amd64 >Description: After the upgrade from FreeBSD 7.4 to 9.1 during the rebuild of all installed Ports it failed with amavisd-milter. Even a manual 'make clean' and 'make' in /usr/ports/security/amavisd-milter/ still fails (currently with Ports Revision: 315761, 08-Apr-2013). All other Ports could be rebuild without problems. As a workaround I took the binary package from ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/security/amavisd-milter-1.5.0_2.tbz (on 01-Apr-2013, now this file has disappeared). I had to tweak the perl version to perl-5.12.4_5 in the +CONTENTS, but then I could install it with pkg_add and it is working. As it seems, this amavisd-milter-1.5.0_2.tbz packages was built on FreeBSD 9.0: root@batman:~ # file /usr/local/sbin/amavisd-milter /usr/local/sbin/amavisd-milter: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 9.0 (900044), stripped Here the complete output from the build on FreeBSD 9.1 amd64: root@batman:/usr/ports/security/amavisd-milter # make clean ===> Cleaning for amavisd-milter-1.5.0_2 root@batman:/usr/ports/security/amavisd-milter # make ===> Fetching all distfiles required by amavisd-milter-1.5.0_2 for building ===> Extracting for amavisd-milter-1.5.0_2 => SHA256 Checksum OK for amavisd-milter-1.5.0.tar.gz. ===> Patching for amavisd-milter-1.5.0_2 ===> Configuring for amavisd-milter-1.5.0_2 checking build system type... amd64-portbld-freebsd9.1 checking host system type... amd64-portbld-freebsd9.1 checking target system type... amd64-portbld-freebsd9.1 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether make sets $(MAKE)... (cached) yes checking for ranlib... ranlib checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of cc... gcc3 checking whether cc understands -c and -o together... yes checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... -D_THREAD_SAFE checking whether to check for GCC pthread/shared inconsistencies... yes checking whether -pthread is sufficient with -shared... yes checking for sem_timedwait... yes checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for mode_t... yes checking for size_t... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for d_namlen in struct dirent... yes checking for ANSI C header files... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking sysexits.h usability... yes checking sysexits.h presence... yes checking for sysexits.h... yes checking for unistd.h... (cached) yes checking for sem_init in -lrt... yes checking if POSIX semaphores are working... yes checking fts.h usability... yes checking fts.h presence... yes checking for fts.h... yes checking for arc4random... yes checking for daemon... yes checking for fts_open... yes checking for mkdtemp... yes checking for strlcpy... yes checking for inet_ntop... yes checking for dirent.h that defines DIR... (cached) yes checking for library containing opendir... (cached) none required checking for DIR.d_fd... no checking for DIR.dd_fd... yes checking for DIR.__dd_fd... no checking for dirfd... no checking whether dirfd is a macro... yes checking for inet_aton... yes checking for socket... yes checking for gethostbyname... yes checking if ld accepts --rpath... yes checking for sendmail install directory... default checking libmilter/mfapi.h usability... yes checking libmilter/mfapi.h presence... yes checking for libmilter/mfapi.h... yes checking for smfi_main in -lmilter... yes checking if files required by libmilter are present... yes checking for smfi_insheader... yes checking for smfi_opensocket... yes checking for smfi_progress... yes checking for smfi_quarantine... yes checking for smfi_setbacklog... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for EILSEQ... yes checking for EOVERFLOW... yes checking whether AF_INET6 is declared... yes checking whether INET6_ADDRSTRLEN is declared... yes checking for struct sockaddr_in6... yes configure: creating ./config.status config.status: creating Makefile config.status: creating amavisd-milter/Makefile config.status: creating compat/Makefile config.status: creating autoconf.sh config.status: creating config.h config.status: executing depfiles commands ===> Building for amavisd-milter-1.5.0_2 make all-recursive Making all in compat cc -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE -pthread -MT read_sock.o -MD -MP -MF .deps/read_sock.Tpo -c -o read_sock.o read_sock.c mv -f .deps/read_sock.Tpo .deps/read_sock.Po cc -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE -pthread -MT write_sock.o -MD -MP -MF .deps/write_sock.Tpo -c -o write_sock.o write_sock.c mv -f .deps/write_sock.Tpo .deps/write_sock.Po rm -f libcompat.a ar cru libcompat.a read_sock.o write_sock.o ranlib libcompat.a Making all in amavisd-milter cc -DHAVE_CONFIG_H -I. -I.. -I../compat -O2 -DNDEBUG -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE -pthread -MT amavisd_milter-amavisd.o -MD -MP -MF .deps/amavisd_milter-amavisd.Tpo -c -o amavisd_milter-amavisd.o `test -f 'amavisd.c' || echo './'`amavisd.c mv -f .deps/amavisd_milter-amavisd.Tpo .deps/amavisd_milter-amavisd.Po cc -DHAVE_CONFIG_H -I. -I.. -I../compat -O2 -DNDEBUG -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE -pthread -MT amavisd_milter-log.o -MD -MP -MF .deps/amavisd_milter-log.Tpo -c -o amavisd_milter-log.o `test -f 'log.c' || echo './'`log.c mv -f .deps/amavisd_milter-log.Tpo .deps/amavisd_milter-log.Po cc -DHAVE_CONFIG_H -I. -I.. -I../compat -O2 -DNDEBUG -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE -pthread -MT amavisd_milter-main.o -MD -MP -MF .deps/amavisd_milter-main.Tpo -c -o amavisd_milter-main.o `test -f 'main.c' || echo './'`main.c main.c: In function 'main': main.c:360: warning: passing argument 1 of 'smfi_setconn' discards qualifiers from pointer target type main.c:398: error: 'false' undeclared (first use in this function) main.c:398: error: (Each undeclared identifier is reported only once main.c:398: error: for each function it appears in.) *** [amavisd_milter-main.o] Error code 1 1 error *** [all-recursive] Error code 1 1 error *** [all] Error code 2 1 error *** [do-build] Error code 1 Stop in /usr/ports/security/amavisd-milter. root@batman:/usr/ports/security/amavisd-milter # >How-To-Repeat: Install / upgrade to FreeBSD 9.1 and run the following steps: cd /usr/ports/security/amavisd-milter/ make clean make >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304101638.r3AGceE9057790>