On Mon, 18 Sep 2006, amit wrote:
I am using gcc3.3.5 on solaris2.7. Its a 64 bit compilation
I am compiling a file 'plugin.cpp'. It includes mach.h and the complation gives
the following error.
-----------------------------------------------------------------
mach.h error: conflicting
types for `typedef vx_u32_t off32_t'
/usr/include/sys/types32.h:30: error: previous declaration as `typedef int32_t
off32_t'
------------------------------------------------------------
I cant remove mach.h, neither i can edit the file mach.h
Where did you get this file from ?
The declaration reads a bit like vxfs (which uses a 'vx_u32_t' datatype).
Makes a good question why this "mach.h" tries to redefine a POSIX
datatype. And of course why you can't change that file.
FrankH.
Is there any particular switch/flag which can resolve the conflicting 'typedef'
error
The flags i am using are -
/usr/local/gcc/3.3.5/bin/gcc -c -fpermissive -fno-gnu-keywords -DXTFUNCPROTO -Usun -xildoff -fPIC
-m64 -xchip=ultra -xarch=v9 -xnone -DLGTO_LP64 -g -DIDENT -DALT_ORIGIN=\"../lib/nsr\"
-DDM_SOLARIS -D_POSIX_PTHREAD_SEMANTICS -DASYNC_IO -DNSR_POSIX4_ASYNC_IO -Dsolaris -DRELEASE_27
-DDM_BUILD=\"tmp\" -DHSM_SERVER -D__lgto
ndmp__ -DSNMP_SUPPORT -DENABLERS -DSTL_SUPPORT -DSTL_CLIENT_SUPPORT
-DOPENVAULT_SUPPORT -Dsolaris64
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]
==========================================================================
No good can come from selling your freedom, not for all gold of the world,
for the value of this heavenly gift exceeds that of any fortune on earth.
==========================================================================
_______________________________________________
opensolaris-discuss mailing list
[email protected]