Sandbox-1.3.4 and 1.3.5 both fail to build on gentoo-freebsd 'environ' undeclared (first use in this function) Reproducible: Always Steps to Reproduce: 1.emerge sandbox 2. 3. Actual Results: *** Warning: Linking the shared library libsandbox.la against the *** static library ../libsbutil/.libs/libsbutil.a is not portable! libtool: link: i686-gentoo-freebsd7.1-gcc -shared .libs/libsandbox_la-libsandbox.o .libs/libsandbox_la-memory.o .libs/libsandbox_la-wrappers.o .libs/libsandbox_la-canonicalize.o ../libsbutil/.libs/libsbutil.a -mtune=i686 -Wl,--version-script -Wl,libsandbox.map -Wl,--as-needed -Wl,--gc-sections -Wl,-soname -Wl,libsandbox.so -o .libs/libsandbox.so libtool: link: ( cd ".libs" && rm -f "libsandbox.la" && ln -s "../libsandbox.la" "libsandbox.la" ) gmake[2]: Leaving directory `/var/tmp/portage/sys-apps/sandbox-1.3.5/work/build-default/libsandbox' Making all in src gmake[2]: Entering directory `/var/tmp/portage/sys-apps/sandbox-1.3.5/work/build-default/src' i686-gentoo-freebsd7.1-gcc -DHAVE_CONFIG_H -I. -I../../sandbox-1.3.5/src -I.. -I../../sandbox-1.3.5 -I../../sandbox-1.3.5/libsbutil -I../../sandbox-1.3.5/libsbutil/include -DETCDIR="\"/etc\"" -DLIBSANDBOX_PATH="\"/usr/lib\"" -DSANDBOX_BASHRC_PATH="\"/usr/share/sandbox\"" -DPIC -fPIC -D_REENTRANT -O2 -mtune=i686 -pipe -Wall -fdata-sections -ffunction-sections -MT environ.o -MD -MP -MF .deps/environ.Tpo -c -o environ.o ../../sandbox-1.3.5/src/environ.c ../../sandbox-1.3.5/src/environ.c: In function 'setup_environ': ../../sandbox-1.3.5/src/environ.c:310: error: 'environ' undeclared (first use in this function) ../../sandbox-1.3.5/src/environ.c:310: error: (Each undeclared identifier is reported only once ../../sandbox-1.3.5/src/environ.c:310: error: for each function it appears in.) gmake[2]: *** [environ.o] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/sys-apps/sandbox-1.3.5/work/build-default/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/sys-apps/sandbox-1.3.5/work/build-default' gmake: *** [all] Error 2 Portage 2.2_rc23 (default/bsd/fbsd/x86/7.1, gcc-4.3.3, freebsd-lib-7.1-r2, 7.1-RELEASE i386) ================================================================= System uname: FreeBSD-7.1-RELEASE-i386-32bit-ELF Timestamp of tree: Mon, 09 Feb 2009 15:30:01 +0000 app-shells/bash: 3.2_p48-r1 dev-lang/python: 2.5.4-r2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.2 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.10.2 sys-devel/binutils: 2.19.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 7.1-r2 ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd" CBUILD="i686-gentoo-freebsd7.1" CFLAGS="-O2 -mtune=i686 -pipe" CHOST="i686-gentoo-freebsd7.1" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -mtune=i686 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--ask --keep-going" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo" LDFLAGS="" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 bash-completion berkdb cli cracklib crypt cups dri gd gdbm geoip gif hardenedphp iconv ipv6 java5 java6 jpeg ldap mailwrapper midi mysql ncurses nls nptlonly openldap oss pam pcre pear perl php pic png ppds python readline reflection sasl2 session spl ssh ssl tcpd truetype unicode vhosts x86-fbsd xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_userautoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include infolog_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="BSD" VIDEO_CARDS="nv nvidia vesa" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
fixed in git http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=86b8059f3484b9a67a5e5ae1a46fc5b1b3c0efae
Still fails on 1.3.7. HAVE_DECL_ENVIRON gets defined, to 0: [generated config.h]: /* Define to 1 if you have the declaration of `environ', and to 0 if you don't. */ #define HAVE_DECL_ENVIRON 0 And two other undefined references showed up: ../../sandbox-1.3.7/src/sandbox.c: In function 'main': ../../sandbox-1.3.7/src/sandbox.c:320: error: 'sighandler_t' undeclared (first use in this function) ../../sandbox-1.3.7/src/sandbox.c:320: error: (Each undeclared identifier is reported only once ../../sandbox-1.3.7/src/sandbox.c:320: error: for each function it appears in.) ../../sandbox-1.3.7/src/sandbox.c:320: error: expected ';' before '_old' ../../sandbox-1.3.7/src/sandbox.c:320: error: '_old' undeclared (first use in this function) ../../sandbox-1.3.7/src/sandbox.c:321: error: expected ';' before '_old' ../../sandbox-1.3.7/src/sandbox.c:322: error: expected ';' before '_old'
lame http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=22057035f812a717be2a90e9b63ae7df2952089d