[PATCH 2 of 2] libc/eglibc: [OS X] Don't Redefine Already Defined Types in rpc/types.h

Philip Belemezov philip@belemezov.net
Sat Apr 13 16:10:00 GMT 2013


On 13.04.2013 00:57, Yann E. MORIN wrote:
> Philip, All,
>
> On Tue, Mar 26, 2013 at 05:25:32PM +0200, Philip Belemezov wrote:
>> # HG changeset patch
>> # User Philip Belemezov <philip@belemezov.net>
>> # Date 1364300929 -7200
>> # Node ID 0926f7ff958ad637d4727e4e02ed2900ce29291a
>> # Parent  fcdf7fc7fd1c00715c3d9651ff00d805ecfb8aa8
>> libc/eglibc: [OS X] Don't Redefine Already Defined Types in rpc/types.h
>>
>> Apple already defines the u_char, u_short, etc. types in <sys/types.h>.
>> However, those are defined directly, without using the __u_char types.
>
> Ditto your previous patch.
>
> Regards,
> Yann E. MORIN.
>

Yann,


here's the error that lead me to create the above patch:

[ALL  ]    x86_64-build_apple-darwin12.2.1-gcc   -D_RPC_THREAD_SAFE_ 
-D_GNU_SOURCE -DIS_IN_build -include 
/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/config.h 
rpc_parse.c 		-o 
/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/sunrpc/cross-rpc_parse.o 
-MMD -MP -MF 
/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/sunrpc/cross-rpc_parse.o.dt 
-MT 
/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/sunrpc/cross-rpc_parse.o 
-c
[ALL  ]    mkdir 
/Volumes/cross-disk/test-osx/armv6-rpi-linux-gnueabihf/armv6-rpi-linux-gnueabihf/sysroot/usr/include/nfs
[ALL  ]    /Volumes/cross-disk/test-osx/.build/tools/bin/install -c -m 
644 ../sysdeps/unix/sysv/linux/nfs/nfs.h 
/Volumes/cross-disk/test-osx/armv6-rpi-linux-gnueabihf/armv6-rpi-linux-gnueabihf/sysroot/usr/include/nfs/nfs.h
[ALL  ]    x86_64-build_apple-darwin12.2.1-gcc   -D_RPC_THREAD_SAFE_ 
-D_GNU_SOURCE -DIS_IN_build -include 
/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/config.h 
rpc_scan.c 		-o 
/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/sunrpc/cross-rpc_scan.o 
-MMD -MP -MF 
/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/sunrpc/cross-rpc_scan.o.dt 
-MT 
/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/sunrpc/cross-rpc_scan.o 
-c
[ALL  ]    In file included from rpc_parse.c:39:
[ERROR]    rpc/types.h:73: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'u_char'
[ERROR]    rpc/types.h:74: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'u_short'
[ERROR]    rpc/types.h:75: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'u_int'
[ERROR]    rpc/types.h:76: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'u_long'
[ERROR]    rpc/types.h:77: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'quad_t'
[ERROR]    rpc/types.h:78: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'u_quad_t'
[ERROR]    rpc/types.h:79: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'fsid_t'
[ERROR]    rpc/types.h:83: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'daddr_t'
[ERROR]    rpc/types.h:84: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'caddr_t'
[ALL  ]    In file included from rpc_main.c:51:
[ALL  ]    proto.h:63:1: warning: "textdomain" redefined
[ALL  ]    In file included from rpc_main.c:41:
[ALL  ]    /usr/local/include/libintl.h:259:1: warning: this is the 
location of the previous definition
[ALL  ]    In file included from rpc_scan.c:44:
[ALL  ]    proto.h:63:1: warning: "textdomain" redefined
[ALL  ]    In file included from rpc_scan.c:40:
[ALL  ]    /usr/local/include/libintl.h:259:1: warning: this is the 
location of the previous definition
[ERROR]    make[3]: *** 
[/Volumes/cross-disk/test-osx/.build/armv6-rpi-linux-gnueabihf/build/build-libc-startfiles/sunrpc/cross-rpc_parse.o] 
Error 1
[ALL  ]    make[3]: *** Waiting for unfinished jobs....
[ERROR]    make[2]: *** [sunrpc/install-headers] Error 2
[ERROR]    make[1]: *** [install-headers] Error 2
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library headers & start 
files'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@216]
[ERROR]  >>        called from: 
do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@380]
[ERROR]  >>        called from: 
do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143]
[ERROR]  >>        called from: 
do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@60]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]


-- Philip

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list