FS#20181 - [glibc] /usr/include/sys/user.h broken
Attached to Project:
Arch Linux
Opened by Eric Belanger (Snowman) - Wednesday, 14 July 2010, 19:20 GMT
Last edited by Allan McRae (Allan) - Thursday, 29 July 2010, 10:54 GMT
Opened by Eric Belanger (Snowman) - Wednesday, 14 July 2010, 19:20 GMT
Last edited by Allan McRae (Allan) - Thursday, 29 July 2010, 10:54 GMT
|
Details
Description:
While trying to fix a build issue with psmisc (full details here: https://sourceforge.net/tracker/index.php?func=detail&aid=3029302&group_id=15273&atid=115273 ), I realised that some configure test that were using '#include <sys/user.h>' were failing with the following error: /usr/include/sys/user.h:32:3: error: expected specifier-qualifier-list before ‘__uint16_t’ Adding '#include <bits/types.h>' before '#include <sys/user.h>', fixed the issue. The psmisc upstrem dev mentionned that his sys/user.h included unistd.h. Also, sys/user.h have this comment: /* The whole purpose of this file is for GDB and GDB only. Don't read too much into it. Don't use it for anything other than GDB unless you know what you are doing. */ So I'm not sure if this header problem is an actual bug or just a result of a misuse of the sys/user.h header. |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 29 July 2010, 10:54 GMT
Reason for closing: Upstream
Additional comments about closing: See final comment
Thursday, 29 July 2010, 10:54 GMT
Reason for closing: Upstream
Additional comments about closing: See final comment
Fedora uses this patch for psmisc:
http://cvs.fedoraproject.org/viewvc/rpms/psmisc/devel/psmisc-22.6-types.patch?revision=1.1&view=markup