Installation on Sun Solaris
-
I am trying to build on Sun Solaris 10.
As suggested by the documentation:netxms_install_guide.pdf page 9, I downloaded netxms-0.2.13.tar.gz, gunzip and tar xf the file. All done successfully.
After that I run: sh ./configure --with-server --with-mysql
After that I run: make, and then I got following error:libtool: link: `/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../..//libstdc++.la' is not a valid libtool archive
*** Error code 1
make: Fatal error: Command failed for target `libnetxms.la'I also tried to compile with make -i (mean ignore the error), and I got another erros.
Could you please help me on this ? What's wrong ?
Thanks for your great product.
Adiyat
-
Hello!
It's a libtool on Solaris problem. There are a solution: http://forum.sun.com/jive/thread.jspa?threadID=73150&tstart=45
Hope this helps!
Best regards,
Victor -
Thanks, those problem solved now by entering the value for the file as suggested by the post.
But now, I got another problem:
/bin/bash ../../libtool --mode=link g++ -g -O2 -Wl,-z,now -L/usr/local/lib -L/usr/local/mysql/lib -L/usr/lib64/mysql -L/usr/lib/mysql -L/usr/mysql/lib -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql -lpthread -o libnetxms.la -rpath /usr/local/lib -version-info 0:2:0 -lpthread config.lo gen_uuid.lo dload.lo hash.lo icmp.lo inline.lo main.lo md5.lo queue.lo rwlock.lo scandir.lo serial.lo sha1.lo strtoll.lo strtoull.lo threads.lo tools.lo unicode.lo uuid.lo -lnsl -ltermcap -lkstat -ldl -lsocket -lcrypto -lcrypto -lmysqlclient -lm -lz
g++ -shared -nostdlib -Wl,-z,now -L/usr/local/lib -L/usr/local/mysql/lib -L/usr/lib64/mysql -L/usr/lib/mysql -L/usr/mysql/lib -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql -lpthread /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crti.o /usr/ccs/lib/values-Xa.o /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtbegin.o .libs/config.o .libs/gen_uuid.o .libs/dload.o .libs/hash.o .libs/icmp.o .libs/inline.o .libs/main.o .libs/md5.o .libs/queue.o .libs/rwlock.o .libs/scandir.o .libs/serial.o .libs/sha1.o .libs/strtoll.o .libs/strtoull.o .libs/threads.o .libs/tools.o .libs/unicode.o .libs/uuid.o -Wl,-R -Wl,/usr/sfw/lib/gcc/sparc-sun-solaris2.10 -L/usr/local/lib -L/usr/local/mysql/lib -L/usr/lib64/mysql -L/usr/lib/mysql -L/usr/mysql/lib -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql -lpthread -lnsl -ltermcap -lkstat -ldl -lsocket -lcrypto -lmysqlclient -lz -L/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../sparc-sun-solaris2.10/lib -L/usr/ccs/lib -L/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../.. /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../..//.l -L/usr/sfw/lib -lm -lgcc_s /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtend.o /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtn.o -Wl,-z -Wl,now -Wl,-h -Wl,libnetxms.so.0 -o .libs/libnetxms.so.0.0.2
: No such file or directory-sun-solaris2.10/3.4.3/../../..//.libs/libstdc++.so
*** Error code 1
make: Fatal error: Command failed for target `libnetxms.la'
Current working directory /opt/netxms-0.2.13/src/libnetxms
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2;
dot_seen=no;
target=`echo all-recursive | sed s/-recursive//`;
list='libnetxms libnxcscp install libnxmap libnxsnmp libnxsl server nxmibc nxscript'; for subdir in $list; do
echo "Making $target in $subdir";
if test "$subdir" = "."; then
dot_seen=yes;
local_target="$target-am";
else
local_target="$target";
fi;
(cd $subdir && make $local_target)
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac;
done;
if test "$dot_seen" = "no"; then
make "$target-am" || exit 1;
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /opt/netxms-0.2.13/src
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2;
dot_seen=no;
target=`echo all-recursive | sed s/-recursive//`;
list='m4 contrib src doc tools netware sql images'; for subdir in $list; do
echo "Making $target in $subdir";
if test "$subdir" = "."; then
dot_seen=yes;
local_target="$target-am";
else
local_target="$target";
fi;
(cd $subdir && make $local_target)
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac;
done;
if test "$dot_seen" = "no"; then
make "$target-am" || exit 1;
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /opt/netxms-0.2.13
*** Error code 1
make: Fatal error: Command failed for target `all'Could you please help me again ?
Thanks for your great product & support
-
Hello!
Looks like you have libstdc++ installed in unusual place or not installed at all. First, try to find if there are libstdc++.so anywhere on your system. If you will found it, try to put a symbolic link to it to from some usual lib directory, like /usr/lib or /usr/lib64 (32-bit and 64-bit respectively, depending on where you will find the file). After that, try to remove all the .la files so the libtool not get them.
If you will not find libstdc++.so anywhere, then you need to (re)install gcc package from somewhere (I'm not very familar with Solaris, so I cannot provide you with exact location for correct package).Best regards,
Victor -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login