Gentoo Archives: gentoo-alt

From: Mike Frysinger <vapier@g.o>
To: "C. Bergström" <cbergstrom@×××××××××.com>
Cc: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Any interest in sandbox on (open)solaris?
Date: Thu, 29 Jan 2009 16:30:57
In Reply to: Re: [gentoo-alt] Any interest in sandbox on (open)solaris? by "C. Bergström"
On Thursday 29 January 2009 04:03:11 C. Bergström wrote:
> --- libsandbox/memory.c.old 2009-01-29 07:28:47.312601827 -0800 > +++ libsandbox/memory.c 2009-01-29 07:30:55.834594791 -0800 > +#define MIN(x, y) ((x) < (y) ? (x) : (y))
fixed in a different way
> --- libsbutil/get_tmp_dir.c.old 2009-01-29 07:08:59.114359101 -0800 > +++ libsbutil/get_tmp_dir.c 2009-01-29 07:09:31.921878506 -0800 > - if (NULL == realpath(getenv(ENV_TMPDIR) ? : TMPDIR, path)) > + if (NULL == realpath(getenv(ENV_TMPDIR) ? getenv(ENV_TMPDIR) : > TMPDIR, path))
does the compiler not support the shortcut form: x ? : y where if x evaluates to true, it is automatically returned due to the empty true case ?
> I have some missing symbols and end up adding 'LIBS=-lmagic' Which I > think is causing further problems..
what symbols ?
> (Not sure this is correct and then ultimately causing the error below, > but fixed a similar problem)
looks like a multilib issue with libtool not knowing about your system, or your toolchain searches things wrong. either way, not much i can do about it in sandbox.
> The error regarding > > > install: fatal: open failed: No such file or > > directory > > is 99.9% because I'm missing the 32bit
well it validates my statement that multilib with non-standard paths is currently broken. not entirely sure how to address it since the sandbox binary itself is not multilib.
> sun cc flat out dies with -Wall. -v iirc is the equivalent and if it's > turned on by default that's fine, but something that can be > disabled/overridden would be great..
i think it's broken then that it was detected as GCC, but whatever. ive switched to using a macro from autoconf-archive that detects the compiler and uses the proper warning flag. -mike