Again :+). Two failures this time. First one, sandbox tries to link against libdl due to "sandbox_LDADD" in src/Makefile.am -- To fix: -sandbox_LDADD = $(top_builddir)/libsbutil/libsbutil.la -ldl +sandbox_LDADD = $(top_builddir)/libsbutil/libsbutil.la $(LIBDL) Second one, *another* non-existing strndup case: /bin/sh ../libtool --tag=CC --mode=link i686-gentoo-freebsd7.1-gcc -O2 -march=k8 -pipe -Wall -o sandbox environ.o sandbox.o ../libsbutil/libsbutil.la -lc libtool: link: i686-gentoo-freebsd7.1-gcc -O2 -march=k8 -pipe -Wall -o sandbox environ.o sandbox.o ../libsbutil/.libs/libsbutil.a ../libsbutil/.libs/libsbutil.a(sb_memory.o): In function `__xstrndup': sb_memory.c:(.text+0x28): undefined reference to `strndup' collect2: ld returned 1 exit status gmake[2]: *** [sandbox] Error 1 The configure script already checks for strndup, so this one could be fixed easily I guess. However, since I'll probably backport strndup anyway, take the 2nd one as FYI only, I'll be dropping keyword on this version for now if that's ok.
the strndup failure has always been there in 1.3.x, it just wasnt a hard failure before because undefined references in shared libraries were ignored. in other words, i doubt sandbox-1.3.x has ever been usable for you. i was able to eliminate all but one strndup() instances (since most were stupid: calling strnlen() by using strlen()). i imagine if you guys wanted, you could scrub that one last instance with a simple xmalloc/memcpy ... the libdl things was obvious, sorry about that: http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=25ec463eb4ba49c2c82ad0e7e82ed48799be4f4d
(In reply to comment #1) > the strndup failure has always been there in 1.3.x, it just wasnt a hard > failure before because undefined references in shared libraries were ignored. > in other words, i doubt sandbox-1.3.x has ever been usable for you. > Weird, sandbox 1.3.2 was working fine for me. Played with it under sandboxshell and it even barks on net-misc/rsync-3.0.5 ./configure step when the mknod/FIFOs tests are done (why it doesn't barks on linux?). > i was able to eliminate all but one strndup() instances (since most were > stupid: calling strnlen() by using strlen()). i imagine if you guys wanted, > you could scrub that one last instance with a simple xmalloc/memcpy ... > Nevermind, adding strndup was easier/fast enough. > the libdl things was obvious, sorry about that: > http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=25ec463eb4ba49c2c82ad0e7e82ed48799be4f4d > Thanks. I dropped keywords on sandbox 1.3.3, close this one when 1.3.4 goes in.
blah, i got bored and just implemented it http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=a16c2b178f6cd5591fd11f8497d2e570d81e9b06
LOL, want another bug (mknod FIFO one on rsync configure)?
yes, new bug please