Ad Widget

Collapse

Compile error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • edeus
    Senior Member
    • Aug 2005
    • 120

    #1

    Compile error

    Hello,

    I am trying to upgrade to beta3 but have his this wall (probably because I am using MySQL 5)

    Making all in zbxdbhigh
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/local/include/mysql -g -O2 -MT action.o -MD -MP -MF ".deps/action.Tpo" -c -o action.o action.c; then mv -f ".deps/action.Tpo" ".deps/action.Po"; else rm -f ".deps/action.Tpo"; exit 1; fi
    In file included from /usr/local/include/mysql/mysql.h:62,
    from ../../../include/db.h:31,
    from action.c:27:
    /usr/local/include/mysql/my_list.h:27: warning: useless keyword or type name in empty declaration
    /usr/local/include/mysql/my_list.h:27: error: two types specified in one empty declaration
    *** Error code 1
    Any ideas?

    mysql 5.0.15, php 5.05, freebsd 6.0-stable.
  • raa
    Junior Member
    • May 2005
    • 11

    #2
    Originally posted by edeus
    I am trying to upgrade to beta3 but have his this wall (probably because I am using MySQL 5)
    I use mysql 4.0.24 and get the same errors on debian stable.

    Comment

    • pdwalker
      Senior Member
      • Dec 2005
      • 166

      #3
      see here:

      Comment

      • rushowr
        Member
        • Jul 2005
        • 30

        #4
        Hello again...

        I'm trying to compile the latest beta for 1.1 and getting the same issue the original poster of this thread was...

        I tried to rename LIST to ZBX_LIST, but I don't know where/what LIST text to change.... I don't want to do a replace all, and going one by one is taking HOURS (using slow machine for compiling/testing)....

        The errors range from the original (keyword issue) to the new:
        common/common.c:186: error: syntax error before '*' token
        common/common.c: In function `free_list':
        common/common.c:187: error: number of arguments doesn't match prototype
        ../../../include/common.h:325: error: prototype declaration
        common/common.c: At top level:
        common/common.c:191: error: syntax error before '*' token
        common/common.c: In function `copy_list':
        common/common.c:192: error: number of arguments doesn't match prototype
        ../../../include/common.h:324: error: prototype declaration

        Can someone please just post a patch file? Or maybe update the CVS on sourceforge? I tried pulling the latest, but still no luck...

        CentOS 4.2, MySQL 4.1.12

        Comment

        • pdwalker
          Senior Member
          • Dec 2005
          • 166

          #5


          6th post down lists the two files.

          There are multiple instances of LIST in common.c that need to be replaced.

          search for them by hand, they are easy to recognize.

          if the compile fails, you missed an instance. the error message will tell you where you missed it.

          - Paul

          Comment

          • rushowr
            Member
            • Jul 2005
            • 30

            #6
            Thanks mate. I'll go back over it now.

            Sorry to have missed it, I'm usually a little better about that

            Comment

            • pdwalker
              Senior Member
              • Dec 2005
              • 166

              #7
              definately fixed in 1.1b4.

              Comment

              • edeus
                Senior Member
                • Aug 2005
                • 120

                #8
                Yes, working normally now.

                thanks!

                Comment

                Working...