Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: Re: [gentoo-alt] Any interest in sandbox on (open)solaris?
Date: Sun, 18 Jan 2009 09:28:48
Message-Id: 20090118092840.GA1300@gentoo.org
In Reply to: Re: [gentoo-alt] Any interest in sandbox on (open)solaris? by "C. Bergström"
1 On 17-01-2009 23:28:36 +0100, "C. Bergström" wrote:
2 > So.. it finally came up on my TODO list again and I got sandbox to
3 > compile on open Solaris..
4
5 Cool!
6
7 > These are not correct, but should give some idea of what I needed to do
8 > to get it to build..
9 >
10 > econf --disable-static 'LIBS=-lmagic' || die
11 >
12 > -----------
13 > --- libsandbox/Makefile.in.old 2009-01-18 11:51:04.304407327 -0800
14 > +++ libsandbox/Makefile.in 2009-01-18 11:38:09.852318831 -0800
15 > @@ -59,7 +59,7 @@
16 > libsandbox_la_OBJECTS = $(am_libsandbox_la_OBJECTS)
17 > libsandbox_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
18 > $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsandbox_la_CFLAGS) \
19 > - $(CFLAGS) $(libsandbox_la_LDFLAGS) $(LDFLAGS) -o $@
20 > + $(CFLAGS) $(libsandbox_la_LDFLAGS) -M libsandbox.map $(LDFLAGS)
21 > -o $@
22 > DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
23 > depcomp = $(SHELL) $(top_srcdir)/depcomp
24 > am__depfiles_maybe = depfiles
25 > @@ -210,8 +210,8 @@
26 > # and destructor will not be executed ...
27 > libsandbox_la_LDFLAGS = \
28 > -no-undefined \
29 > - -nodefaultlibs \
30 > - -Wl,--version-script,libsandbox.map
31 > + -nodefaultlibs
32
33 This looks like a Sun Studio fix/change, is that right?
34
35 > libsandbox_la_SOURCES = \
36 > libsandbox.h \
37 > ----------------
38 >
39 > --- configure.old 2009-01-18 09:03:01.286581347 -0800
40 > +++ configure 2009-01-18 09:04:39.534604306 -0800
41 > @@ -23460,6 +23460,7 @@
42 > LIBC_PATH=$(
43 > $AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 ==
44 > "succeeded")) LIBC = $4; }; END {print LIBC}' libctest.log
45 > )
46 > +LIBC_PATH=/lib/amd64/libc.so
47
48 I guess this needs some branching. Betther use /lib/64/libc.so as well,
49 that includes the sparcv9 one.
50
51 > rm -f libctest*
52 > if test x"$LIBC_PATH" = x || ! test -r "$LIBC_PATH" ; then
53 > { { $as_echo "$as_me:$LINENO: error: Unable to determine LIBC PATH
54 > ($LIBC_PATH)" >&5
55 > @@ -23478,7 +23479,7 @@
56 > { $as_echo "$as_me:$LINENO: checking libc version" >&5
57 > $as_echo_n "checking libc version... " >&6; }
58 > echo "int main(void) { return 0; }" > libctest.c
59 > -$CC $CFLAGS $CPPFLAGS $LDFLAGS -Wall -o libctest libctest.c
60 > +$CC $CFLAGS $CPPFLAGS $LDFLAGS -o libctest libctest.c
61
62 Is it the compiler not liking -Wall, or you? ;)
63
64 > LIBC_VERSION=$(
65 > $READELF -d libctest | \
66 > grep NEEDED.*libc\\.so | \
67 > @@ -23557,7 +23558,7 @@
68 >
69 > CPPFLAGS="$CPPFLAGS -D_REENTRANT"
70 > if test "$GCC" = yes; then
71 > - CFLAGS="$CFLAGS -Wall"
72 > + CFLAGS="$CFLAGS "
73 > fi
74 >
75 > ac_config_commands="$ac_config_commands tests/atconfig"
76 >
77 >
78
79 --
80 Fabian Groffen
81 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] Any interest in sandbox on (open)solaris? "C. Bergström" <cbergstrom@×××××××××.com>
Re: [gentoo-alt] Any interest in sandbox on (open)solaris? "C. Bergström" <cbergstrom@×××××××××.com>