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. nxhttp compilation error

nxhttp compilation error

Scheduled Pinned Locked Moved Support
5 Posts 4 Posters 35.0k 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.
  • W
    W
    wolf
    wrote on last edited by
    #1

    $uname
    6.0-RELEASE FreeBSD 6.0-RELEASE 1: Tue May 29 08:54:16 EEST 2007

    /configure --with-server --with-agent --with-mysql --prefix=/usr/local/netxms -
    -with-nxhttpd CPPFLAGS=-I/usr/local/include LIBS=-L/usr/local/lib/
    2)
    # make
    Making all in status
    g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/local/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_THREAD_SAFE -D_THREAD_SAFE -DDATADIR=\"/usr/local/netxms/share/netxms\" -DLIBDIR=\"/usr/local/netxms/lib\" -g -O2 -fno-rtti -fno-exceptions -MT alarm.o -MD -MP -MF .deps/alarm.Tpo -c -o alarm.o alarm.cpp
    In file included from alarm.cpp:24:
    nxhttpd.h:31:22: messages.h: No such file or directory
    In file included from alarm.cpp:24:

    https://www.netxms.org/bugtrack/view.php?id=171 (more detailes)
    3)
    # make clean
    # cd src/nxhttpd
    # perl ../../tools/mc.pl  messages.mc
    4)
    # make
    g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/local/include -I/usr/lo
    cal/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_THREAD_SAFE -D_THREAD_SAFE -DDATADIR=\"/usr/local/netxms/share/netxms
    \" -DLIBDIR=\"/usr/local/netxms/lib\" -g -O2 -fno-rtti -fno-exceptions -MT alar
    m.o -MD -MP -MF .deps/alarm.Tpo -c -o alarm.o alarm.cpp
    In file included from alarm.cpp:24:
    nxhttpd.h: In member function `void HttpResponse::EndBox(BOOL)':
    nxhttpd.h:173: error: invalid conversion from `const char*' to `char*'
    nxhttpd.h:173: error: initializing argument 1 of `void HttpResponse::AppendBod
    y(char*, int)'
    alarm.cpp: In member function `void ClientSession::ShowAlarmList(HttpResponse&,
    NXC_OBJECT*, BOOL, char*)':
    alarm.cpp:227: error: invalid conversion from `const char*' to `char*'
    alarm.cpp:227: error: initializing argument 1 of `const String& String::operat
    or=(char*)'
    *** Error code 1

    https://www.netxms.org/bugtrack/view.php?id=173 (more detailes)

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

      Hello!

      I hope that I fix all nxhttpd build problems now. New cvs snapshot will be created this night (21 Jun 4:15 EET) and should include all changes. You can try to build nxhttpd from this snapshot.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • W
        W
        weec
        wrote on last edited by
        #3

         alarm.cpp
        In file included from alarm.cpp:24:
        nxhttpd.h:31:22: messages.h: No such file or directory
        In file included from alarm.cpp:24:
        nxhttpd.h: In member function `void HttpResponse::EndBox(BOOL)':
        nxhttpd.h:173: error: invalid conversion from `const char*' to `char*'
        nxhttpd.h:173: error:   initializing argument 1 of `void HttpResponse::AppendBody(char*, int)'
        alarm.cpp: In member function `void ClientSession::ShowAlarmList(HttpResponse&, NXC_OBJECT*, BOOL, char*)':
        alarm.cpp:227: error: invalid conversion from `const char*' to `char*'
        alarm.cpp:227: error:   initializing argument 1 of `const String& String::operator=(char*)'
        *** Error code 1

        used current https://www.netxms.org/download/netxms-cvs.tar.gz

        uname
        6.2-STABLE FreeBSD 6.2-STABLE #2: Fri Jun  1 17:33:46 MSD 2007     root@homer:/usr/obj/usr/src/sys/STONE  amd64

        please help

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

          Please try this version: https://www.netxms.org/download/rc/netxms-0.2.18-rc2.tar.gz

          try to configure it that ways (will be fixed in release):

          CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include LIBS=-L/usr/local/lib/ ./configure --prefix=/optl/netxms --with-server --with-agent ...

          1 Reply Last reply
          0
          • W
            W
            weec
            wrote on last edited by
            #5

            https://www.netxms.org/cgi-bin/mwf/topic_show.pl?pid=201#pid201

            dabi ne floodit`

            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