[Mono-list] mono 1.1.4 and solaris x86 (RESOLVED)

Jonel Rienton jonel@road14.com
Sat, 19 Feb 2005 14:08:45 -0600

Hash: SHA1

Thanks Paul for all the help and pointers, the man page for getpwuid_r 
et al helped a lot!

jonel@blue:~> uname -a
SunOS blue 5.10 s10_69 i86pc i386 i86pc
jonel@blue:~> mcs --version
Mono C# compiler version
jonel@blue:~> mono --version
Mono JIT compiler version 1.1.4, (C) 2002-2004 Novell, Inc and 
Contributors. www.go-mono.com
         TLS:           normal
         GC:            Included Boehm (with typed GC)
         SIGSEGV      : normal
         Globalization: none
jonel@blue:~> mono hello.exe
Hello Solaris!

[1] I'll be posting on my blog the steps I did in installing Mono in a 
Solaris x86 box. I  have also requested some tweak to the devel-list 
regarding some flags for building in Solaris x86

Man I've been trying for so long to get this build to work and it 
finally did. Thanks!


- -----
Jonel Rienton
Software Developer, *nix Advocate
On Feb 19, 2005, at 12:40 PM, Paul wrote:

> Hi,
>> i've managed to get rid of the previous error below, and I hit another
>> wall:
>> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono
>> - -I../../libgc/include -I/opt/csw/include/glib-2.0
>> - -I/opt/csw/lib/glib-2.0/include -I/opt/csw/include/glib-2.0
>> - -I/opt/csw/lib/glib-2.0/include -DMONO_ASSEMBLIES=\"/usr/local/lib\"
>> - -DMONO_CFG_DIR=\"/usr/local/etc\" -DGC_SOLARIS_THREADS
>> -O2
>> - -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes
>> - -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes
>> - -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align
>> - -Wwrite-strings -Wno-char-subscripts -MT security.lo -MD -MP -MF
>> .deps/security.Tpo -c security.c  -fPIC -DPIC -o .libs/security.o
>> security.c: In function `GetTokenName':
>> security.c:139: error: too many arguments to function `getpwuid_r'
> In the source I have here (and checking man getpwuid_r), there are 5
> parameters expected and 5 supplied. Same applies to the next error.
> By the looks of it, something on your system is getting confused. Check
> whereever you have gcc installed what pwd.h has in there for the
> functions being moaned at. Do you have two versions of gcc on your box
> (or one which has been removed, but something left behind)?
> Paul
> -- 
> "I like blinking me" - Helen, Big Brother 2 contestant

Version: PGP 8.1