Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
L
libbsd
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • libbsd
  • libbsd
  • Issues
  • #1

Closed
Open
Opened Oct 13, 2018 by Ryan Schmidt@ryandesign

error: conflicting types for 'strmode'

I don't know whether building libbsd on macOS is expected to be useful, since macOS is already based on BSD, but in case this is meant to work, it doesn't; here's the error I get building libbsd 0.9.1 on macOS High Sierra:

In file included from arc4random.c:32:
In file included from ../include/bsd/string.h:28:
In file included from /usr/include/string.h:180:
In file included from /usr/include/strings.h:92:
../include/bsd/string.h:47:6: error: conflicting types for 'strmode'
void strmode(mode_t mode, char *str);
     ^
/usr/include/string.h:164:7: note: previous declaration is here
void     strmode(int __mode, char *__bp);
         ^
1 error generated.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: libbsd/libbsd#1