1 |
On Thursday 29 January 2009 04:03:11 C. Bergström wrote: |
2 |
> --- libsandbox/memory.c.old 2009-01-29 07:28:47.312601827 -0800 |
3 |
> +++ libsandbox/memory.c 2009-01-29 07:30:55.834594791 -0800 |
4 |
> +#define MIN(x, y) ((x) < (y) ? (x) : (y)) |
5 |
|
6 |
fixed in a different way |
7 |
|
8 |
> --- libsbutil/get_tmp_dir.c.old 2009-01-29 07:08:59.114359101 -0800 |
9 |
> +++ libsbutil/get_tmp_dir.c 2009-01-29 07:09:31.921878506 -0800 |
10 |
> - if (NULL == realpath(getenv(ENV_TMPDIR) ? : TMPDIR, path)) |
11 |
> + if (NULL == realpath(getenv(ENV_TMPDIR) ? getenv(ENV_TMPDIR) : |
12 |
> TMPDIR, path)) |
13 |
|
14 |
does the compiler not support the shortcut form: |
15 |
x ? : y |
16 |
where if x evaluates to true, it is automatically returned due to the empty |
17 |
true case ? |
18 |
|
19 |
> I have some missing symbols and end up adding 'LIBS=-lmagic' Which I |
20 |
> think is causing further problems.. |
21 |
|
22 |
what symbols ? |
23 |
|
24 |
> (Not sure this is correct and then ultimately causing the error below, |
25 |
> but fixed a similar problem) |
26 |
|
27 |
looks like a multilib issue with libtool not knowing about your system, or |
28 |
your toolchain searches things wrong. either way, not much i can do about it |
29 |
in sandbox. |
30 |
|
31 |
> The error regarding |
32 |
> |
33 |
> > ld.so.1: install: fatal: libsandbox.so: open failed: No such file or |
34 |
> > directory |
35 |
> |
36 |
> is 99.9% because I'm missing the 32bit libsandbox.so.. |
37 |
|
38 |
well it validates my statement that multilib with non-standard paths is |
39 |
currently broken. not entirely sure how to address it since the sandbox |
40 |
binary itself is not multilib. |
41 |
|
42 |
> sun cc flat out dies with -Wall. -v iirc is the equivalent and if it's |
43 |
> turned on by default that's fine, but something that can be |
44 |
> disabled/overridden would be great.. |
45 |
|
46 |
i think it's broken then that it was detected as GCC, but whatever. ive |
47 |
switched to using a macro from autoconf-archive that detects the compiler and |
48 |
uses the proper warning flag. |
49 |
-mike |