Build Information
Failed to build PacketCaptureBPF, reference 0.2.10 (aaa6c5), with Swift 6.1 for Android on 28 May 2025 03:13:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/PacketCaptureBPF.git
Reference: 0.2.10
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/OperatorFoundation/PacketCaptureBPF
* tag 0.2.10 -> FETCH_HEAD
HEAD is now at aaa6c50 Update CaptureDevice.swift
Cloned https://github.com/OperatorFoundation/PacketCaptureBPF.git
Revision (git rev-parse @):
aaa6c509569cb11904e35dd682bb581b9b2f8083
SUCCESS checkout https://github.com/OperatorFoundation/PacketCaptureBPF.git at 0.2.10
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/OperatorFoundation/PacketCaptureBPF.git
https://github.com/OperatorFoundation/PacketCaptureBPF.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "packetstream",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/OperatorFoundation/PacketStream.git"
},
{
"identity" : "datable",
"requirement" : {
"range" : [
{
"lower_bound" : "3.1.1",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/OperatorFoundation/Datable.git"
},
{
"identity" : "internetprotocols",
"requirement" : {
"range" : [
{
"lower_bound" : "2.1.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/OperatorFoundation/InternetProtocols.git"
},
{
"identity" : "bits",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/OperatorFoundation/Bits.git"
},
{
"identity" : "swiftqueue",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/OperatorFoundation/SwiftQueue.git"
}
],
"manifest_display_name" : "PacketCaptureBPF",
"name" : "PacketCaptureBPF",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "PacketCaptureBPF",
"targets" : [
"PacketCaptureBPF"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "PacketCaptureBPFTests",
"module_type" : "SwiftTarget",
"name" : "PacketCaptureBPFTests",
"path" : "Tests/PacketCaptureBPFTests",
"product_dependencies" : [
"InternetProtocols"
],
"sources" : [
"PacketCaptureBPFTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"PacketCaptureBPF"
],
"type" : "test"
},
{
"c99name" : "PacketCaptureBPF",
"module_type" : "SwiftTarget",
"name" : "PacketCaptureBPF",
"path" : "Sources/PacketCaptureBPF",
"product_dependencies" : [
"PacketStream",
"Datable",
"Bits",
"SwiftQueue"
],
"product_memberships" : [
"PacketCaptureBPF"
],
"sources" : [
"CaptureDevice.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/OperatorFoundation/PacketStream.git
Fetching https://github.com/OperatorFoundation/Bits.git
Fetching https://github.com/OperatorFoundation/Datable.git
Fetching https://github.com/OperatorFoundation/SwiftQueue.git
Fetching https://github.com/OperatorFoundation/InternetProtocols.git
[1/45] Fetching packetstream
[23/444] Fetching packetstream, datable
[422/514] Fetching packetstream, datable, swiftqueue
[488/636] Fetching packetstream, datable, swiftqueue, bits
[610/1103] Fetching packetstream, datable, swiftqueue, bits, internetprotocols
Fetched https://github.com/OperatorFoundation/PacketStream.git from cache (0.30s)
Fetched https://github.com/OperatorFoundation/Bits.git from cache (0.30s)
[750/936] Fetching datable, swiftqueue, internetprotocols
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.40s)
Fetched https://github.com/OperatorFoundation/SwiftQueue.git from cache (0.40s)
Fetched https://github.com/OperatorFoundation/InternetProtocols.git from cache (0.40s)
Computing version for https://github.com/OperatorFoundation/PacketStream.git
Computed https://github.com/OperatorFoundation/PacketStream.git at 0.2.1 (1.65s)
Computing version for https://github.com/OperatorFoundation/SwiftQueue.git
Computed https://github.com/OperatorFoundation/SwiftQueue.git at 0.1.3 (0.63s)
Computing version for https://github.com/OperatorFoundation/Bits.git
Computed https://github.com/OperatorFoundation/Bits.git at 2.0.1 (0.50s)
Computing version for https://github.com/OperatorFoundation/Datable.git
Computed https://github.com/OperatorFoundation/Datable.git at 3.1.5 (0.47s)
Computing version for https://github.com/OperatorFoundation/InternetProtocols.git
Computed https://github.com/OperatorFoundation/InternetProtocols.git at 2.2.1 (0.69s)
Creating working copy for https://github.com/OperatorFoundation/Bits.git
Working copy of https://github.com/OperatorFoundation/Bits.git resolved at 2.0.1
Creating working copy for https://github.com/OperatorFoundation/InternetProtocols.git
Working copy of https://github.com/OperatorFoundation/InternetProtocols.git resolved at 2.2.1
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at 3.1.5
Creating working copy for https://github.com/OperatorFoundation/PacketStream.git
Working copy of https://github.com/OperatorFoundation/PacketStream.git resolved at 0.2.1
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue.git
Working copy of https://github.com/OperatorFoundation/SwiftQueue.git resolved at 0.1.3
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/40] Compiling Datable Double+Stringable.swift
[8/40] Compiling Datable File.swift
[9/40] Compiling Datable Float+MaybeDatable.swift
[10/40] Compiling Datable Floatable.swift
[11/40] Compiling Datable Int+MaybeDatable.swift
[12/40] Compiling Datable Int+Stringable.swift
[13/40] Compiling Datable Intable.swift
[14/40] Compiling Datable MaybeDatable.swift
[15/44] Compiling Datable Data+Stringable.swift
[16/44] Compiling Datable Datable.swift
[17/44] Compiling Datable DatableConfig.swift
[18/44] Compiling Datable Double+MaybeDatable.swift
[19/44] Compiling Datable Data+ExpressibleByStringLiteral.swift
[20/44] Compiling Datable Data+Floatable.swift
[21/44] Compiling Datable Data+MaybeIntable.swift
[22/44] Compiling Datable Data+MaybeNetworkIntable.swift
[23/44] Compiling SwiftQueue Queue.swift
[24/44] Emitting module SwiftQueue
[25/44] Compiling SwiftQueue LinkedList.swift
[26/45] Compiling Datable MaybeIntable.swift
[27/45] Compiling Datable MaybeNetworkIntable.swift
[28/45] Compiling Datable NetworkDatable.swift
[29/45] Compiling Datable NetworkIntable.swift
[30/45] Compiling Datable String+Arrayable.swift
[31/45] Compiling Datable String+Datable.swift
[32/45] Compiling Datable String+Intable.swift
[33/45] Compiling Datable Stringable.swift
[34/45] Emitting module PacketStream
[35/45] Compiling PacketStream PacketStream.swift
[36/46] Emitting module Datable
[37/46] Compiling Datable Arrayable.swift
[38/46] Compiling Datable CSVable.swift
[39/46] Compiling Datable Data+Arrayable.swift
[40/46] Compiling Datable Data+Datable.swift
[43/46] Compiling Datable StringableArray+CSVable.swift
[44/46] Compiling Datable UInt+Datable.swift
[45/46] Compiling Datable UInt+MaybeNetworkDatable.swift
[46/46] Compiling Datable UInt+Stringable.swift
[48/51] Compiling Bits SimpleBits+MaybeIntable.swift
[49/51] Compiling Bits Bits.swift
[50/51] Emitting module Bits
[51/51] Compiling Bits Bits+MaybeIntable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[53/54] Emitting module PacketCaptureBPF
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:53:18: error: cannot find 'ifreq' in scope
51 | let packets = Queue<(Date, Data)>()
52 |
53 | var if_req = ifreq()
| `- error: cannot find 'ifreq' in scope
54 | var capturing: Bool = false
55 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:160:13: error: cannot find 'ioctl' in scope
158 | var bpf_stat = bpf_stat_struct(bs_recv: 0, bs_drop: 0)
159 |
160 | _ = ioctl(self.fd_bpf, BIOCGSTATS, &bpf_stat)
| `- error: cannot find 'ioctl' in scope
161 | //print("bpf_stat: \(bpf_stat)")
162 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:167:19: error: cannot find 'read' in scope
165 |
166 | // read from bpf device into buffer
167 | let len = read(self.fd_bpf, &self.buffer, Int(self.buffer_size) )
| `- error: cannot find 'read' in scope
168 |
169 | guard len != -1 else
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:193:31: warning: reference to class property 'endianess' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
191 | {
192 | //get the seconds
193 | DatableConfig.endianess = .little
| `- warning: reference to class property 'endianess' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
194 | guard let tv_sec_bits = bits.unpack(bytes: 4) else
195 | {
/host/spi-builder-workspace/.build/checkouts/Datable/Sources/Datable/DatableConfig.swift:14:23: note: class property declared here
12 | public static var stringEncoding: String.Encoding = .utf8
13 | public static var stringLiteralEncoding: StringLiteralEncoding = .utf8
14 | public static var endianess: Endianness = .big
| `- note: class property declared here
15 | public static let localEndianness: Endianness = determineLocalEndianness()
16 | }
[54/54] Compiling PacketCaptureBPF CaptureDevice.swift
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:53:18: error: cannot find 'ifreq' in scope
51 | let packets = Queue<(Date, Data)>()
52 |
53 | var if_req = ifreq()
| `- error: cannot find 'ifreq' in scope
54 | var capturing: Bool = false
55 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:78:18: error: cannot find 'open' in scope
76 | for i in 0...255 {
77 | let dev: String = "/dev/bpf" + i.string
78 | fd = open(dev, O_RDWR)
| `- error: cannot find 'open' in scope
79 | if fd != -1 {
80 | self.fd_bpf = fd
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:78:28: error: cannot find 'O_RDWR' in scope
76 | for i in 0...255 {
77 | let dev: String = "/dev/bpf" + i.string
78 | fd = open(dev, O_RDWR)
| `- error: cannot find 'O_RDWR' in scope
79 | if fd != -1 {
80 | self.fd_bpf = fd
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:87:35: error: cannot find 'Darwin' in scope
85 | else
86 | {
87 | print("* errno: \(Darwin.errno)")
| `- error: cannot find 'Darwin' in scope
88 | print("* \(dev)")
89 | }
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:115:19: error: cannot find 'ioctl' in scope
113 | self.capturing = true
114 | // set buffer size
115 | guard Int(ioctl(self.fd_bpf, BIOCSBLEN, &self.buffer_size)) == 0 else
| `- error: cannot find 'ioctl' in scope
116 | {
117 | throw BPFerror.couldNotSetBufferSize
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:122:19: error: cannot find 'ioctl' in scope
120 |
121 | // bind interface to the bpf device
122 | guard Int(ioctl(self.fd_bpf, BIOCSETIF, &if_req)) == 0 else
| `- error: cannot find 'ioctl' in scope
123 | {
124 | throw BPFerror.couldNotBindInterfaceToBPF
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:130:20: error: cannot find 'ioctl' in scope
128 | // enable promiscious mode
129 | // ioctl(fd, BIOCPROMISC, NULL)
130 | guard Int( ioctl(self.fd_bpf, BIOCPROMISC, 0 )) == 0 else
| `- error: cannot find 'ioctl' in scope
131 | {
132 | throw BPFerror.couldNotEnablePromiscuousMode
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:141:19: error: cannot find 'close' in scope
139 | public func stopCapture() throws {
140 | self.capturing = false
141 | guard Int(close(self.fd_bpf)) == 0 else
| `- error: cannot find 'close' in scope
142 | {
143 | throw BPFerror.couldNotCloseBPFFileHandle
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:160:13: error: cannot find 'ioctl' in scope
158 | var bpf_stat = bpf_stat_struct(bs_recv: 0, bs_drop: 0)
159 |
160 | _ = ioctl(self.fd_bpf, BIOCGSTATS, &bpf_stat)
| `- error: cannot find 'ioctl' in scope
161 | //print("bpf_stat: \(bpf_stat)")
162 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:167:19: error: cannot find 'read' in scope
165 |
166 | // read from bpf device into buffer
167 | let len = read(self.fd_bpf, &self.buffer, Int(self.buffer_size) )
| `- error: cannot find 'read' in scope
168 |
169 | guard len != -1 else
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:193:31: warning: reference to class property 'endianess' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
191 | {
192 | //get the seconds
193 | DatableConfig.endianess = .little
| `- warning: reference to class property 'endianess' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
194 | guard let tv_sec_bits = bits.unpack(bytes: 4) else
195 | {
/host/spi-builder-workspace/.build/checkouts/Datable/Sources/Datable/DatableConfig.swift:14:23: note: class property declared here
12 | public static var stringEncoding: String.Encoding = .utf8
13 | public static var stringLiteralEncoding: StringLiteralEncoding = .utf8
14 | public static var endianess: Endianness = .big
| `- note: class property declared here
15 | public static let localEndianness: Endianness = determineLocalEndianness()
16 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/35] Compiling SwiftQueue Queue.swift
[3/35] Compiling PacketStream PacketStream.swift
[4/35] Emitting module PacketStream
[5/36] Emitting module Datable
[7/40] Compiling Datable Double+Stringable.swift
[8/40] Compiling Datable File.swift
[9/40] Compiling Datable Float+MaybeDatable.swift
[10/40] Compiling Datable Floatable.swift
[11/40] Emitting module SwiftQueue
[12/40] Compiling SwiftQueue LinkedList.swift
[14/41] Compiling Datable Data+Stringable.swift
[15/41] Compiling Datable Datable.swift
[16/41] Compiling Datable DatableConfig.swift
[17/41] Compiling Datable Double+MaybeDatable.swift
[18/41] Compiling Datable String+Arrayable.swift
[19/41] Compiling Datable String+Datable.swift
[20/41] Compiling Datable String+Intable.swift
[21/41] Compiling Datable Stringable.swift
[22/41] Compiling Datable Arrayable.swift
[23/41] Compiling Datable CSVable.swift
[24/41] Compiling Datable Data+Arrayable.swift
[25/41] Compiling Datable Data+Datable.swift
[26/41] Compiling Datable Data+ExpressibleByStringLiteral.swift
[27/41] Compiling Datable Data+Floatable.swift
[28/41] Compiling Datable Data+MaybeIntable.swift
[29/41] Compiling Datable Data+MaybeNetworkIntable.swift
[30/41] Compiling Datable MaybeIntable.swift
[31/41] Compiling Datable MaybeNetworkIntable.swift
[32/41] Compiling Datable NetworkDatable.swift
[33/41] Compiling Datable NetworkIntable.swift
[34/41] Compiling Datable Int+MaybeDatable.swift
[35/41] Compiling Datable Int+Stringable.swift
[36/41] Compiling Datable Intable.swift
[37/41] Compiling Datable MaybeDatable.swift
[38/41] Compiling Datable StringableArray+CSVable.swift
[39/41] Compiling Datable UInt+Datable.swift
[40/41] Compiling Datable UInt+MaybeNetworkDatable.swift
[41/41] Compiling Datable UInt+Stringable.swift
[43/46] Compiling Bits Bits.swift
[44/46] Compiling Bits Bits+MaybeIntable.swift
[45/46] Compiling Bits SimpleBits+MaybeIntable.swift
[46/46] Emitting module Bits
error: emit-module command failed with exit code 1 (use -v to see invocation)
[48/49] Emitting module PacketCaptureBPF
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:53:18: error: cannot find 'ifreq' in scope
51 | let packets = Queue<(Date, Data)>()
52 |
53 | var if_req = ifreq()
| `- error: cannot find 'ifreq' in scope
54 | var capturing: Bool = false
55 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:160:13: error: cannot find 'ioctl' in scope
158 | var bpf_stat = bpf_stat_struct(bs_recv: 0, bs_drop: 0)
159 |
160 | _ = ioctl(self.fd_bpf, BIOCGSTATS, &bpf_stat)
| `- error: cannot find 'ioctl' in scope
161 | //print("bpf_stat: \(bpf_stat)")
162 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:167:19: error: cannot find 'read' in scope
165 |
166 | // read from bpf device into buffer
167 | let len = read(self.fd_bpf, &self.buffer, Int(self.buffer_size) )
| `- error: cannot find 'read' in scope
168 |
169 | guard len != -1 else
[49/49] Compiling PacketCaptureBPF CaptureDevice.swift
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:53:18: error: cannot find 'ifreq' in scope
51 | let packets = Queue<(Date, Data)>()
52 |
53 | var if_req = ifreq()
| `- error: cannot find 'ifreq' in scope
54 | var capturing: Bool = false
55 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:78:18: error: cannot find 'open' in scope
76 | for i in 0...255 {
77 | let dev: String = "/dev/bpf" + i.string
78 | fd = open(dev, O_RDWR)
| `- error: cannot find 'open' in scope
79 | if fd != -1 {
80 | self.fd_bpf = fd
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:78:28: error: cannot find 'O_RDWR' in scope
76 | for i in 0...255 {
77 | let dev: String = "/dev/bpf" + i.string
78 | fd = open(dev, O_RDWR)
| `- error: cannot find 'O_RDWR' in scope
79 | if fd != -1 {
80 | self.fd_bpf = fd
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:87:35: error: cannot find 'Darwin' in scope
85 | else
86 | {
87 | print("* errno: \(Darwin.errno)")
| `- error: cannot find 'Darwin' in scope
88 | print("* \(dev)")
89 | }
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:115:19: error: cannot find 'ioctl' in scope
113 | self.capturing = true
114 | // set buffer size
115 | guard Int(ioctl(self.fd_bpf, BIOCSBLEN, &self.buffer_size)) == 0 else
| `- error: cannot find 'ioctl' in scope
116 | {
117 | throw BPFerror.couldNotSetBufferSize
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:122:19: error: cannot find 'ioctl' in scope
120 |
121 | // bind interface to the bpf device
122 | guard Int(ioctl(self.fd_bpf, BIOCSETIF, &if_req)) == 0 else
| `- error: cannot find 'ioctl' in scope
123 | {
124 | throw BPFerror.couldNotBindInterfaceToBPF
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:130:20: error: cannot find 'ioctl' in scope
128 | // enable promiscious mode
129 | // ioctl(fd, BIOCPROMISC, NULL)
130 | guard Int( ioctl(self.fd_bpf, BIOCPROMISC, 0 )) == 0 else
| `- error: cannot find 'ioctl' in scope
131 | {
132 | throw BPFerror.couldNotEnablePromiscuousMode
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:141:19: error: cannot find 'close' in scope
139 | public func stopCapture() throws {
140 | self.capturing = false
141 | guard Int(close(self.fd_bpf)) == 0 else
| `- error: cannot find 'close' in scope
142 | {
143 | throw BPFerror.couldNotCloseBPFFileHandle
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:160:13: error: cannot find 'ioctl' in scope
158 | var bpf_stat = bpf_stat_struct(bs_recv: 0, bs_drop: 0)
159 |
160 | _ = ioctl(self.fd_bpf, BIOCGSTATS, &bpf_stat)
| `- error: cannot find 'ioctl' in scope
161 | //print("bpf_stat: \(bpf_stat)")
162 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:167:19: error: cannot find 'read' in scope
165 |
166 | // read from bpf device into buffer
167 | let len = read(self.fd_bpf, &self.buffer, Int(self.buffer_size) )
| `- error: cannot find 'read' in scope
168 |
169 | guard len != -1 else
BUILD FAILURE 6.1 android