Summary: | net-misc/dhcdbd-3.0 - /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | New packages | Assignee: | Steev Klimaszewski (RETIRED) <steev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | tom |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 259417 | ||
Attachments: | fixed dhcdbd-3.0-daemon.patch |
Description
Juergen Rose
2009-01-31 21:05:53 UTC
I get this bug also. Compiles with CFLAGS="-O0" as a temporary workaround. Created attachment 180631 [details, diff]
fixed dhcdbd-3.0-daemon.patch
Nevermind about CFLAGS="-O0", this seems to break stuff at runtime. line 22 of dhcdbd-3.0-daemon.patch was the issue it should be: + if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT, 0644)) == -1) instead of + if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT)) == -1) dhcdbd-2.8-daemon.patch should also be fixed in a similar way Replacing if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT)) == -1) with if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT, 0644)) == -1) in dhcdbd-2.8-daemon.patch solved the problem. *** This bug has been marked as a duplicate of bug 232084 *** |