Skip to content

error: cannot find 'SOCK_DGRAM' in scope on UBUNTU #16

@daewonyoon

Description

@daewonyoon

I tried to test your ConfigParser package on Ubuntu 20.04.

  • added .package(url: "https://github.com/Ponyboy47/ConfigParser.git", from: "0.4.0"), in my Package.swift.
  • typed swift run and got error messages like following and for SOCK_STREAM.
.build/checkouts/Pathman/Sources/Pathman/CInterop/socket/SocketType.swift:18:55: 
error: cannot find 'SOCK_DGRAM' in scope
    public static let datagram = SocketType(rawValue: SOCK_DGRAM)

Package.resolved has

    {
      "identity" : "configparser",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/Ponyboy47/ConfigParser.git",
      "state" : {
        "revision" : "b7d9b1df44b17e108bba16839ee693092cb4cfb6",
        "version" : "0.4.0"
      }
    },
    {
      "identity" : "errno",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/Ponyboy47/ErrNo",
      "state" : {
        "revision" : "178566b112afe6bef3770678f1bbab6e5c626993",
        "version" : "0.5.2"
      }
    },
    {
      "identity" : "pathman",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/Ponyboy47/Pathman.git",
      "state" : {
        "revision" : "e8d3e299f53a47c93aa6ebfc0d65d2798a4e769d",
        "version" : "0.20.1"
      }
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions