Skip to content

Linux Support #6

@abegehr

Description

@abegehr

The package looks great and is easy to use!
However running on Linux as part of the vanilla Dockerfile for Vapor fails:

 > [app build  8/14] RUN swift build -c release                 --static-swift-stdlib                 -Xlinker -ljemalloc:
3.967 Building for production...
4.351 [0/874] Compiling _NumericsShims _NumericsShims.c
4.417 [1/874] Compiling _AtomicsShims.c
4.424 [2/874] Compiling errno.c
4.430 [2/874] Compiling a_type.c
4.430 [3/874] Compiling asn1_lib.c
4.430 [3/874] Compiling a_d2i_fp.c
4.431 [6/874] Compiling a_utctm.c
4.431 [6/874] Compiling a_time.c
6.993 [9/882] Compiling _NIOBase64 Base64.swift
7.041 [10/883] Compiling RealModule AlgebraicField.swift
7.335 [13/884] Compiling JSON Dictionary+JSON.swift
7.335 /build/.build/checkouts/json-apple/Sources/JSON/Dictionary+JSON.swift:73:9: error: cannot find 'CFBooleanGetTypeID' in scope
7.335         CFBooleanGetTypeID() == CFGetTypeID(self)
7.335         ^~~~~~~~~~~~~~~~~~
7.335 /build/.build/checkouts/json-apple/Sources/JSON/Dictionary+JSON.swift:73:33: error: cannot find 'CFGetTypeID' in scope
7.335         CFBooleanGetTypeID() == CFGetTypeID(self)
7.335                                 ^~~~~~~~~~~
7.335 /build/.build/checkouts/json-apple/Sources/JSON/JSON.swift:644:9: error: cannot find 'CFBooleanGetTypeID' in scope
7.335         CFBooleanGetTypeID() == CFGetTypeID(self)
7.335         ^~~~~~~~~~~~~~~~~~
7.335 /build/.build/checkouts/json-apple/Sources/JSON/JSON.swift:644:33: error: cannot find 'CFGetTypeID' in scope
7.335         CFBooleanGetTypeID() == CFGetTypeID(self)
7.335                                 ^~~~~~~~~~~
7.356 error: fatalError

The referenced symbol is in swift-corelibs-foundation: https://github.com/apple/swift-corelibs-foundation/blob/dbca8c7ddcfd19f7f6f6e1b60fd3ee3f748e263c/CoreFoundation/Base.subproj/CFRuntime.c#L732

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions