From: Harald Albrecht <HARALD@plt.rwth-aachen.de>
Subject: g++ 2.7.2 crashes on RPC headers
Date: Wed, 25 Jun 1997 13:03:15 +0000 [thread overview]
Message-ID: <0d2ed721c5c346b1e1aae41490631006.axp-list@archive.invalid> (raw)
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 <rpc/rpc.h>
#include <rpc/pmap_clnt.h>
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
<plug>
PS: The source of our open communication system is freely available
at http://www.plt.rwth-aachen.de/ks/download.html
</plug>
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
reply other threads:[~1997-06-25 13:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox