Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3754

LP:808233 - Default Int or undefined uint in typelib.h

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      When trying to build a client application against the mariaDB 5.2.4 or 5.2.7 library the compiler complains about undefined uint in the line.

      my system info
      windows XP pro 32bit
      mariaDB 5.2.7 and 5.2.4 noinstall zip's tested and same results occur on both visual c++ 2005 and visual c++2010
      with 5.2.4 and 5.2.7

      If this builds on nix or with a C compiler it because assumes its a int (default int) then that could be another issue as well, as uint would say to me that its suppose to be a unsigned int.

      The error occurs on the line 32 and 33 of typelib.h

      extern uint find_type_or_exit(const char *x, TYPELIB *typelib,
      const char *option);

      The compiler error messages are

      d:\mariadb\include\typelib.h(32) : error C2146: syntax error : missing ';' before identifier 'find_type_or_exit'
      d:\mariadb\include\typelib.h(32) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      d:\mariadb\include\typelib.h(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

      the fix is

      extern unsigned int find_type_or_exit(const char *x, TYPELIB *typelib,
      const char *option);

      eadthem

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            eadthemakip eadthem akip (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.