Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Dec 2015 20:57:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 205074] sysutils/relaunchd: fails to compile on FreeBSD 9
Message-ID:  <bug-205074-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205074

            Bug ID: 205074
           Summary: sysutils/relaunchd: fails to compile on FreeBSD 9
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: mark@heily.com

There is a new upstream version of relaunchd that fixes a compilation failure
on FreeBSD 9. Please update the port to the latest version (v0.3.1) found here:

https://github.com/mheily/relaunchd/tree/ports/FreeBSD

See below for the details of the failure:

====>> Building sysutils/relaunchd
build started at Sun Dec  6 04:40:43 UTC 2015
port directory: /usr/ports/sysutils/relaunchd
building for: FreeBSD 93i386-default-job-19 9.3-RELEASE-p30 FreeBSD
9.3-RELEASE-p30 i386
maintained by: mark@heily.com
Makefile ident:      $FreeBSD: head/sysutils/relaunchd/Makefile 402986
2015-12-04 13:36:28Z kmoore $
Poudriere version: 3.1.10
Host OSVERSION: 1100085
Jail OSVERSION: 903000

---Begin Environment---
SHELL=/bin/csh
UNAME_p=i386
UNAME_m=i386
OSVERSION=903000
UNAME_v=FreeBSD 9.3-RELEASE-p30
UNAME_r=9.3-RELEASE-p30
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
SAVED_TERM=
MASTERMNT=/usr/local/poudriere/data/.m/93i386-default/ref
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
PKGNAME=relaunchd-0.3.0
OLDPWD=/
PWD=/usr/local/poudriere/data/.m/93i386-default/ref/.p/pool
MASTERNAME=93i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
USER=root
HOME=/root
POUDRIERE_VERSION=3.1.10
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
LIBEXECPREFIX=/usr/local/libexec/poudriere
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
---End Environment---

---Begin OPTIONS List---
---End OPTIONS List---

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/sysutils/relaunchd/work 
XDG_CONFIG_HOME=/wrkdirs/usr/ports/sysutils/relaunchd/work 
HOME=/wrkdirs/usr/ports/sysutils/relaunchd/work TMPDIR="/tmp" SHELL=/bin/sh
CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/sysutils/relaunchd/work 
XDG_CONFIG_HOME=/wrkdirs/usr/ports/sysutils/relaunchd/work 
HOME=/wrkdirs/usr/ports/sysutils/relaunchd/work TMPDIR="/tmp" NO_PIE=yes
SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local 
LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe -fno-strict-aliasing"  CPP="cpp"
CPPFLAGS=""  LDFLAGS="" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe
-fno-strict-aliasing"  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s
-m 555"  BSD_INSTALL_LIB="install  -s -m 444"  BSD_INSTALL_SCRIPT="install  -m
555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
OSREL=9.3
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
PORTDOCS=""
PORTEXAMPLES=""
LIB32DIR=lib
DOCSDIR="share/doc/relaunchd"
EXAMPLESDIR="share/examples/relaunchd"
DATADIR="share/relaunchd"
WWWDIR="www/relaunchd"
ETCDIR="etc/relaunchd"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/relaunchd
DOCSDIR=/usr/local/share/doc/relaunchd
EXAMPLESDIR=/usr/local/share/examples/relaunchd
WWWDIR=/usr/local/www/relaunchd
ETCDIR=/usr/local/etc/relaunchd
--End SUB_LIST--

---Begin make.conf---
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
#### /usr/local/etc/poudriere.d/make.conf ####
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
=======================<phase: check-sanity   >============================
===>  License ISCL accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   relaunchd-0.3.0 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.6.2.txz
[93i386-default-job-19] Installing pkg-1.6.2...
[93i386-default-job-19] Extracting pkg-1.6.2: .......... done
Message from pkg-1.6.2:
If you are upgrading from the old package format, first run:

  # pkg2ng
===>   relaunchd-0.3.0 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of relaunchd-0.3.0
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License ISCL accepted by the user
=> mheily-relaunchd-v0.3.0_GH0.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch
https://codeload.github.com/mheily/relaunchd/tar.gz/v0.3.0?dummy=/mheily-relaunchd-v0.3.0_GH0.tar.gz
fetch:
https://codeload.github.com/mheily/relaunchd/tar.gz/v0.3.0?dummy=/mheily-relaunchd-v0.3.0_GH0.tar.gz:
size unknown
fetch:
https://codeload.github.com/mheily/relaunchd/tar.gz/v0.3.0?dummy=/mheily-relaunchd-v0.3.0_GH0.tar.gz:
size of remote file is not known
mheily-relaunchd-v0.3.0_GH0.tar.gz                      -1  B    0  Bps
===> Fetching all distfiles required by relaunchd-0.3.0 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License ISCL accepted by the user
===> Fetching all distfiles required by relaunchd-0.3.0 for building
=> SHA256 Checksum OK for mheily-relaunchd-v0.3.0_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License ISCL accepted by the user
===> Fetching all distfiles required by relaunchd-0.3.0 for building
===>  Extracting for relaunchd-0.3.0
=> SHA256 Checksum OK for mheily-relaunchd-v0.3.0_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for relaunchd-0.3.0
===========================================================================
=======================<phase: build-depends  >============================
===========================================================================
=======================<phase: lib-depends    >============================
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for relaunchd-0.3.0
===========================================================================
=======================<phase: build          >============================
===>  Building for relaunchd-0.3.0
echo "/* Automatically generated -- do not edit */" > config.h
printf '#define HAVE_SYS_LIMITS_H ' >> config.h
echo '#include <sys/limits.h>' | cc -O2 -pipe -fno-strict-aliasing  -x c -c -
2>/dev/null;  echo "$? == 0" | bc >> config.h
test -d /var/db && statedir=/var/db/launchd || statedir=/var/lib/launchd ; 
echo "#define PKGSTATEDIR \"$statedir\"" >> config.h
cc -include config.h -O2 -pipe -fno-strict-aliasing   -o launchd job.c log.c
launchd.c manager.c manifest.c socket.c  jsmn/jsmn.c timer.c pidfile.c flopen.c
In file included from manifest.h:24,
                 from job.h:26,
                 from job.c:30:
cvec.h: In function 'cvec_dup':
cvec.h:130: error: 'for' loop initial declaration used outside C99 mode
In file included from manifest.h:24,
                 from job.h:26,
                 from manager.h:20,
                 from launchd.c:36:
cvec.h: In function 'cvec_dup':
cvec.h:130: error: 'for' loop initial declaration used outside C99 mode
In file included from manifest.h:24,
                 from job.h:26,
                 from manager.c:26:
cvec.h: In function 'cvec_dup':
cvec.h:130: error: 'for' loop initial declaration used outside C99 mode
In file included from manifest.h:24,
                 from manifest.c:18:
cvec.h: In function 'cvec_dup':
cvec.h:130: error: 'for' loop initial declaration used outside C99 mode
In file included from manifest.h:24,
                 from job.h:26,
                 from socket.c:25:
cvec.h: In function 'cvec_dup':
cvec.h:130: error: 'for' loop initial declaration used outside C99 mode
socket.c: In function 'job_manifest_socket_open':
socket.c:77: error: 'SOCK_CLOEXEC' undeclared (first use in this function)
socket.c:77: error: (Each undeclared identifier is reported only once
socket.c:77: error: for each function it appears in.)
In file included from manifest.h:24,
                 from job.h:26,
                 from manager.h:20,
                 from timer.c:29:
cvec.h: In function 'cvec_dup':
cvec.h:130: error: 'for' loop initial declaration used outside C99 mode
*** [launchd] Error code 1

Stop in /wrkdirs/usr/ports/sysutils/relaunchd/work/relaunchd-0.3.0.
*** [do-build] Error code 1

Stop in /usr/ports/sysutils/relaunchd.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205074-13>