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

error when compiling client library - incorrect client_settings.h

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.27
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      OSX 10.8

      Description

      User reports compile error on OSX 10.8 with latest Xcode, with several messages similar to

      client.c:1952: error: ‘cli_read_prepare_result’ undeclared here (not in a function)

      Further investigation shows that incorrect include file was used (sql/client_settings.h insteaqd of correct libmysql/client_settings.h). Unfortunately, even cmake's INCLUDE_DIRECTORY(BEFORE ..) does not help here, the error happens even if -I/path/to/libmysql precedes -I/path/to/libmysql on the command line.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            wlad Vladislav Vaintroub added a comment -

            This seems to be a compiler bug specific to Apple's gcc on Mountain Lion (10.8) - I cannot reproduce it on Lion(10.7)

            Show
            wlad Vladislav Vaintroub added a comment - This seems to be a compiler bug specific to Apple's gcc on Mountain Lion (10.8) - I cannot reproduce it on Lion(10.7)

              People

              • Assignee:
                wlad Vladislav Vaintroub
                Reporter:
                wlad Vladislav Vaintroub
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h