Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Problems with libtool

Problems with libtool

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 27.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    H
    highonsnow
    wrote on last edited by
    #1

    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]#

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • H
        H
        highonsnow
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • A
          A
          Alex Kirhenshtein
          wrote on last edited by
          #4

          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)

          1 Reply Last reply
          0
          • H
            H
            highonsnow
            wrote on last edited by
            #5

            Excellent that's it, thanks a million!

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups