Bug 1081

Summary: SPARC compile problem due to changed header guards
Product: uClibc Reporter: Anonymous Poster <hideaki>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: uclibc-cvs
Priority: P5    
Version: 0.9.30.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: sparcv9-suse-linux-gnu Target:
Build: sparc64-suse-linux-gnu
Attachments: patch

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.