From: Sowa, B. (N. - PL/Wroclaw) <bar...@ns...> - 2010-02-25 16:15:38
|
Hello, I have tried to build moosefs master 1.6.13 on Solaris 10 (sparc) machine. I have hit some problems I cannot resolve, maybe you can help me a little... The installed SW stack is as follows: standard Solaris 10 box with CSW environment: CSWbinutils 2.19.1,REV=2009.02.21 CSWcommon 1.4.6,REV=2008.04.28 CSWgcc3 3.4.5 CSWgcc3core 3.4.5 CSWgcc3corert 3.4.5,REV=2009.11.23 CSWgcc3g++ 3.4.5 CSWgcc3g++rt 3.4.5,REV=2009.11.23 CSWgcc3rt 3.4.5 CSWgcc4 4.3.4,REV=2009.09.17 CSWgcc4corert 4.3.4,REV=2009.09.17 CSWgcc4g++rt 4.3.4,REV=2009.11.23 CSWgmake 3.81,REV=2010.02.08 CSWlibpthreadstubs 0.1,REV=2008.11.16 I tried to compile it under gcc3 (PATH=/opt/csw/gcc3/bin:/opt/csw/gnu/bin:/opt/csw/bin:/usr/atria/bin:/op t/csw/bin:/usr/sbin:/usr/bin:/usr/sfw/bin) # which make /opt/csw/bin/make # which gcc /opt/csw/gcc3/bin/gcc [# which ar /opt/csw/gnu/bin/ar so the toolchain seems to be complete. The problem is following: make[2]: Entering directory `/root/moose/mfs-1.6.13/mfsmaster' gcc -DHAVE_CONFIG_H -I. -I.. -std=c99 -I../mfscommon -DAPPNAME=mfsmaster -D_GNU_SOURCE -g -O2 -W -Wall -Wshadow -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o `test -f '../mfscommon/main.c' || echo './'`../mfscommon/main.c ../mfscommon/main.c: In function `set_signal_handlers': ../mfscommon/main.c:377: error: storage size of 'sa' isn't known ../mfscommon/main.c:380: error: `SA_RESTART' undeclared (first use in this function) ../mfscommon/main.c:380: error: (Each undeclared identifier is reported only once ../mfscommon/main.c:380: error: for each function it appears in.) ../mfscommon/main.c:381: warning: implicit declaration of function `sigemptyset' ../mfscommon/main.c:385: warning: implicit declaration of function `sigaction' ../mfscommon/main.c:377: warning: unused variable `sa' ../mfscommon/main.c: In function `errno_to_str': ../mfscommon/main.c:403: warning: implicit declaration of function `strerror_r' ../mfscommon/main.c: In function `wdlock': ../mfscommon/main.c:525: warning: implicit declaration of function `kill' ../mfscommon/main.c: In function `makedaemon': ../mfscommon/main.c:739: warning: implicit declaration of function `fdopen' ../mfscommon/main.c:739: warning: assignment makes pointer from integer without a cast ../mfscommon/main.c: In function `main': ../mfscommon/main.c:831: warning: implicit declaration of function `strdup' ../mfscommon/main.c:831: warning: assignment makes pointer from integer without a cast ../mfscommon/main.c:838: warning: implicit declaration of function `getopt' ../mfscommon/main.c:853: error: `optarg' undeclared (first use in this function) ../mfscommon/main.c:857: warning: assignment makes pointer from integer without a cast ../mfscommon/main.c:867: error: `optind' undeclared (first use in this function) ../mfscommon/main.c:870: warning: implicit declaration of function `strcasecmp' ../mfscommon/main.c:926: error: `RLIMIT_MEMLOCK' undeclared (first use in this function) ../mfscommon/main.c:950: warning: assignment makes pointer from integer without a cast make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/root/moose/mfs-1.6.13/mfsmaster' make[1]: *** [all-recursive] Error 1 When trying to build with gcc4 I get an error, that pthreads library cannot be found on configure level. I have googled a bit and checked sources about this and it seems to me that it can have something with signal.h to do. I found another signal.h in /usr/ucbinclude/signal.h and /usr/ucbinclude/sys/signal.h. CFLAGS="-I ..." does not help much either. My question is - is it possible to build moosefs 1.6.13 on this solaris box? If yes, then what is the toolchain recommendation for it? Ps. you guys did a great job - congratulations! I was looking a long time until I found this filesystem and it is even more than I actually needed :) Best Regards, Bartlomiej Sowa |