Linux-Activists - GCC Channel digest. 94-9-20-1:28

Linux Activists ([email protected])
Thu, 20 Oct 1994 06:16:16 +0200


Topics:
Linux-Activists - GCC Channel digest. 94-9-19-6:33
Re: Warnings from latest g++

----------------------------------------------------------------------

From: Robert Sanders <[email protected]>
Subject: Linux-Activists - GCC Channel digest. 94-9-19-6:33
Date: Wed, 19 Oct 1994 15:25:49 -0400

> Question: is there anything left in Linux that requires non-ELF
> binaries. In particular, do we still need non-ELF binaries to build:

> (b) dynamicly loadable libraries for the Andrew system.

Building shared Andrew libraries is as easy as adding '-fpic' to
CFLAGS and '--shared' to the link command. However, there is no
distribution of ELF X libraries yet, so Andrew wouldn't be very
useful.

-- Robert

-- 
True: Prof lists famous unsolved problems; student thought it was homework
and solved it! (Student was George Dantzig.)  - alt.folklore.urban FAQ

Mail [email protected] for Atlanta Internet access.

------------------------------

From: Bernhard Heidegger <[email protected]> Subject: Re: Warnings from latest g++ Date: Wed, 19 Oct 1994 20:06:39 +0100 (MET)

On Wed, 19 Oct 1994, Linux Activists wrote:

> Due to g++ version 2.5.8 being unable to compile some code I had I > upgraded to the latest snapshot of gcc. This version is able to > compile the code, but I now get the following warnings. > > In file included from telnet.cc:17: > /usr/include/unistd.h:263: warning: declaration of `volatile void _exit(int)' > /usr/include/unistd.h:263: warning: conflicts with built-in declaration `void _exit(int)' > In file included from telnet.cc:22: > /usr/include/stdlib.h:246: warning: declaration of `volatile void abort()' > /usr/include/stdlib.h:246: warning: conflicts with built-in declaration `void abort()' > /usr/include/stdlib.h:262: warning: declaration of `volatile void exit(int)' > /usr/include/stdlib.h:262: warning: conflicts with built-in declaration `void exit(int)' > > It seems that the prototypes that g++ version 2.6.0-941014 expects > differ from those in the header files supplied with libc.so.4.6.16.

I think, /usr/include/sys/cdefs.h is the problem: [...] #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || defined(__cplusplus) ^^^^^^^^^^^^^^^^^^^^ /* Old GCC way. */ #ifndef __CONSTVALUE #define __CONSTVALUE __const__ #define __CONSTVALUE2 #endif #ifndef __NORETURN #define __NORETURN __volatile__ #define __NORETURN2 #endif #else /* New GCC way. */ [...]

Maybe the underlined __cplusplus causes the problems.

Bernhard.

---
+----------------------------+-------------------------------+
|   [email protected]   |   [email protected]   |
+----------------------------+-------------------------------+
| Bernhard Heidegger, Graz University of Technology, Austria |
+------------------------------------------------------------+
Worst day playing is better than best day working!

------------------------------

End of GCC Digest ***************** -------