Bug 1081 - SPARC compile problem due to changed header guards
Summary: SPARC compile problem due to changed header guards
Status: RESOLVED FIXED
Alias: None
Product: uClibc
Classification: Unclassified
Component: Networking (show other bugs)
Version: 0.9.30.1
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 13:43 UTC by Anonymous Poster
Modified: 2010-02-11 17:58 UTC (History)
1 user (show)

See Also:
Host: sparcv9-suse-linux-gnu
Target:
Build: sparc64-suse-linux-gnu


Attachments
patch (981 bytes, text/plain)
2010-02-11 17:41 UTC, Anonymous Poster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anonymous Poster 2010-02-11 13:43:32 UTC
CC libc/inet/ether_addr.os
In file included from /usr/include/linux/posix_types.h:47,
                 from /usr/include/linux/types.h:8,
                 from /usr/include/linux/if_ether.h:24,
                 from ./include/netinet/if_ether.h:26,
                 from ./include/netinet/ether.h:26,
                 from libc/inet/ether_addr.c:31:
/usr/include/asm/posix_types.h:46: error: redefinition of typedef '__kernel_size_t'
./include/bits/kernel_types.h:39: note: previous declaration of '__kernel_size_t' was here
/usr/include/asm/posix_types.h:47: error: redefinition of typedef '__kernel_ssize_t'
./include/bits/kernel_types.h:40: note: previous declaration of '__kernel_ssize_t' was here


Patch to fix that is attached.
Comment 1 Anonymous Poster 2010-02-11 17:41:32 UTC
Created attachment 1093 [details]
patch
Comment 2 Austin Foxley 2010-02-11 17:56:27 UTC
A fix for the changed include guards has already been committed on the 0_9_30 branch. You can download a snapshot of it at http://git.uclibc.org/uClibc/

It was included in the recent 0.9.30.2 release, but that had other problems for sparc. Your best bet currently is to use a snapshot of the 0_9_30 branch until we release 0.9.30.3.

Thanks!
Comment 3 Khem Raj 2010-02-11 17:58:06 UTC
it has been fixed on 0_9_30 by commit 3586f1c0ce94e766f0fc8d665fa76f8902e23773

The fix was cherry picked from master.