Article View: gnu.gcc.help
Article #41904Re: Problem compiling glibc-1.09
From: Bob Harmon
Date: Mon, 12 Feb 1996 00:00
Date: Mon, 12 Feb 1996 00:00
51 lines
2702 bytes
2702 bytes
Path: craygate.craycom.com!psinntp!psinntp!psinntp!howland.reston.ans.net!newsfeed.internetmci.com!chi-news.cic.net!nntp.coast.net!news00.sunet.se!sunic!news99.sunet.se!news.funet.fi!news.cs.hut.fi!freenet.hut.fi!mail.freenet.hut.fi!karuottu
From: karuottu@mail.freenet.hut.fi (kai ruottu,tornio)
Newsgroups: gnu.gcc.help
Date: 11 Feb 1996 12:13:02 GMT
Organization: Freenet Finland
Lines: 22
References: <4f6fh9$8i5@mippet.ci.com.au>
Reply-To: karuottu@mail.freenet.hut.fi (kai ruottu,tornio)
NNTP-Posting-Host: learnet.freenet.hut.fit.fi>
Distribution:
Yes, It seems that the all __attributes__ now must come AFTER the definition, not before.
This means that all of libc must be changed from:
This is what I figured out from digging into the include files...
__NORETURN void exit ();
to
void exit () __NORETURN;
todd@cps.com.au (Todd Saxton) writes:
>Can't compile glibc-1.09
>
>Am using gcc 2.7.2 on a sparc sun4 system with SunOS 4.1.3 2
>Seems to have problems with the __NORETURN define (defined in misc/sys/cdefs.h)
>,says "syntax error before void" where the declaration is __NORETURN void ...
This __NORETURN is defined as '__attribute__((volatile)) when working with
2.7.0 or newer. So those 'extern __NORETURN void ...' become:
'extern __attribute__ ((volatile)) void ...' that gcc-2.7.2 doesn't like...
(don't ask me why...), so just change the places so the protos say like:
'extern void __attribute__((volatile)) functionx(parameters);' or could the
end before ';' be a more suitable place for the '__NORETURN'...
If you get this compiled and to work somehow, I would be interested, I'm
thinking to make a cross-compiler from i386-ibcs2-world to Sparc, so a free
C-library would be needed... I have fighted with the SCO/SysV port of glibc-1.09
lately, using 2.7.2 to compile it...
--
Robert B. Harmon ! Bob_Harmon@craycom.com
Cray Communications !
9020 Junction Dr ! Any opinions expressed aren't mine...
Annapolis Jct. MD 20701 ! ...they're (lyons@world.std.com)
Technical Details
Message-ID:
<HARMON.96Feb12144609@canopus.craycom.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4f6fh9$8i5@mippet.ci.com.au> <4fkmge$182@freenet.huIn article <4fkmge$182@freenet.hut.fi> karuottu@mail.freenet.hut.fi (kai ruottu,tornio) writes:Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a5d4dba4d3e23d45 X-Google-Attributes: gid11318c,public From: harmon@canopus.craycom.com ( Bob Harmon) Subject: Re: Problem compiling glibc-1.09 Date: 1996/02/12 Message-ID: <HARMON.96Feb12144609@canopus.craycom.com> X-Deja-AN: 139109633 references: <4f6fh9$8i5@mippet.ci.com.au> <4fkmge$182@freenet.huIn article <4fkmge$182@freenet.hut.fi> karuottu@mail.freenet.hut.fi (kai ruottu,tornio) writes: organization: Cray Communications, Annapolis Junction, MD newsgroups: gnu.gcc.help