Hello...  [Laughing] 

As said in the topic, I'm currently actively trying to make ZenOSS working on a 
Solaris 10 sparc platform.

As I'm not a native english speaking people, I'll do my best to be understood, 
but if you have any problem understanding what I write, don't hesitate to ask 
more details...

So... I've download sources on the download page, with the link "Solaris 10" 
and I'm now trying to make it work.

I've encountered some problems and have found some solutions.



> zenbuild.log :
> Tue Apr 21 15:01:45 MEST 2009
>  installing: 
> /export/home0/tnslmon/sources/ZenOSS/zenoss-2.3.3/build/Python-2.4.4/Makefile
> checking MACHDEP... sunos5
> checking EXTRAPLATDIR...
> checking for --without-gcc... no
> checking for --with-cxx=<compiler>... no
> checking for c++... c++
> checking for C++ compiler default output file name... a.out
> checking whether the C++ compiler works... configure: error: cannot run C++ 
> compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> 
> 
> 
> config.log (view build/Python-2.4.4/config.log) :
> ...
> configure:1858: checking for C++ compiler default output file name
> configure:1861: c++    conftest.cc  >&5
> configure:1864: $? = 0
> configure:1910: result: a.out
> configure:1915: checking whether the C++ compiler works
> configure:1921: ./a.out
> ld.so.1: a.out: fatal: libstdc++.so.6: open failed: No such file or directory
> ./configure: line 1922: 14021 Killed                  ./$ac_file
> configure:1924: $? = 137
> configure:1933: error: cannot run C++ compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.


Solution :
Install libgcc from sunfreeware.com and :

> export LDFLAGS=-L/usr/local/lib


Then :

> running build_ext
> building '_mysql' extension
> creating build/temp.solaris-2.10-sun4v-2.4
> /usr/lib/python2.4/pycc -DNDEBUG -I/usr/sfw/include/mysql 
> -I/usr/include/python2.4 -c _mysql.c -o 
> build/temp.solaris-2.10-sun4v-2.4/_mysql.o -I/usr/sfw/i
> nclude/mysql -xstrconst -mt
> cc: warning: `-x strconst' after last input file has no effect
> cc1: error: invalid option `t'
> error: command '/usr/lib/python2.4/pycc' failed with exit status 1


Solution :
the mysql_config called was the one found in /usr/sfw... I've juste corrected 
the PATH to put /usr/local/mysql before /usr/sfw.


> /usr/lib/python2.4/pycc -DNDEBUG -IExtensionClass -IAcquisition 
> -I/usr/include/python2.4 -c AccessControl/cAccessControl.c -o 
> /export/home0/tnslmon/sourc
> es/ZenOSS/zenoss-2.3.3/build/Zope-2.8.8-final/build-base/python2.4/build-temp/AccessControl/cAccessControl.o
> /usr/ucb/cc:  language optional software package not installed
> error: command '/usr/lib/python2.4/pycc' failed with exit status 1
> 


Solution :
ln -s /usr/local/bin/gcc /usr/local/bin/cc with /usr/local/bin near the 
beginning of the PATH variable.


> /usr/openwin/lib -R/usr/openwin/lib -I/usr/local/rrdtool-1.2.19/include 
> -DHAVE_RWLOCK_T
> /usr/lib/python2.4/pycc -G -L/usr/local/lib 
> build/temp.solaris-2.10-sun4v-2.4/_mysql.o -L/usr/local/lib -L/usr/lib 
> -L/usr/openwin/lib -L/usr/local/ssl/li
> b -L/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib 
> -L/usr/local/mysql/lib/mysql -L/usr/local/ssl/lib -lmysqlclient_r -lz 
> -lpthread -lthread -lposix4 -lge
> n -lsocket -lnsl -lm -lpthread -lthread -lssl -lcrypto -lmysqlclient_r -o 
> build/lib.solaris-2.10-sun4v-2.4/_mysql.so
> ld: fatal: library -lmysqlclient_r: not found
> ld: fatal: library -lmysqlclient_r: not found
> ld: fatal: File processing errors. No output written to 
> build/lib.solaris-2.10-sun4v-2.4/_mysql.so
> collect2: ld returned 1 exit status
> error: command '/usr/lib/python2.4/pycc' failed with exit status 1


Solution :

> export LDFLAGS='-L/usr/local/lib -L/usr/sfw/lib'



> /export/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. 
> 
> -DRRD_DEFAULT_FONT=\"/export/app/zenoss/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\"
>  
> 
> -DNUMVERS=1.2026 -I//
> export/app/zenoss/include/freetype2 -I//export/app/zenoss/include/libpng 
> 
> -I//export/app/zenoss/include/libart-2.0 -I//export/app/zenoss/include 
> -D_POSIX_
> PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 
> -I/usr/include/freetype2 -g -O2 
> 
> -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpoint
> er-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations 
> -Wnested-externs -Winline -W 
> 
> -fPIC -DPIC -MT rrd_update.lo -MD -MP -MF .deps/rrd_update
> .Tpo -c rrd_update.c  -fPIC -DPIC -o .libs/rrd_update.o
> In file included from rrd_tool.h:15,
>                  from rrd_update.c:9:
> ../rrd_config.h:312:1: warning: "isnan" redefined
> In file included from 
> /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include/math.h:27,
>                  from ../rrd_config.h:288,
>                  from rrd_tool.h:15,
>                  from rrd_update.c:9:
> /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include/iso/math_c99.h:70:1: 
> warning: this is the 
> 
> location of the previous definition
> rrd_update.c: In function `_rrd_update':
> rrd_update.c:433: error: `POSIX_MADV_RANDOM' undeclared (first use in this 
> function)
> rrd_update.c:433: error: (Each undeclared identifier is reported only once
> rrd_update.c:433: error: for each function it appears in.)
> gmake[3]: *** [rrd_update.lo] Error 1
> gmake[3]: Leaving directory 
> 
> `/export/home0/tnslmon/sources/ZenOSS/zenoss-2.3.3/build/rrdtool-1.2.26/src'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory 
> 
> `/export/home0/tnslmon/sources/ZenOSS/zenoss-2.3.3/build/rrdtool-1.2.26'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory 
> 
> `/export/home0/tnslmon/sources/ZenOSS/zenoss-2.3.3/build/rrdtool-1.2.26'


Solution :
A patch on the rrdtool website : rrdtool_zenoss_changeset_r1242.diff
I've applied these changes. 
Be carefull with a small part of the patch saying to replace "#undef" by 
"#undefine"... don't do that, leave "#undef".
Then :

> rm -r /usr/local/zenoss/*


After each "solution", you have to rm what is in the install directory of 
zenoss and relaunch install.sh.

I hope all these indications can help some people fighting with zenoss on 
solaris. ;) 


BUT... now... another problem...  [Crying or Very sad]  [Crying or Very sad]  
[Crying or Very sad] 


> 
> checking SHLD... /export/bin/cc
> checking SHLD_FLAGS... -G
> checking SHLIBEXT... so
> checking SONAMEFLAG... -Wl,-soname=
> checking PICFLAG... -fPIC
> checking whether building shared libraries actually works... yes
> checking if we can link using the selected flags... configure: error: we 
> cannot link with the 
> 
> selected cc and ld flags. Aborting configure
> gmake[2]: Entering directory 
> 
> `/export/home0/tnslmon/sources/ZenOSS/zenoss-2.3.3/build/wmi-1.1.8/Samba/source'
> gmake[2]: *** No rule to make target `proto'.  Stop.
> gmake[2]: Leaving directory 
> 
> `/export/home0/tnslmon/sources/ZenOSS/zenoss-2.3.3/build/wmi-1.1.8/Samba/source'
> cd Samba/source ; \
>         cp bin/winexe //export/app/zenoss/bin ; \
>         cp bin/wmic //export/app/zenoss/bin ; \
>         cp bin/shared/*async_wmi_lib.so.0* //export/app/zenoss/lib/python
> cp: cannot access bin/winexe
> cp: cannot access bin/wmic
> cp: cannot access bin/shared/*async_wmi_lib.so.0*
> gmake[1]: *** [pywmi-installed] Error 2
> gmake[1]: Leaving directory 
> `/export/home0/tnslmon/sources/ZenOSS/zenoss-2.3.3/build/wmi-1.1.8'
> 


It seems to be a flags problem... but I'm not skilled enough to really fully 
understand the problem I think...
Can anybody help me ?

Thanks in advance. :)




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=33810#33810

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to