Skip to content

[SR-1251] Can't import libbsd from modulemap #43859

Open
@drewcrawford

Description

@drewcrawford
Previous ID SR-1251
Radar rdar://problem/66398034
Original Reporter @drewcrawford
Type Bug

Attachment: Download

Environment

swift-DEVELOPMENT-SNAPSHOT-2020-07-22-a
Linux x64

Additional Detail from JIRA
Votes 1
Component/s
Labels Bug, ClangImporter, Linux, ModuleMaps
Assignee None
Priority Medium

md5: 990948b78eef73ab0863e3462d1ceb9d

Issue Description:

I'm attempting to use libBSD.

Modulemap:

module BSD [system] {
    header "/usr/include/bsd/stdlib.h"
    export *
}
import BSD

Producing error

/usr/include/bsd/libutil.h:63:59: error: declaration of 'pid_t' must be imported from module 'SwiftGlibc.C.signal' before it is required
struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr);

See also SR-685

Metadata

Metadata

Assignees

No one assigned

    Labels

    LinuxPlatform: LinuxbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.module maps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions