Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546086 - =app-admin/sudo-1.8.12: fails to build on uclibc and musl because undefined uid_t and gid_t
Summary: =app-admin/sudo-1.8.12: fails to build on uclibc and musl because undefined u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://www.sudo.ws/pipermail/sudo-wor...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-09 21:05 UTC by Anthony Basile
Modified: 2015-04-10 21:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2015-04-09 21:05:06 UTC
sudo 1.8.12 fails to build on both uclibc and musl systems because sudo_compat.h makes reference to uid_t and gid_t but does not include <sys/types.h>.  Because of the way the headers stack in glibc it works there but not in uclibc or musl.  Actually 1.8.13 *does* build but its still missing <sys/types.h> in the appropriate places and could break again if upstream moves things around.  I've alerted upstream and it has been fixed in the hg repo.  See the url for the thread.  See below for the final error message during the build of 1.8.12.

Also note I've added sudo-9999.ebuild to the tree for future testing.


In file included from signame.c:3:0:
../../include/sudo_compat.h:347:1: warning: parameter names (without types) in function declaration [enabled by default]
 int setresgid(gid_t, gid_t, gid_t);
 ^
../../include/sudo_compat.h:351:15: error: unknown type name 'gid_t'
 int getresgid(gid_t *, gid_t *, gid_t *);
               ^
../../include/sudo_compat.h:351:24: error: unknown type name 'gid_t'
 int getresgid(gid_t *, gid_t *, gid_t *);
                        ^
../../include/sudo_compat.h:351:33: error: unknown type name 'gid_t'
 int getresgid(gid_t *, gid_t *, gid_t *);
                                 ^
Makefile:458: recipe for target 'signame.lo' failed
make[1]: *** [signame.lo] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-admin/sudo-1.8.12/work/sudo-1.8.12/lib/util'
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2015-04-09 21:08:40 UTC
This bug is here to alert people because it has been resolved upstream and I have tested their fix.
Comment 2 SpanKY gentoo-dev 2015-04-09 22:01:15 UTC
(In reply to Anthony Basile from comment #1)

if upstream has committed a patch, feel free to backport it to the stable version
Comment 3 Anthony Basile gentoo-dev 2015-04-10 21:56:51 UTC
(In reply to SpanKY from comment #2)
> (In reply to Anthony Basile from comment #1)
> 
> if upstream has committed a patch, feel free to backport it to the stable
> version

Upstream commits are:

http://www.sudo.ws/repos/sudo/rev/86eb67f3c41a
http://www.sudo.ws/repos/sudo/rev/e0794f05e95c

I had to slightly modify them because of some changes between 1.8.12 and HEAD.  I double and triple tested because I don't want to break a stable ebuild.