patches/glibc/2.3.3/glibc-2.3.2-allow-gcc-3.5-xdr.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
yann@1
     1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sunrpc/rpc/xdr.h.diff?r1=1.27&r2=1.28&cvsroot=glibc
yann@1
     2
(but see also http://sources.redhat.com/ml/libc-alpha/2004-03/msg00267.html
yann@1
     3
and http://gcc.gnu.org/ml/gcc-patches/2004-03/msg02056.html)
yann@1
     4
yann@1
     5
Fixes errors
yann@1
     6
yann@1
     7
rpc_cmsg.c: In function `xdr_callmsg':
yann@1
     8
rpc_cmsg.c:70: error: invalid lvalue in increment
yann@1
     9
rpc_cmsg.c:71: error: invalid lvalue in increment
yann@1
    10
rpc_cmsg.c:74: error: invalid lvalue in increment
yann@1
    11
rpc_cmsg.c:77: error: invalid lvalue in increment
yann@1
    12
rpc_cmsg.c:78: error: invalid lvalue in increment
yann@1
    13
rpc_cmsg.c:79: error: invalid lvalue in increment
yann@1
    14
rpc_cmsg.c:81: error: invalid lvalue in increment
yann@1
    15
rpc_cmsg.c:89: error: invalid lvalue in increment
yann@1
    16
rpc_cmsg.c:106: error: invalid lvalue in increment
yann@1
    17
rpc_cmsg.c:107: error: invalid lvalue in increment
yann@1
    18
rpc_cmsg.c:112: error: invalid lvalue in increment
yann@1
    19
rpc_cmsg.c:117: error: invalid lvalue in increment
yann@1
    20
rpc_cmsg.c:118: error: invalid lvalue in increment
yann@1
    21
rpc_cmsg.c:119: error: invalid lvalue in increment
yann@1
    22
rpc_cmsg.c:121: error: invalid lvalue in increment
yann@1
    23
rpc_cmsg.c:160: error: invalid lvalue in increment
yann@1
    24
yann@1
    25
===================================================================
yann@1
    26
RCS file: /cvs/glibc/libc/sunrpc/rpc/xdr.h,v
yann@1
    27
retrieving revision 1.27
yann@1
    28
retrieving revision 1.28
yann@1
    29
diff -u -r1.27 -r1.28
yann@1
    30
--- libc/sunrpc/rpc/xdr.h	2002/12/16 02:05:49	1.27
yann@1
    31
+++ libc/sunrpc/rpc/xdr.h	2004/03/22 10:52:33	1.28
yann@1
    32
@@ -262,10 +262,8 @@
yann@1
    33
  * and shouldn't be used any longer. Code which use this defines or longs
yann@1
    34
  * in the RPC code will not work on 64bit Solaris platforms !
yann@1
    35
  */
yann@1
    36
-#define IXDR_GET_LONG(buf) \
yann@1
    37
-	((long)ntohl((u_long)*__extension__((u_int32_t*)(buf))++))
yann@1
    38
-#define IXDR_PUT_LONG(buf, v) \
yann@1
    39
-	(*__extension__((u_int32_t*)(buf))++ = (long)htonl((u_long)(v)))
yann@1
    40
+#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))
yann@1
    41
+#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))
yann@1
    42
 #define IXDR_GET_U_LONG(buf)	      ((u_long)IXDR_GET_LONG(buf))
yann@1
    43
 #define IXDR_PUT_U_LONG(buf, v)	      IXDR_PUT_LONG(buf, (long)(v))
yann@1
    44