| Summary: | sys-apps/fakechroot-2.17.2 compilation failed with "array type has incomplete element type 'struct timespec'" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jiří Moravec <qjim> |
| Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | alonbl, bkohler, jstein |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Thank you for the report. Please *attach* the logfiles, https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29 and reopen this ticket (Status:unconfirmed). Probably a duplicate of bug 639816, which is more recent but has more details. Please open a new bug against the latest version if you still have issues *** This bug has been marked as a duplicate of bug 639816 *** |
build.log part: ... In file included from __lxstat.c:27:0: /usr/include/sys/stat.h:361:31: error: array type has incomplete element type 'struct timespec' const struct timespec __times[2], ^~~~~~~ __getwd_chk.c:25:0: warning: "_FORTIFY_SOURCE" redefined #define _FORTIFY_SOURCE 2 <built-in>: note: this is the location of the previous definition ... Solutions proposed in some forums for same error in different packages were: 1) --- fakechroot-2.17.2/src/__lxstat.c~ 2017-11-25 02:39:29.163331128 +0100 +++ fakechroot-2.17.2/src/__lxstat.c 2017-11-25 02:39:13.388331461 +0100 @@ -24,6 +24,7 @@ #define _ATFILE_SOURCE #define _XOPEN_SOURCE +#include <time.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> 2) --- fakechroot-2.17.2/src/__lxstat.c~ 2017-11-25 03:04:47.921299063 +0100 +++ fakechroot-2.17.2/src/__lxstat.c 2017-11-25 03:04:47.922299063 +0100 @@ -22,7 +22,7 @@ #ifdef HAVE___LXSTAT -#define _ATFILE_SOURCE +#define _USE_XOPEN2K8 #define _XOPEN_SOURCE #include <sys/stat.h> #include <unistd.h> Even just removal of "#define _ATFILE_SOURCE" line from __lxstat.c is enough for successful compilation.