2

我正在尝试clsql-mysql在 Windows 平台上使用。我正在使用 32 位 Clozure CL 和 32 位 MySQL 连接器库(来自 Oracle)来提供外部库。

我将连接器的路径添加到 %path% 以便 clsql 可以找到连接器库,并使用

(clsql:connect '("host" "db" "user" "pw"))

顺利进行并返回一个<MYSQL_DATABASE>对象。

但是,当我尝试执行简单的 SQL 查询时,出现以下错误:

;; Query
(clsql:query "select * from logentry where id = 3346;")
;; Error:
`Can't resolve foreign symbol "clsql_mysql_field_flags"`

这可能与 mysql 连接器的编译方式有关吗?从 MySQL 连接器提供的 INFO_BIN 文件中:

    ===== Information about the build process: =====
    Build was run at Thu 07/13/2017 on host 'VITRO50'

    Build was done on  Windows-6.2 using AMD64
    Build was done using cmake 3.2.3 

    ===== Compiler / generator used: =====
    Visual Studio 14 2015

    Pointer size: 4

    ===== Feature flags used: =====
    -- Cache values
    CANDLE_EXECUTABLE:FILEPATH=C:/Program Files (x86)/WiX Toolset v3.10/candle.exe
    CMAKE_CONFIGURATION_TYPES:STRING=DebugReleaseMinSizeRelRelWithDebInfo
    CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/LibMySQL
    COMMUNITY_BUILD:BOOL=ON
    DEBUG_EXTNAME:BOOL=ON
    ENABLED_PROFILING:BOOL=ON
    ENABLE_DEBUG_SYNC:BOOL=ON
    ENABLE_GCOV:BOOL=OFF
    ENABLE_GPROF:BOOL=OFF
    EXTRA_INSTALL:BOOL=G:\ade\build\sb_0-24199034-1499945748.28/mysql-connector-c-6.1.11-vs12-win32/lib/mysqlclient.liblib/vs12DevelopmentG:\ade\build\sb_0-24199034-1499945748.28/mysql-connector-c-6.1.11-vs12-win32/lib/debug/mysqlclient.liblib/vs12/debugDebugBinariesG:\ade\build\sb_0-24199034-1499945748.28/mysql-connector-c-6.1.11-vs14-win32/lib/mysqlclient.liblib/vs14DevelopmentG:\ade\build\sb_0-24199034-1499945748.28/mysql-connector-c-6.1.11-vs14-win32/lib/debug/mysqlclient.liblib/vs14/debugDebugBinaries
    FEATURE_SET:STRING=community
    HEAT_EXECUTABLE:FILEPATH=C:/Program Files (x86)/WiX Toolset v3.10/heat.exe
    INSTALL_LAYOUT:STRING=STANDALONE
    LIGHT_EXECUTABLE:FILEPATH=C:/Program Files (x86)/WiX Toolset v3.10/light.exe
    MYSQL_DATADIR:PATH=C:/Program Files/MySQL/MySQL Server 6.1/data
    MYSQL_KEYRINGDIR:PATH=C:/Program Files/MySQL/MySQL Server 6.1/keyring
    MYSQL_MAINTAINER_MODE:BOOL=OFF
    PKG_INSTALL_PREFIX:PATH=C:/Program Files (x86)/LibMySQL
    TMPDIR:PATH=
    WIN_DEBUG_NO_INLINE:BOOL=OFF
    WITH_ARCHIVE_STORAGE_ENGINE:BOOL=ON
    WITH_ASAN:BOOL=OFF
    WITH_BLACKHOLE_STORAGE_ENGINE:BOOL=ON
    WITH_CLIENT_PROTOCOL_TRACING:BOOL=ON
    WITH_DEBUG:BOOL=OFF
    WITH_DEFAULT_COMPILER_OPTIONS:BOOL=ON
    WITH_DEFAULT_FEATURE_SET:BOOL=ON
    WITH_EMBEDDED_SERVER:BOOL=ON
    WITH_EXTRA_CHARSETS:STRING=all
    WITH_FEDERATED_STORAGE_ENGINE:BOOL=ON
    WITH_INNOBASE_STORAGE_ENGINE:BOOL=ON
    WITH_MSAN:BOOL=OFF
    WITH_MSCRT_DEBUG:BOOL=OFF
    WITH_NUMA:BOOL=ON
    WITH_PARTITION_STORAGE_ENGINE:BOOL=ON
    WITH_SSL:STRING=bundled
    WITH_TEST_TRACE_PLUGIN:BOOL=OFF
    WITH_UBSAN:BOOL=OFF
    WITH_UNIT_TESTS:BOOL=OFF
    WITH_ZLIB:STRING=bundled
    WIX_DIR:PATH=C:/Program Files (x86)/WiX Toolset v3.10

    ===== EOF =====

在搜索此错误时,我能找到的唯一结果是与 Ubuntu 上的类似问题相关的结果。

如何开始调试此错误,或者如何修复此错误以使 SQL 查询完成而不会出现错误?

4

0 回答 0