PerfectlySoft / PerfectlySoft/Perfect-NIO

unable to build on Ubuntu 20.04 LTS

Open
#12 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
20
Forks
2
Avg merge
16m
Merged PRs (30d)
1

Description

$ 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running swift test -v on Ubuntu 20.04 and review PerfectLib/Sources/PerfectLib/Dir.swift, especially the reported directory and filesystem symbols. Determine why these symbols are unavailable in this environment, then verify that the project builds and tests successfully on Ubuntu 20.04.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, swift, ubuntu
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.