[Openthreads-info] OpenThreads on IRIX problem...
Brought to you by:
sspicer
From: Panar, T. <pa...@ct...> - 2003-10-07 21:03:27
|
OS: IRIX 6.5 Compiler: MIPS Pro v.7.41 When I run gmake I get the following: [snip completed stuff] CC -n32 -O2 -DOPENTHREADS_VERSION=\"1.2.1\" -DOPENTHREADS_VERSION_REVISION="" -DGLX_GLXEXT_PROTOTYPES -LANG:std -LIB:std -OPT:Olimit=0 -DEBUG:woff=1682 -DEBUG:woff=3303 -MDupdate Makedepend ARCH = 32 -I../.././include -I../.././include -I../.././include -I. -c ../PThreadCondition.c++ cc-1132 CC: ERROR File = /usr/include/sys/types.h, Line = 535 The namespace "std" has no member "time_t". __SGI_LIBC_USING_FROM_STD(time_t) ^ cc-1132 CC: ERROR File = /usr/include/sys/types.h, Line = 536 The namespace "std" has no member "clock_t". [snip rest of cc-1132 errors] ---------------------------------------------------------------------------- ------------------- I have hacked a mod to Make/makedefs to get it to compile with gcc 3.3 instead (gmake COMPILER=gnu), but I am not positive if I got all the flags right. Could anyone either help me out with the error (which I believe is really a compiler problem; info came from OpenSceneGraph on the same issue) or take a quick look at the changes I made to makedefs and point out any big problems? I don't know how to make a diff file either, but here are the old and new sections: Regards, -Tammie ----------------------------------- OLD ------------------------------------ #### IRIX Specific definitions ifeq ($(OS),IRIX) CXX = CC DEPARG = -M INC += -I${TOPDIR}/include DEF += -LANG:std -LIB:std -OPT:Olimit=0 \ -DEBUG:woff=1682 -DEBUG:woff=3303\ -MDupdate $(MAKEDEPEND)\ OPTF = -O2 DBGF = -g SHARED = -shared ARCH = 32 ifeq ($(ARCH),64) ARCHARGS = -64 else ARCHARGS = -n32 endif ARCH_EXT = $(ARCH) LINKARGS = -L${TOPDIR}/lib -LANG:std -LIB:std -OPT:Olimit=0 INSTXCMD = cp INSTRCMD = cp Endif ----------------------------------- NEW ------------------------------------ #### IRIX Specific definitions ifeq ($(OS),IRIX) ifeq ($(COMPILER),gnu) CXX = g++ DEF = -W -Wall -fPIC -fpermissive LINKARGS = -L${TOPDIR}/lib -OPT:Olimit=0 ifeq ($(ARCH),64) ARCHARGS = -m64 else ARCHARGS = endif else CXX = CC DEF += -LANG:std -LIB:std -OPT:Olimit=0 \ -DEBUG:woff=1682 -DEBUG:woff=3303\ -MDupdate $(MAKEDEPEND)\ ARCH = 32 ARCH_EXT = $(ARCH) ifeq ($(ARCH),64) ARCHARGS = -64 else ARCHARGS = -n32 endif LINKARGS = -L${TOPDIR}/lib -LANG:std -LIB:std -OPT:Olimit=0 endif DEPARG = -M SHARED = -shared INC += -I${TOPDIR}/include OPTF = -O2 DBGF = -g INSTXCMD = cp INSTRCMD = cp endif |