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: "C. Bergström" <cbergstrom@...>
Subject: Re: Any interest in sandbox on (open)solaris?
Date: Sun, 18 Jan 2009 11:10:07 +0100
Hi..

Responses inline

Fabian Groffen wrote:
> 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!
>   
I concur :)
>   
>> 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?
>   
the -M is needed for the mapfile and it didn't seem to like 
"--version-script".. I wasn't sure how/if possible to put -Wl,-M 
libsandbox.map
>   
>>  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.
>   
Makes sense..

The problem with this is how to pass on the configure line.. I should 
try passing with ./configure directly.. that would solve the multilib 
problem as well.. otherwise would require sed..
>   
>>  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? ;)
>   
Compiler.. If you'd like the build to die rather quickly we could swap 
it for -v (which I think is sun cc equivalent)

If you think any of these changes could be fudged into place.. let me know..


./C



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
Re: Re: Any interest in sandbox on (open)solaris?
-- Fabian Groffen
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Any interest in sandbox on (open)solaris?
Next by thread:
Re: Any interest in sandbox on (open)solaris?
Previous by date:
Re: Re: Any interest in sandbox on (open)solaris?
Next by date:
RE: RE: emake shell


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.