I have a very simple c++ program like:
> cat easy_gcc.cc
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
int debugging = 1;
int main()
{
printf ("This is a very simple program\n");
return(0);
}
When I compile it on Solaris 9 it works fine:
> uname -a
SunOS admin-srv112 5.9 Generic_122300-07 sun4u sparc SUNW,Sun-Fire-480R
> /mu/bin/gcc -fPIC -c easy_gcc.cc
> /mu/bin/gcc -fPIC easy_gcc.o -o easy_gcc
> ./easy_gcc
This is a very simple program
When I try compiling it on Solaris 10, it blows up.
> uname -a
SunOS admin-srv44 5.10 Generic_118833-36 sun4v sparc SUNW,Sun-Fire-T200
> /mu/bin/gcc -fPIC -c easy_gcc.cc
In file included from /usr/include/sys/wait.h:24,
from /usr/include/stdlib.h:22,
from easy_gcc.cc:6:
/usr/include/sys/siginfo.h:259: error: 'ctid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/siginfo.h:260: error: 'zoneid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/siginfo.h:390: error: 'ctid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/siginfo.h:391: error: 'zoneid_t' is used as a type, but is not
defined as a type.
Can some one please help me out..