This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: glibc 2.0.95


Am Fri, 31 Jul 1998 schrieb Ulrich Drepper:
>Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:
>
>> It seems it breaks the KDE-1.0 configuration process in stdlib.h. It
>> doesn't recognize a lot of prototypes, cause the compiler (egcs-1.1cvs, -O2
>> -pedantic) complains about differing exception specifications, eg. for
>> strtod, in stdlib.h. Anyone else noticed this?
>
>If they use a stupid prototype recognition which works on the sources
>and not on the pre-processed output they are clueless and the code
>deserves to be broken.

Hmm don't know if I was clear enough. KDE tries to compile the following
example in configure:

// compile with: g++ -O2 -c -s -pedantic-errors test.C
#include <stdlib.h>
#include <unistd.>

int main()
{
	char buffer[200];
	gethostname(buffer,200);
	return 0;
}

Due to the -pedantic-errors the compilation FAILS and thus gethostname is
assumed not to be in the headers. Don't know if this method is valid or not.

During package building for PowerPC I found a little problem in two Makefiles,
build-static is used before Rules get included. This patch changes this to what
I think was intended:

--- misc/Makefile~	Fri Jul 31 20:59:51 1998
+++ misc/Makefile	Sat Aug  1 13:21:57 1998
@@ -58,9 +58,7 @@
 	    err error ustat \
 	    getsysstats dirname regexp
 aux := init-misc
-ifeq ($(build-static),yes)
 install-lib := libbsd-compat.a libg.a
-endif
 gpl2lgpl := error.c error.h
 
 tests := tst-dirname tst-tsearch tst-fdset tst-efgcvt tst-mntent
@@ -70,8 +68,10 @@
 
 include ../Rules
 
+ifeq ($(build-static),yes)
 $(objpfx)libbsd-compat.a: $(dep-dummy-lib); $(make-dummy-lib)
 $(objpfx)libg.a: $(dep-dummy-lib); $(make-dummy-lib)
+endif
 
 CFLAGS-init-misc.c = -fkeep-inline-functions
 
--- posix/Makefile~	Fri Jul 31 21:00:07 1998
+++ posix/Makefile	Sat Aug  1 13:22:52 1998
@@ -57,9 +57,7 @@
 test-srcs	:= globtest
 others		:= getconf
 install-bin	:= getconf
-ifeq (yes,$(build-static))
 install-lib	:= libposix.a
-endif
 gpl2lgpl := getopt.c getopt1.c getopt.h	regex.c regex.h
 
 before-compile	:= testcases.h ptestcases.h
@@ -84,7 +82,9 @@
 CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes
 CFLAGS-getaddrinfo.c = -DRESOLVER
 
+ifeq (yes,$(build-static))
 $(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib)
+endif
 lib: $(objpfx)libposix.a
 
 testcases.h: TESTS TESTS2C.sed


Franz.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]