Ad Widget

Collapse

Compile errors with alpha on FBSD 4.11

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • racoon
    Junior Member
    • Jun 2005
    • 3

    #1

    Compile errors with alpha on FBSD 4.11

    Hi,

    i just tried to compile the current 1.1alpha10 with the following errors:

    gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -Wall
    ../../include/snprintf.c: In function `dopr':
    ../../include/snprintf.c:182: warning: implicit declaration of function `__va_copy'
    ../../include/snprintf.c:180: warning: `args' might be used uninitialized in this function
    ../../include/snprintf.c: At top level:
    ../../include/snprintf.c:169: warning: `dopr' defined but not used
    /tmp/cc6N0Iea.o: In function `dopr':
    /usr/local/www/zabbix-1.1alpha10/src/zabbix_agent/../../include/snprintf.c:184: undefined reference to `__va_copy'
    *** Error code 1

    This happens since i first tried an alpha version with 1.1alpha7. The system is a FreeBSD 4.11-RELEASE-p9, which provides gcc-2.95.4 and GNU make 3.80.
    The configure script went fine.


    Any hints on that?

    Regards,
    Frank
    Last edited by racoon; 07-06-2005, 16:43. Reason: stubbed subject from 'alpha' to 'alpha10' for better overview
  • welshpjw
    Member
    • Mar 2005
    • 50

    #2
    check out the suggestion for Solaris/HPUX at:



    Post back if that works, please.

    Comment

    • racoon
      Junior Member
      • Jun 2005
      • 3

      #3
      Sorry, doesn't seem to work - added

      LIBS = -I/usr/local/include -L/usr/local/lib -llber

      to src/zabbix_agent/Makefile and src/zabbix_server/Makefile but with no change in error.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Please, try to get and compile the latest snprintf.c from CVS.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • welshpjw
          Member
          • Mar 2005
          • 50

          #5
          Originally posted by racoon
          Sorry, doesn't seem to work - added

          LIBS = -I/usr/local/include -L/usr/local/lib -llber

          to src/zabbix_agent/Makefile and src/zabbix_server/Makefile but with no change in error.
          I was thinking more about the section that eliminates lines in the snprintf.c

          Comment

          • racoon
            Junior Member
            • Jun 2005
            • 3

            #6
            welshpjw: Sorry, seems i missed the point - sorry :-)
            Alexei: the patched snprintf.c seems to work here.

            Thx, now i'm gonna try if it's running here, too


            Frank

            Comment

            Working...