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, Mike Frysinger <vapier@g.o>
From: "C. Bergström" <cbergstrom@...>
Subject: Re: Any interest in sandbox on (open)solaris?
Date: Thu, 29 Jan 2009 01:01:07 +0100
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!
>   
It builds.. it runs.. and now trying to get it to run correctly..  
(forgive the verbose post please)  I've been building everything as 
64bit.. and wonder if I need a 32bit libsandbox.so as well?  (I need to 
fix scanelf as it's been broken, but that wouldn't account for why rm 
gave the same error)

Small note.. this seems to be needed..
SANDBOX_WRITE="/dev/fd:/proc/self/fd:/dev/dtrace/helper"

Thanks

./Christopher


Logs..
------------------

pmerge -1 tail
WARNING: non-root builds disabled.
 
 * Resolving...
Processing 1 of 1: sys-cmds/tail-1
WARNING: atom doesn't have a proper Manifest
WARNING: Source is missing checksum
ld.so.1: rm: fatal: libsandbox.so: open failed: No such file or directory
/usr/lib/python2.5/site-packages/pkgcore/bin/ebuild-env/ebuild-default-functions.sh: line 309: 20270 Killed                  rm -rf "${D}"
mkdir: cannot create directory `/var/tmp/portage/sys-cmds/tail-1/image/': File exists
 
>>> Install tail-1 into /var/tmp/portage/sys-cmds/tail-1/image/ category sys-cmds
ld.so.1: install: fatal: libsandbox.so: open failed: No such file or directory
/usr/lib/python2.5/site-packages/pkgcore/bin/ebuild-helpers/dobin: line 12: 20273 Killed                  install -d "${D}${DESTTREE}/bin"
ld.so.1: scanelf: fatal: libsandbox.so: open failed: No such file or directory
ld.so.1: scanelf: fatal: libsandbox.so: open failed: No such file or directory
ld.so.1: scanelf: fatal: libsandbox.so: open failed: No such file or directory
ld.so.1: scanelf: fatal: libsandbox.so: open failed: No such file or directory
ld.so.1: scanelf: fatal: libsandbox.so: open failed: No such file or directory
ld.so.1: scanelf: fatal: libsandbox.so: open failed: No such file or directory
ld.so.1: scanelf: fatal: libsandbox.so: open failed: No such file or directory
ld.so.1: scanelf: fatal: libsandbox.so: open failed: No such file or directory
>>> Completed installing tail-1 into /var/tmp/portage/sys-cmds/tail-1/image/
 
 
>>> Reinstalling sys-cmds/tail-1
info: installing built ebuild: sys-cmds/tail-1 to <pkgcore.binpkg.repository.tree object at 0xcc6c50>
<<< file:/usr/bin/tail
--------------
finished


So started making a multilib ebuild for it and hit a bit of 32bit 
uncleanness I think.. (I've not looked exactly why.. almost certainly my 
fault..)

"wrapper-funcs/__wrapper_simple.c", line 21: syntax error before or at: __off64_t
"wrapper-funcs/__wrapper_simple.c", line 21: warning: undefined or missing type for: __off64_t


------

/opt/SUNWspro/prod/bin/cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libsbutil -I../libsbutil/include "-DETCDIR=\"/usr/etc\"" "-DLIBSANDBOX_PATH=\"/usr/lib\"" "-DSANDBOX_BASHRC_PATH=\"/usr/share/sandbox\"" -DPIC -fPIC -D_REENTRANT -fexceptions -i -xO4 -xspace -xstrconst -Kpic -fast -xregs=no%frameptr -c wrappers.c  -KPIC -DPIC -o .libs/libsandbox_la-wrappers.o
cc: Warning: illegal option -fexceptions
"../libsbutil/sbutil.h", line 101: warning: attribute parameter "__printf__" is undefined
"../libsbutil/sbutil.h", line 102: warning: attribute parameter "__printf__" is undefined
"../libsbutil/sbutil.h", line 103: warning: attribute parameter "__printf__" is undefined
"../libsbutil/sbutil.h", line 104: warning: attribute parameter "__printf__" is undefined
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, unsigned long) returning int "=" pointer to void
"symbols.h", line 30: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, unsigned int, unsigned int) returning int "=" pointer to void
"symbols.h", line 57: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(int, pointer to const char, unsigned int, unsigned int, int) returning int "=" pointer to void
"symbols.h", line 83: warning: syntax error:  empty declaration
"wrapper-funcs/openat.c", line 47: warning: assignment type mismatch:
        pointer to function(pointer to const char, int, ...) returning int "=" pointer to void
"symbols.h", line 109: warning: syntax error:  empty declaration
"wrapper-funcs/openat.c", line 47: warning: assignment type mismatch:
        pointer to function(int, pointer to const char, int, ...) returning int "=" pointer to void
"symbols.h", line 135: warning: syntax error:  empty declaration
"wrapper-funcs/creat.c", line 23: warning: assignment type mismatch:
        pointer to function(pointer to const char, int, ...) returning int "=" pointer to void
"symbols.h", line 161: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, pointer to const char) returning pointer to struct __FILE {int _cnt, pointer to unsigned char _ptr, pointer to unsigned char _base, unsigned char _flag, unsigned char _magic, unsigned int __orientation :2, unsigned int __ionolock :1, unsigned int __seekable :1, unsigned int __extendedfd :1, unsigned int __xf_nocheck :1, unsigned int __filler :10} "=" pointer to void
"symbols.h", line 187: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, unsigned int, unsigned int) returning int "=" pointer to void
"symbols.h", line 213: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, pointer to const char) returning int "=" pointer to void
"symbols.h", line 239: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, unsigned long) returning int "=" pointer to void
"symbols.h", line 266: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char) returning pointer to struct  {int dd_fd, int dd_loc, int dd_size, pointer to char dd_buf} "=" pointer to void
"symbols.h", line 293: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, unsigned long, unsigned long) returning int "=" pointer to void
"symbols.h", line 319: warning: mknod is defined, attribute "alias" ignored
"symbols.h", line 319: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, unsigned long) returning int "=" pointer to void
"symbols.h", line 347: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, int) returning int "=" pointer to void
"symbols.h", line 374: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, pointer to const char) returning int "=" pointer to void
"symbols.h", line 401: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(int, pointer to const char, int, pointer to const char) returning int "=" pointer to void
"symbols.h", line 427: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char) returning int "=" pointer to void
"symbols.h", line 453: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, pointer to const char) returning int "=" pointer to void
"symbols.h", line 479: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, long) returning int "=" pointer to void
"symbols.h", line 506: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char) returning int "=" pointer to void
"symbols.h", line 532: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(int, pointer to const char, int) returning int "=" pointer to void
"symbols.h", line 558: warning: syntax error:  empty declaration
"wrapper-funcs/getcwd.c", line 26: warning: assignment type mismatch:
        pointer to function(pointer to char, unsigned int) returning pointer to char "=" pointer to void
"symbols.h", line 584: warning: syntax error:  empty declaration
"wrapper-funcs/openat.c", line 47: warning: assignment type mismatch:
        pointer to function(pointer to const char, int, ...) returning int "=" pointer to void
"symbols.h", line 610: warning: syntax error:  empty declaration
"wrapper-funcs/openat.c", line 47: warning: assignment type mismatch:
        pointer to function(int, pointer to const char, int, ...) returning int "=" pointer to void
"symbols.h", line 636: warning: syntax error:  empty declaration
"wrapper-funcs/creat64.c", line 23: warning: assignment type mismatch:
        pointer to function(pointer to const char, int, ...) returning int "=" pointer to void
"symbols.h", line 662: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, pointer to const char) returning pointer to struct __FILE {int _cnt, pointer to unsigned char _ptr, pointer to unsigned char _base, unsigned char _flag, unsigned char _magic, unsigned int __orientation :2, unsigned int __ionolock :1, unsigned int __seekable :1, unsigned int __extendedfd :1, unsigned int __xf_nocheck :1, unsigned int __filler :10} "=" pointer to void
"symbols.h", line 688: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 21: syntax error before or at: __off64_t
"wrapper-funcs/__wrapper_simple.c", line 21: warning: undefined or missing type for: __off64_t
"wrapper-funcs/__wrapper_simple.c", line 22: syntax error before or at: __off64_t
"wrapper-funcs/__wrapper_simple.c", line 22: warning: undefined or missing type for: __off64_t
"wrapper-funcs/__wrapper_simple.c", line 24: syntax error before or at: __off64_t
"wrapper-funcs/__wrapper_simple.c", line 24: warning: undefined or missing type for: __off64_t
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function() returning int "=" pointer to void
"wrapper-funcs/__wrapper_simple.c", line 32: undefined symbol: length
"symbols.h", line 714: warning: identifier redeclared: truncate64
        current : function() returning int
        previous: function(pointer to const char, long long) returning int : "/usr/include/unistd.h", line 572
"symbols.h", line 714: warning: syntax error:  empty declaration
"wrapper-funcs/execve.c", line 30: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"wrapper-funcs/execve.c", line 63: warning: argument #1 is incompatible with prototype:
        prototype: pointer to char : "/usr/include/sys/mman.h", line 238
        argument : pointer to unsigned char
"wrapper-funcs/execve.c", line 123: warning: assignment type mismatch:
        pointer to function(pointer to const char, pointer to const pointer to char, pointer to const pointer to char) returning int "=" pointer to void
"symbols.h", line 740: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, pointer to const struct utimbuf {long actime, long modtime}) returning int "=" pointer to void
"symbols.h", line 766: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(pointer to const char, pointer to const struct timeval {long tv_sec, long tv_usec}) returning int "=" pointer to void
"symbols.h", line 792: warning: syntax error:  empty declaration
"wrapper-funcs/__wrapper_simple.c", line 31: warning: assignment type mismatch:
        pointer to function(int, pointer to const char, pointer to const struct timeval {long tv_sec, long tv_usec}) returning int "=" pointer to void
"symbols.h", line 819: warning: syntax error:  empty declaration
"wrappers.c", line 90: warning: assignment type mismatch:
        pointer to function(pointer to const char, int, ...) returning int "=" pointer to void
"wrappers.c", line 102: warning: assignment type mismatch:
        pointer to function(pointer to char, unsigned int) returning pointer to char "=" pointer to void
cc: acomp failed for wrappers.c




Replies:
Re: Any interest in sandbox on (open)solaris?
-- Mike Frysinger
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: Any interest in sandbox on (open)solaris?
Next by thread:
Re: Any interest in sandbox on (open)solaris?
Previous by date:
Re: moving shared libs
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.