From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0d2ed721c5c346b1e1aae41490631006.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199706250938.FAA07728@churchy.gnu.ai.mit.edu> Date: Wed, 25 Jun 1997 13:03:15 +0000 From: Harald Albrecht Subject: g++ 2.7.2 crashes on RPC headers Maybe someone reading this list has a solution or maybe a work-around for my problem: at the Chair of Process Control Engineering, we're developing an open communication system for process data. The source run's fine on Linux/Intel, HP-UX, and Solaris using g++ 2.7.2.x. However on the Alpha, I can't get the whole thing to compile because gcc 2.7.2.1 just dumps core whenever it sees a header file belonging to the RPC stuff. An example of how to throw the error is quite simple: #include #include int main(int, char **) { return 42; } I'm sure it isn't the fourty-two that makes gcc fail :-) Below is a verbose output of the configuration and what happens... [harald@alpha2 harald]$ g++ -v test.cpp gcc -v test.cpp -lg++ -lstdc++ -lm Reading specs from /usr/lib/gcc-lib/alpha-linux/2.7.2.1/specs gcc version 2.7.2.1 /usr/lib/gcc-lib/alpha-linux/2.7.2.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__G NUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -D__alpha -D__alpha__ -D__linux__ -D__l inux -D_LONGLONG -Dlinux -Dunix -D__ELF__ -D__alpha -D__alpha__ -D__linux__ -D__ linux -D_LONGLONG -D__linux__ -D__unix__ -D__ELF__ -D__linux -D__unix -Asystem(l inux) -Acpu(alpha) -Amachine(alpha) -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C test.cpp /tmp/cca04805.ii GNU CPP version 2.7.2.1 (Alpha Linux/ELF) #include "..." search starts here: #include <...> search starts here: /usr/include/g++ /usr/local/include /usr/alpha-linux/include /usr/lib/gcc-lib/alpha-linux/2.7.2.1/include /usr/include End of search list. /usr/lib/gcc-lib/alpha-linux/2.7.2.1/cc1plus /tmp/cca04805.ii -quiet -dumpbase test.cc -version -o /tmp/cca04805.s GNU C++ version 2.7.2.1 (Alpha Linux/ELF) compiled by GNU C version 2.7.2.1. In file included from /usr/include/rpc/rpc.h:44, from test.cpp:13: /usr/include/rpc/xdr.h:257: declaration of `operator ++' as non-function /usr/include/rpc/xdr.h:257: confused by earlier errors, bailing out Has anyone either a new g++ ready for Linux/Alpha (sources / patches), or is at least someone working on this? I would be happy about any help, clues, etc. as it was hard to convince my boss to use Linux on our AlphaStations 255/233 instead of those "new technology" operating system. C'on, please show my boss that Linux is much better and more stable than nt! Harald Albrecht PS: The source of our open communication system is freely available at http://www.plt.rwth-aachen.de/ks/download.html Harald Albrecht Chair of Process Control Engineering Aachen University of Technology Turmstrasse 46, D-52064 Aachen, Germany Tel.: +49 241 80-7703, Fax: +49 241 8888-238 email: harald@plt.rwth-aachen.de -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com