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. Error in solaris 10 installation

Error in solaris 10 installation

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 18.1k 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.
  • M
    M
    Macphisto
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • M
      M
      Macphisto
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      • M
        M
        Macphisto
        wrote on last edited by
        #3

        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?

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

          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

          1 Reply Last reply
          0
          • M
            M
            Macphisto
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • M
              M
              Macphisto
              wrote on last edited by
              #6

              Hello

              Without --enable-unstable in config, make and make install worked fine.

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

                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

                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