NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Problems with libtool  (Read 7814 times)

highonsnow

  • Newbie
  • *
  • Posts: 3
    • View Profile
Problems with libtool
« on: January 23, 2007, 12:07:14 am »

Hi guys, I'm having awful trouble building the source, it seems to stop at libtool, I've tried giving full permissions to the directory and all the residing files but that didn't sort it either, any suggestions?

Here's a dump from the shell, this is as far as I get after doing a make:

build/lib\"   -c -o config.lo `test -f 'config.cpp' || echo './'`config.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -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 -I/usr/local/include -D_XOPEN_SOURCE=500 -D_THREAD_SAFE -DDATADIR=\"/home/netxms/netxmsbuild/share/netxms\" -DLIBDIR=\"/home/netxms/netxmsbuild/lib\" -c config.cpp  -fPIC -DPIC -o .libs/config.o
../../libtool: line 1: g++: command not found
make[3]: *** [config.lo] Error 1
make[3]: Leaving directory `/home/netxms/netxms/src/libnetxms'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/netxms/netxms/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/netxms/netxms'
make: *** [all] Error 2
[root@svr netxms]# make
make  all-recursive
make[1]: Entering directory `/home/netxms/netxms'
Making all in m4
make[2]: Entering directory `/home/netxms/netxms/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/netxms/netxms/m4'
Making all in contrib
make[2]: Entering directory `/home/netxms/netxms/contrib'
Making all in dct
make[3]: Entering directory `/home/netxms/netxms/contrib/dct'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/dct'
Making all in startup
make[3]: Entering directory `/home/netxms/netxms/contrib/startup'
Making all in gentoo
make[4]: Entering directory `/home/netxms/netxms/contrib/startup/gentoo'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup/gentoo'
Making all in redhat
make[4]: Entering directory `/home/netxms/netxms/contrib/startup/redhat'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup/redhat'
make[4]: Entering directory `/home/netxms/netxms/contrib/startup'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup'
make[3]: Leaving directory `/home/netxms/netxms/contrib/startup'
Making all in mibs
make[3]: Entering directory `/home/netxms/netxms/contrib/mibs'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/mibs'
Making all in backgrounds
make[3]: Entering directory `/home/netxms/netxms/contrib/backgrounds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/backgrounds'
make[3]: Entering directory `/home/netxms/netxms/contrib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/netxms/netxms/contrib'
make[2]: Leaving directory `/home/netxms/netxms/contrib'
Making all in src
make[2]: Entering directory `/home/netxms/netxms/src'
Making all in libnetxms
make[3]: Entering directory `/home/netxms/netxms/src/libnetxms'
source='config.cpp' object='config.lo' libtool=yes \
depfile='.deps/config.Plo' tmpdepfile='.deps/config.TPlo' \
depmode=none /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include  -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 -I/usr/local/include -D_XOPEN_SOURCE=500 -D_THREAD_SAFE -DDATADIR=\"/home/netxms/netxmsbuild/share/netxms\" -DLIBDIR=\"/home/netxms/netxmsbuild/lib\"   -c -o config.lo `test -f 'config.cpp' || echo './'`config.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -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 -I/usr/local/include -D_XOPEN_SOURCE=500 -D_THREAD_SAFE -DDATADIR=\"/home/netxms/netxmsbuild/share/netxms\" -DLIBDIR=\"/home/netxms/netxmsbuild/lib\" -c config.cpp  -fPIC -DPIC -o .libs/config.o
../../libtool: line 1: g++: command not found
make[3]: *** [config.lo] Error 1
make[3]: Leaving directory `/home/netxms/netxms/src/libnetxms'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/netxms/netxms/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/netxms/netxms'
make: *** [all] Error 2
You have new mail in /var/spool/mail/root
[root@svr netxms]# su
[root@svr netxms]# make
make  all-recursive
make[1]: Entering directory `/home/netxms/netxms'
Making all in m4
make[2]: Entering directory `/home/netxms/netxms/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/netxms/netxms/m4'
Making all in contrib
make[2]: Entering directory `/home/netxms/netxms/contrib'
Making all in dct
make[3]: Entering directory `/home/netxms/netxms/contrib/dct'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/dct'
Making all in startup
make[3]: Entering directory `/home/netxms/netxms/contrib/startup'
Making all in gentoo
make[4]: Entering directory `/home/netxms/netxms/contrib/startup/gentoo'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup/gentoo'
Making all in redhat
make[4]: Entering directory `/home/netxms/netxms/contrib/startup/redhat'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup/redhat'
make[4]: Entering directory `/home/netxms/netxms/contrib/startup'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup'
make[3]: Leaving directory `/home/netxms/netxms/contrib/startup'
Making all in mibs
make[3]: Entering directory `/home/netxms/netxms/contrib/mibs'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/mibs'
Making all in backgrounds
make[3]: Entering directory `/home/netxms/netxms/contrib/backgrounds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/backgrounds'
make[3]: Entering directory `/home/netxms/netxms/contrib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/netxms/netxms/contrib'
make[2]: Leaving directory `/home/netxms/netxms/contrib'
Making all in src
make[2]: Entering directory `/home/netxms/netxms/src'
Making all in libnetxms
make[3]: Entering directory `/home/netxms/netxms/src/libnetxms'
source='config.cpp' object='config.lo' libtool=yes \
depfile='.deps/config.Plo' tmpdepfile='.deps/config.TPlo' \
depmode=none /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include  -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 -I/usr/local/include -D_XOPEN_SOURCE=500 -D_THREAD_SAFE -DDATADIR=\"/home/netxms/netxmsbuild/share/netxms\" -DLIBDIR=\"/home/netxms/netxmsbuild/lib\"   -c -o config.lo `test -f 'config.cpp' || echo './'`config.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -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 -I/usr/local/include -D_XOPEN_SOURCE=500 -D_THREAD_SAFE -DDATADIR=\"/home/netxms/netxmsbuild/share/netxms\" -DLIBDIR=\"/home/netxms/netxmsbuild/lib\" -c config.cpp  -fPIC -DPIC -o .libs/config.o
../../libtool: line 1: g++: command not found
make[3]: *** [config.lo] Error 1
make[3]: Leaving directory `/home/netxms/netxms/src/libnetxms'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/netxms/netxms/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/netxms/netxms'
make: *** [all] Error 2
[root@svr netxms]# yum install netxms
Gathering header information file(s) from server(s)
Server: CentOS-3.1 - Addons
Server: CentOS-3.1 - Base
Server: CentOS-3.1 - Extras
Server: CentOS-3.1 - Updates
Finding updated packages
Downloading needed headers
Cannot find a package matching netxms
No actions to take
You have new mail in /var/spool/mail/root
[root@svr netxms]# make
make  all-recursive
make[1]: Entering directory `/home/netxms/netxms'
Making all in m4
make[2]: Entering directory `/home/netxms/netxms/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/netxms/netxms/m4'
Making all in contrib
make[2]: Entering directory `/home/netxms/netxms/contrib'
Making all in dct
make[3]: Entering directory `/home/netxms/netxms/contrib/dct'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/dct'
Making all in startup
make[3]: Entering directory `/home/netxms/netxms/contrib/startup'
Making all in gentoo
make[4]: Entering directory `/home/netxms/netxms/contrib/startup/gentoo'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup/gentoo'
Making all in redhat
make[4]: Entering directory `/home/netxms/netxms/contrib/startup/redhat'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup/redhat'
make[4]: Entering directory `/home/netxms/netxms/contrib/startup'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/netxms/netxms/contrib/startup'
make[3]: Leaving directory `/home/netxms/netxms/contrib/startup'
Making all in mibs
make[3]: Entering directory `/home/netxms/netxms/contrib/mibs'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/mibs'
Making all in backgrounds
make[3]: Entering directory `/home/netxms/netxms/contrib/backgrounds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/netxms/netxms/contrib/backgrounds'
make[3]: Entering directory `/home/netxms/netxms/contrib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/netxms/netxms/contrib'
make[2]: Leaving directory `/home/netxms/netxms/contrib'
Making all in src
make[2]: Entering directory `/home/netxms/netxms/src'
Making all in libnetxms
make[3]: Entering directory `/home/netxms/netxms/src/libnetxms'
source='config.cpp' object='config.lo' libtool=yes \
depfile='.deps/config.Plo' tmpdepfile='.deps/config.TPlo' \
depmode=none /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include  -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 -I/usr/local/include -D_XOPEN_SOURCE=500 -D_THREAD_SAFE -DDATADIR=\"/home/netxms/netxmsbuild/share/netxms\" -DLIBDIR=\"/home/netxms/netxmsbuild/lib\"   -c -o config.lo `test -f 'config.cpp' || echo './'`config.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -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 -I/usr/local/include -D_XOPEN_SOURCE=500 -D_THREAD_SAFE -DDATADIR=\"/home/netxms/netxmsbuild/share/netxms\" -DLIBDIR=\"/home/netxms/netxmsbuild/lib\" -c config.cpp  -fPIC -DPIC -o .libs/config.o
../../libtool: line 1: g++: command not found
make[3]: *** [config.lo] Error 1
make[3]: Leaving directory `/home/netxms/netxms/src/libnetxms'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/netxms/netxms/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/netxms/netxms'
make: *** [all] Error 2
You have new mail in /var/spool/mail/root
[root@svr netxms]#
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6509
    • View Profile
Problems with libtool
« Reply #1 on: January 23, 2007, 09:24:51 am »

Hello!

The problem is that libtool cannot find command g++ - which is GNU C++ compiler. Looks like you don't have installed C++ compiler package or it is not in the search path.

Best regards,
Victor
Logged

highonsnow

  • Newbie
  • *
  • Posts: 3
    • View Profile
Problems with libtool
« Reply #2 on: January 23, 2007, 11:37:33 am »

Hi Victor,

I have done an install of gcc through the use of "yum install gcc".. that worked well, seemed to have installed, but when I try building the source it still stop at exactly the same line, I have tried from line one in the instructions but still no budge.

Am I missing anything else?
Logged

Alex Kirhenshtein

  • Team Member
  • Administrator
  • Hero Member
  • *****
  • Posts: 912
    • View Profile
Problems with libtool
« Reply #3 on: January 23, 2007, 01:36:46 pm »

Hello.

As far as i remember, c++ compiler is in separate package, "yum install gcc-c++" should do the trick (not sure about package name, though)
Logged

highonsnow

  • Newbie
  • *
  • Posts: 3
    • View Profile
Problems with libtool
« Reply #4 on: January 23, 2007, 03:33:40 pm »

Excellent that's it, thanks a million!
Logged