Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-106

Native client fopen_s problem

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • None
    • None
    • Windows XP, MinGW

    Description

      When building the native client (C connector) with MinGW, when try to run on Windows XP, we get the error:
      The procedure entry point fopen_s could not be located in the dynamic link library msvcrt.dll

      The problem is in https://github.com/MariaDB/connector-c/blob/master/libmariadb/my_fopen.c on line 39:
      #ifdef _WIN32
      if (fopen_s(&fd, FileName, type) == 0)
      #else
      if ((fd = fopen(FileName, type)) != 0)
      #endif

      Similar problem here:
      https://codereview.chromium.org/12189010/
      https://trac.torproject.org/projects/tor/ticket/9084

      Attachments

        Activity

          People

            georg Georg Richter
            MarianMunteanu Marian Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.