Skip to content

[Source compatibility suite] GDRB failing to build older revisions - error: cannot find 'strcmp' in scope #79796

@justice-adams-apple

Description

@justice-adams-apple

Description

GRDB is failing to build with older revisions after the SDK update with the following error:

GRDB.swift/GRDB/Core/StatementAuthorizer.swift:99:19: error: cannot find 'strcmp' in scope
 97 |             // are prevented when the truncate optimization is disabled.
 98 |             // Let's authorize such deletions by returning SQLITE_OK:
 99 |             guard strcmp(cString1, "sqlite_master") != 0 else { return SQLITE_OK }
    |                   `- error: cannot find 'strcmp' in scope
100 |             guard strcmp(cString1, "sqlite_temp_master") != 0 else { return SQLITE_OK }

This is failing to build with the listed 4.2, 5.1, 5.3, 5.7 revisions of the project

Reproduction

swift build --disable-sandbox --package-path GRDB.swift --verbose --configuration debug --build-tests -Xswiftc -swift-version -Xswiftc 5 -Xswiftc -enable-testing

Expected behavior

Expected to build properly

Environment

Apple Swift version 6.2-dev (LLVM 3a02857b159678d, Swift c91e295)
Target: x86_64-apple-macosx13.0

Additional information

https://ci.swift.org/job/swift-main-source-compat-suite-debug/1050

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.source compatibility suiteFlag: An issue that surfaced in the source compatibility suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions