Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to build on Ubuntu 20.04 LTS #12

Open
RockfordWei opened this issue May 29, 2022 · 1 comment
Open

unable to build on Ubuntu 20.04 LTS #12

RockfordWei opened this issue May 29, 2022 · 1 comment

Comments

@RockfordWei
Copy link

$ swift test -v
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:54: error: cannot find type 'dirent' in scope
    func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
                                                     ^~~~~~
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:114: error: cannot find type 'dirent' in scope
    func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
                                                                                                                 ^~~~~~
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:47:13: error: cannot find 'chdir' in scope
                let res = chdir(internalPath)
                          ^~~~~
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:57:8: error: cannot find 'getcwd' in scope
                        _ = getcwd($0.bindMemory(to: Int8.self).baseAddress, 2048)
                            ^~~~~~
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:64:10: error: cannot find 'access' in scope
                return access(path, F_OK) != -1
                       ^~~~~~
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:91:13: error: cannot find 'rmdir' in scope
                let res = rmdir(realPath)
                          ^~~~~
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:131:19: error: cannot find 'readdir' in scope
                guard let ent = readdir(d) else {
                                ^~~~~~~
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:19: error: cannot find 'opendir' in scope
                guard let dir = opendir(realPath) else {
                                ^~~~~~~
/tmp/Perfect-NIO/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:151:11: error: cannot find 'closedir' in scope
@eneisyou
Copy link

eneisyou commented Jul 6, 2024

仓库已弃用了吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants