Hi All,
I will gradually update this reply with more information. To give a gist, I was able to port Eucalyptus-CC, NC, Cloud services and other dependent services on Solaris / SPARC. My main intention was to enable Eucalyptus talk to the Sun LDoms using the Sun Libvirt library. My first step was to have install Eucalyptus from Source (the version i used is 1.5.1).
I faced lot of issues with compilation problems for many dependencies like Apache Axis 2/C, Rampart etc. I had progressively fixed all of them, and was able to compile the Eucalyptus services. The only challenge is the Sun Libvirt is the libvirt implementation of an old version of the same library (0.3.2), which causes Eucalyptus to fail for some requests. To solve that, I had to disable those calls, and rely on the API implementation that worked for Sub Libvirt.
In the end, I was able to run the service Eucalyptus- CC, NC, Cloud. I used a Ubuntu Debian SPARC Image to run it on the Eucalyptus Cloud.
More on this in the days to come. I will add more details on compilation procedure, issues to resolve, and strategy used to run.
Thanks,
Vivek Juneja
Hi Vivek,
Thanks for the updates.I am very excited.
Our system:
Server:Sparc Enterprise T5240
OS :Solaris 10 10/09
I followed the tutorial http://open.eucalyptus.com/wiki/installing-eucalyptus-source-16 .
* First I Installed some packages like openssl, Apache 2, Apache ant, Curl and their dependencies.
*However when I try to build Axis2c after configuring with CFLAGS="-w" ./configure --prefix=${AXIS2C_HOME} --with-apache2=$APACHE_INCLUDES --with-apr=$APR_INCLUDES --enable-multi-thread=no
While building the axis2c I got the error message by using the header files of apache-2.2.15 :
_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -w -D_LARGEFILE64_SOURCE -ansi -Wall -Werror -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_GUTHTHILA_ENABLED -MT mod_axis2.lo -MD -MP -MF .deps/mod_axis2.Tpo -c mod_axis2.c -fPIC -DPIC -o .libs/mod_axis2.o
In file included from /usr/include/sys/stream.h:22,
from /usr/include/netinet/in.h:66,
from /usr/local/apache2/include/apr_network_io.h:31,
from /usr/local/apache2/include/httpd.h:53,
from mod_axis2.c:19:
/usr/include/sys/vnode.h:578: error: syntax error before "uio_t"
/usr/include/sys/vnode.h:580: error: syntax error before "uio_t"
/usr/include/sys/vnode.h:598: error: syntax error before "uio_t"
/usr/include/sys/vnode.h:600: error: syntax error before "uio_t"
In file included from /usr/local/apache2/include/apr_network_io.h:31,
from /usr/local/apache2/include/httpd.h:53,
from mod_axis2.c:19:
/usr/include/netinet/in.h:977: error: field `gr_group' has incomplete type
/usr/include/netinet/in.h:986: error: field `gsr_group' has incomplete type
/usr/include/netinet/in.h:987: error: field `gsr_source' has incomplete type
/usr/include/netinet/in.h:995: error: field `gf_group' has incomplete type
/usr/include/netinet/in.h:998: error: field `gf_slist' has incomplete type
In file included from /usr/local/apache2/include/httpd.h:53,
from mod_axis2.c:19:
/usr/local/apache2/include/apr_network_io.h:246: error: field `sas' has incomplete type
make[7]: *** [mod_axis2.lo] Error 1
http://wikis.sun.com/display/BigAdmin/Creating+an+experimental+cloud+on+...
they suggested to remove -ansi at all configuration files so I removed them manually from 15 configuration files but still the same error message appeared.
*Tried to build with headers of apache-2.0.59 than I got the error message
_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -w -D_LARGEFILE64_SOURCE -Wall -Werror -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_GUTHTHILA_ENABLED -MT mod_axis2.lo -MD -MP -MF .deps/mod_axis2.Tpo -c mod_axis2.c -fPIC -DPIC -o .libs/mod_axis2.o
In file included from /usr/local/apache2/include/httpd.h:39,
from mod_axis2.c:19:
/usr/local/apache2/include/apr_network_io.h:215: error: field `sin6' has incomplete type
make[7]: *** [mod_axis2.lo] Error 1
make[7]: Leaving directory `/home/eucalyptus/eucalyptus-src-deps/axis2c-src-1.6.0/src/core/transport/http/server/apache2'
make[6]: *** [all-recursive] Error 1
Programatically commented ip6 usage at usr/local/apache2/include/apr_network_io.h:214
#if APR_HAVE_IPV6
/** IPv6 sockaddr structure */
/** changed by geokhan
struct sockaddr_in6 sin6;
*/
#endif
so build complete but.When I try to run Axis2c I got Segmentation fault.
* Tried to build rampart but the following error message appeared through the make :
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I ../../../../util/include -I ../../../../include -I ../../../../axiom/include -I/usr/local/ssl//include -I/opt/eucalyptus/eucalyptus-1.6.2/packages/axis2c-1.6.0/include/axis2-1.6.0 -D_XOPEN_SOURCE=600 -std=c99 -DEXTENSIONS -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -g3 -ansi -Wall -Werror -ggdb -Wno-implicit-function-declaration -MT token_encrypted_data.lo -MD -MP -MF .deps/token_encrypted_data.Tpo -c token_encrypted_data.c -fPIC -DPIC -o .libs/token_encrypted_data.o
In file included from /usr/include/sys/int_types.h:34,
from /usr/include/sys/stdint.h:17,
from /usr/include/stdint.h:17,
from /opt/eucalyptus/eucalyptus-1.6.2/packages/axis2c-1.6.0/include/axis2-1.6.0/axutil_utils_defines.h:25,
from /opt/eucalyptus/eucalyptus-1.6.2/packages/axis2c-1.6.0/include/axis2-1.6.0/axutil_allocator.h:26,
from /opt/eucalyptus/eucalyptus-1.6.2/packages/axis2c-1.6.0/include/axis2-1.6.0/axis2_util.h:22,
from ../../../include/oxs_tokens.h:21,
from token_encrypted_data.c:18:
/usr/include/sys/feature_tests.h:336:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"
Did you have similiar problems?it will be very cool if you post a wiki about your experience.
Best Wishes,
Goekhan Aksakalli