I am having similar problems. I have traced the problem to the _SGIAPI symbol. It is defined in /usr/include/standards.h. I have managed to get everything to compile but I'm still trying to see if everything works with my changes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
Im trying to compile CommonC++ 1.4.0 under IRIX 6.5.
Im getting error messages. The first is (there is probably more to come!)
1% /usr/local/bin/gmake
Making all in posix
gmake[1]: Entering directory `/scratch/andersb/CommonC++-1.4.0/posix'
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I. -I../posix
-g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c inaddr.cpp
rm -f .libs/inaddr.lo
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../posix -g -O2 -D_GNU_SOURCE -D_REENTRANT -
D_THREAD_SAFE -c -DPIC inaddr.cpp -o .libs/inaddr.lo
In file included from config.h:542,
from inaddr.cpp:41:
/usr/include/netinet/in_systm.h:34: syntax error before `;'
inaddr.cpp: In method `bool cc_InetAddress::setIPAddress(const char *)':
inaddr.cpp:220: implicit declaration of function `int inet_aton(...)'
gmake[1]: *** [inaddr.lo] Error 1
gmake[1]: Leaving directory `/scratch/andersb/CommonC++-1.4.0/posix'
gmake: *** [all-recursive] Error 1
Please help!
As I guessed I got more errors.
The first one was fixed by redeclaring the function inet_aton as:
int inet_aton(const char *cp, struct in_addr *pin);
The next problem was that ip_mreq was not fully defined.
Fixed by explicitly defining:
struct ip_mreq {
struct in_addr imr_multiaddr;
struct in_addr imr_interface;
};
Something is wrong with the config settings. Ideas anyone?
I am having similar problems. I have traced the problem to the _SGIAPI symbol. It is defined in /usr/include/standards.h. I have managed to get everything to compile but I'm still trying to see if everything works with my changes.
If you have a patch for making IRIX work correctly, I would be happy to include it in the next release.