Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335947 - sys-apps/busybox-1.17.1 for MIPS fails to emerge using cross-compilation
Summary: sys-apps/busybox-1.17.1 for MIPS fails to emerge using cross-compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-04 15:02 UTC by Sergio Costas
Modified: 2010-09-28 16:53 UTC (History)
0 users

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 Sergio Costas 2010-09-04 15:02:41 UTC
When I try to emerge Busybox 1.17.1 using crosscompilation for MIPS, I receive a compilation error.

I attach a patch.

Reproducible: Always

Steps to Reproduce:
emerge-mipsel-unknown-linux-uclibc system
Actual Results:  
coreutils/date.c: In function 'date_main':
coreutils/date.c:210: error: 'struct stat' has no member named 'st_mtim'

Expected Results:  
Right compilation.

This patch (busybox-1.17.1-date.patch) fixes the problem.

--- a/coreutils/date.c  2010-09-04 16:37:18.269169000 +0200
+++ b/coreutils/date.c  2010-09-04 16:54:50.443406027 +0200
@@ -207,7 +207,7 @@
                xstat(filename, &statbuf);
                ts.tv_sec = statbuf.st_mtime;
 #if ENABLE_FEATURE_DATE_NANO
-               ts.tv_nsec = statbuf.st_mtim.tv_nsec;
+               ts.tv_nsec = statbuf.st_mtimensec;
 #endif
        } else {
 #if ENABLE_FEATURE_DATE_NANO
Comment 2 SpanKY gentoo-dev 2010-09-28 16:53:39 UTC
ive added the fix from upstream ... build should be ok now