-Os and ndispatch.c

From: Harald Schmalzbauer <h_at_schmalzbauer.de>
Date: Mon, 15 Mar 2004 15:48:46 +0100
Please forget the following lines if "CFLAGS= -Os -pipe" is known to be 
unsupported.
Otherwise when trying to compile lib/libc/ (ndispatch.c) I get the following 
error:
cc -Os -pipe -march=i486 -I/usr/src/lib/libc/include 
-I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 
-D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 
-I/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES 
-DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-c /usr/src/lib/libc/net/nsdispatch.c
/usr/src/lib/libc/net/nsdispatch.c: In function `nss_configure':
/usr/src/lib/libc/net/nsdispatch.c:344: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/lib/libc/net/nsdispatch.c:346: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/lib/libc/net/nsdispatch.c: In function `_nsdbtput':
/usr/src/lib/libc/net/nsdispatch.c:380: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/lib/libc/net/nsdispatch.c: In function `nss_load_module':
/usr/src/lib/libc/net/nsdispatch.c:486: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/lib/libc/net/nsdispatch.c: In function `nss_atexit':
/usr/src/lib/libc/net/nsdispatch.c:514: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
/usr/src/lib/libc/net/nsdispatch.c:516: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
*** Error code 1

Stop in /usr/src/lib/libc

I don't speak too much C so I can't help here.
If I understand things right it should be part of Project Evil, so perhaps 
Bill Paul is interested in.

Thanks,

-Harry

Received on Mon Mar 15 2004 - 05:48:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:47 UTC