Source: posh
Version: 0.11
Severity: minor
Tags: patch

Posh fails to build with eglibc 2.16, in Ubuntu raring ringtail.

> gcc -DHAVE_CONFIG_H -I.   -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector 
> --param=ssp-buffer-size=4 -Wformat -Werror=format-security -MT jobs.o -MD -MP 
> -MF .deps/jobs.Tpo -c -o jobs.o jobs.c
> jobs.c: In function 'j_sigchld':
> jobs.c:1181:16: error: storage size of 'ru0' isn't known
> jobs.c:1181:21: error: storage size of 'ru1' isn't known
> jobs.c:1196:12: error: 'RUSAGE_CHILDREN' undeclared (first use in this 
> function)
> jobs.c:1196:12: note: each undeclared identifier is reported only once for 
> each function it appears in
https://launchpadlibrarian.net/121853091/buildlog_ubuntu-raring-i386.posh_0.11_FAILEDTOBUILD.txt.gz

Here's a trivial patch to fix the issue.

SR
Description: explicitly include sys/resource.h, for eglibc 2.16
 sys/resource.h is no longer included by sys/wait.h
 http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d94a4670800de6e8f088b8630ad5142866127980
Author: Stefano Rivera <stefa...@ubuntu.com>
Last-Updated: 2012-11-07

--- a/ksh_wait.h
+++ b/ksh_wait.h
@@ -5,6 +5,10 @@
 # include <sys/wait.h>
 #endif
 
+#ifdef HAVE_SYS_RESOURCE_H
+# include <sys/resource.h>
+#endif
+
 #ifndef POSIX_SYS_WAIT
 /* Get rid of system macros (which probably use union wait) */
 # undef WIFCORED

Reply via email to