Article View: gnu.gcc.help
Article #41771Need help with glibc-1.09
From: Zvonimir Tomislav Hlousek
Date: Fri, 16 Feb 1996 00:00
Date: Fri, 16 Feb 1996 00:00
57 lines
2509 bytes
2509 bytes
Hello,
I am having trouble compiling glibc-1.09 on SUN4 running SunOS-4.1.3
and I need help and/or advice!
For the library compilation I am using gnu-c, version 2.7.2 and gnu-make
version 3.74.
gcc-2.7.2 compiled fine (or so it seems) but when I try to compile
c-libraries the compilation ends in an error. Here is an excerpt
from the compilation log where it apparently breaks down:
"gcc version.c -c -Wall -Wno-parentheses -Wwrite-strings -g -I.
-I/mu/glibc-1.09/sun4 -Isysdeps/unix/bsd/sun/sunos4
-Isysdeps/unix/mman -Isysdeps/unix/bsd/sun/sparc -Isysdeps/unix/bsd/sun
-Isysdeps/unix/bsd -Isysdeps/unix/common -Isysdeps/unix/inet
-Isysdeps/unix/sparc -Isysdeps/unix -Isysdeps/posix -Isysdeps/sparc
-Isysdeps/ieee754 -Isysdeps/generic -Isysdeps/stub -DHAVE_SYS_SIGLIST=1
-DHAVE__CTYPE_=1 -DHAVE_PSIGNAL=1 -D_LIBC -o /mu/glibc-1.09/sun4/version.o
In file included from stdio.h:1,
from version.c:20:
stdio/stdio.h:167: parse error before `void'
gmake[1]: *** [/mu/glibc-1.09/sun4/version.o] Error 1
gmake[1]: Leaving directory `/mu/glibc-1.09'
gmake: *** [lib] Error 2"
I did some poking around and it appears that the offending line in
stdio.h file quoted by make reads:
extern __NORETURN void __libc_fatal __P ((__const char *__message));
If I remove __NORETURN the compilation will proceed until another occurence
of __NORETURN. Proceeding this way (i.e. removing __NORETURN in several more
*.h files) seems to let me finish the compilation. By the way, I also need
to remove
__CONSTVALUE from stdlib.h (and few other *.h files). What seems bizzare
is that
once the compilation is complete this way all the library tests appear to pass.
Normally I would accept this procedure as a fix. However when I try to use
the library
built this way many compilations suddendly no longer work (they worked
before I had the
library).
By the way, the gcc was built with gnu-ld and I try to build the library
with the
same option.
Help please.
Thanks.
Z. Hlousek
hlousek@csulb.edu
Technical Details
Message-ID:
<hlousek-1602961402460001@wolf.natsci.csulb.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,46e1d0ff25c96a37,start X-Google-Attributes: gid11318c,public From: hlousek@csulb.edu (Zvonimir Tomislav Hlousek) Subject: Need help with glibc-1.09 Date: 1996/02/16 Message-ID: <hlousek-1602961402460001@wolf.natsci.csulb.edu> X-Deja-AN: 139655063 organization: Department of Physics and Astronomy, CSULB newsgroups: gnu.gcc.help