public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Philip Belemezov <philip@belemezov.net>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: crossgcc@sourceware.org
Subject: Re: [PATCH 2 of 2] libc/eglibc: [OS X] Don't Redefine Already Defined Types in rpc/types.h
Date: Sat, 13 Apr 2013 16:10:00 -0000	[thread overview]
Message-ID: <51698367.3020502@belemezov.net> (raw)
In-Reply-To: <20130412215701.GB12092@free.fr>

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

      parent reply	other threads:[~2013-04-13 16:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26 15:28 [PATCH 0 of 2] [OS X] Fix Compilation of eglibc-2.17 Philip Belemezov
2013-03-26 15:28 ` [PATCH 1 of 2] libc/eglibc: [OS X] Don't Use __block as a Name of an Argument Philip Belemezov
2013-04-12 21:51   ` Yann E. MORIN
2013-04-13  4:48     ` Philip Belemezov
2013-04-13  9:56       ` Yann E. MORIN
2013-04-14  8:13         ` Philip Belemezov
2013-03-26 15:28 ` [PATCH 2 of 2] libc/eglibc: [OS X] Don't Redefine Already Defined Types in rpc/types.h Philip Belemezov
2013-04-12 21:57   ` Yann E. MORIN
2013-04-13  6:29     ` Titus von Boxberg
2013-04-13 16:10     ` Philip Belemezov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51698367.3020502@belemezov.net \
    --to=philip@belemezov.net \
    --cc=crossgcc@sourceware.org \
    --cc=yann.morin.1998@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).