NetXMS Support Forum

English Support => General Support => Topic started by: Macphisto on February 05, 2010, 03:37:14 PM

Title: Error in solaris 10 installation
Post by: Macphisto on February 05, 2010, 03:37:14 PM
Hello

I'm installing NetXMS 0.2.31 in a solaris 10 server. Configure run ok with some warnings related to libiconv.so:
"ld: aviso: archivo /usr/local/lib/libiconv.so: intento de inclusión múltiple de archivo"

Now i'm running make but the process stopped with the following error:

Making all in mibs
Making all in backgrounds
Making all in include
Making all in src
Making all in libexpat
Making all in libexpat
/bin/sh ../../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -DHAVE_EXPAT_CONFIG_H -I.. -I/opt/coolstack/mysql_32bit/include/mysql -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include  -D_THREAD_SAFE -DPREFIX=\"/opt\" -DPREFIXW=L\"/opt\" -DDATADIR=\"/opt/share/netxms\" -DLIBDIR=\"/opt/lib\"  -g -O2 -MT libnxexpat_la-xmlparse.lo -MD -MP -MF .deps/libnxexpat_la-xmlparse.Tpo -c -o libnxexpat_la-xmlparse.lo `test -f 'xmlparse.c' || echo './'`xmlparse.c
../../../libtool: syntax error at line 653: `func_arith_result=$' unexpected
*** Error code 2
make: Fatal error: Command failed for target `libnxexpat_la-xmlparse.lo'
Current working directory /tmp/netxms-0.2.31/src/libexpat/libexpat
*** Error code 1
The following command caused the error:
failcom='exit 1'; \

Any ideas why is this happening? Thank you in advance.
Title: Re: Error in solaris 10 installation
Post by: Macphisto on February 06, 2010, 05:10:46 AM
Ok
making some research i found that : "Arithmetic expansion is not portable as some shells (most notably
Solaris 10 `/bin/sh') don't support it."

Now the issue is to force configure and make to use some smarter shell like bash instead of sh.

Any ideas?
Title: Re: Error in solaris 10 installation
Post by: Macphisto on February 06, 2010, 05:39:21 AM
One step ahead, after looking for elegant solutions i decided to use a quick fix:

cp /bin/sh /bin/sh.tmp
cp /bin/bash /bin/sh

It worked until new errors appeared in make:

odbcsapi.cpp:28:17: sql.h: No such file or directory
odbcsapi.cpp:29:20: sqlext.h: No such file or directory
odbcsapi.cpp:30:22: sqltypes.h: No such file or directory

Until a solution can be found for these new ones, /bin/sh was returned to normal state

Any ideas?
Title: Re: Error in solaris 10 installation
Post by: Victor Kirhenshtein on February 06, 2010, 06:03:24 PM
Hello!

How do you run ./configure? odbcsapi.cpp is a part of odbcquery subagent, which compiles only if --enable-unstable is set. Try to run configure without that switch.

Best regards,
Victor
Title: Re: Error in solaris 10 installation
Post by: Macphisto on February 08, 2010, 02:34:06 AM
Hi Victor

What advantages do i get installing netxms with --enable-unstable?  indeed i ran configure with that option set, I will try without it.

My configure was ./configure --prefix=/opt --enable-unstable --with-server --with-server --with-mysql --with-gd --with-nxhttpd
Title: Re: Error in solaris 10 installation
Post by: Macphisto on February 08, 2010, 04:36:30 AM
Hello

Without --enable-unstable in config, make and make install worked fine.
Title: Re: Error in solaris 10 installation
Post by: Victor Kirhenshtein on February 08, 2010, 09:53:42 AM
Hi!

Currently, --enable-unstable only enables ODBCQUERY subagent. If you ever need it, you will have to install UNIXODBC first, and then it should compile as well.

Best regards,
Victor