[Spread-users] Serious compiling problem on Solaris 10x86

Luc I. Suryo luc.suryo at cabelas.com
Tue May 30 10:05:00 EDT 2006


> > I'm trying to build the source, but there are errors:
> > 
> > # cd spread-src-3.17.3
> > # ./configure
> > creating cache ./config.cache
> > checking host system type... i386-pc-solaris2.10
> > checking for gcc... no
> > checking for cc... cc
> > checking whether the C compiler (cc  ) works... yes
> > checking whether we are using GNU C... no
> > 
> > # make
> 
> > cc -g -I. -I.   -DHAVE_CONFIG_H -c memory.c
> > "memory.c", line 136: reference to static identifier
> > "Mem_Bytes_Allocated" in extern inline function
> > "memory.c", line 140: reference to static identifier
> > "Mem_Obj_Inuse" in extern inline function
> 
> I don't know what the official list of supported compilers is, but you'll
> almost certainly have better luck using GCC.  Either that, or figure out if
> there are some options to Sun's cc to make it behave more like gcc (and add
> them to $CFLAGS).
> 

there is 2 thing you could do
	1. use gcc that come with Sol-10 (/usr/sfw/bin/gcc)
	or
	2. hack the code and remove inline's

I do realize that option #2 is a bit nasty but some of the 'gcc' based
coding break when you using strick posix.. btw i used Sun's Studio 11

nb: if you compile with gcc do a 'ldd' to the binary to see what
libraries it depends.. sometime it will need gcc libgcc_s and/or
libstd++ in case you planning to copy/install the binaries on a other
system and therefore you need to be sure you have the these libraries
installed as well..


hope this might help a bit..

-ls




More information about the Spread-users mailing list