Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: Re: Any interest in sandbox on (open)solaris?
Date: Sun, 18 Jan 2009 10:28:40 +0100
On 17-01-2009 23:28:36 +0100, "C. Bergström" wrote:
> So.. it finally came up on my TODO list again and I got sandbox to 
> compile on open Solaris..

Cool!

> These are not correct, but should give some idea of what I needed to do 
> to get it to build..
> 
> econf --disable-static 'LIBS=-lmagic' || die
> 
> -----------
> --- libsandbox/Makefile.in.old  2009-01-18 11:51:04.304407327 -0800
> +++ libsandbox/Makefile.in      2009-01-18 11:38:09.852318831 -0800
> @@ -59,7 +59,7 @@
>  libsandbox_la_OBJECTS = $(am_libsandbox_la_OBJECTS)
>  libsandbox_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
>         $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsandbox_la_CFLAGS) \
> -       $(CFLAGS) $(libsandbox_la_LDFLAGS) $(LDFLAGS) -o $@
> +       $(CFLAGS) $(libsandbox_la_LDFLAGS) -M libsandbox.map $(LDFLAGS) 
> -o $@
>  DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
>  depcomp = $(SHELL) $(top_srcdir)/depcomp
>  am__depfiles_maybe = depfiles
> @@ -210,8 +210,8 @@
>  # and destructor will not be executed ...
>  libsandbox_la_LDFLAGS = \
>         -no-undefined \
> -       -nodefaultlibs \
> -       -Wl,--version-script,libsandbox.map
> +       -nodefaultlibs

This looks like a Sun Studio fix/change, is that right?

>  libsandbox_la_SOURCES = \
>         libsandbox.h \
> ----------------
> 
> --- configure.old       2009-01-18 09:03:01.286581347 -0800
> +++ configure   2009-01-18 09:04:39.534604306 -0800
> @@ -23460,6 +23460,7 @@
>  LIBC_PATH=$(
>         $AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 == 
> "succeeded")) LIBC = $4; }; END {print LIBC}' libctest.log
>  )
> +LIBC_PATH=/lib/amd64/libc.so

I guess this needs some branching.  Betther use /lib/64/libc.so as well,
that includes the sparcv9 one.

>  rm -f libctest*
>  if test x"$LIBC_PATH" = x || ! test -r "$LIBC_PATH" ; then
>    { { $as_echo "$as_me:$LINENO: error: Unable to determine LIBC PATH 
> ($LIBC_PATH)" >&5
> @@ -23478,7 +23479,7 @@
>  { $as_echo "$as_me:$LINENO: checking libc version" >&5
>  $as_echo_n "checking libc version... " >&6; }
>  echo "int main(void) { return 0; }" > libctest.c
> -$CC $CFLAGS $CPPFLAGS $LDFLAGS -Wall -o libctest libctest.c
> +$CC $CFLAGS $CPPFLAGS $LDFLAGS  -o libctest libctest.c

Is it the compiler not liking -Wall, or you? ;)

>  LIBC_VERSION=$(
>         $READELF -d libctest | \
>         grep NEEDED.*libc\\.so | \
> @@ -23557,7 +23558,7 @@
> 
>  CPPFLAGS="$CPPFLAGS -D_REENTRANT"
>  if test "$GCC" = yes; then
> -       CFLAGS="$CFLAGS -Wall"
> +       CFLAGS="$CFLAGS "
>  fi
> 
>  ac_config_commands="$ac_config_commands tests/atconfig"
> 
> 

-- 
Fabian Groffen
Gentoo on a different level


Replies:
Re: Any interest in sandbox on (open)solaris?
-- C. Bergström
Re: Any interest in sandbox on (open)solaris?
-- C. Bergström
References:
Any interest in sandbox on (open)solaris?
-- C. Bergström
Re: Any interest in sandbox on (open)solaris?
-- C. Bergström
Re: Any interest in sandbox on (open)solaris?
-- Mike Frysinger
Re: Any interest in sandbox on (open)solaris?
-- Mike Frysinger
Re: Any interest in sandbox on (open)solaris?
-- C. Bergström
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Any interest in sandbox on (open)solaris?
Next by thread:
Re: Any interest in sandbox on (open)solaris?
Previous by date:
Re: Any interest in sandbox on (open)solaris?
Next by date:
Re: Any interest in sandbox on (open)solaris?


Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.