STLport 5.0.1 won't build on SUN
Brought to you by:
complement
Hi,
I have a quick question for you. I cannot get
STLport 5.0.1 to build on a Solaris 9 machine using
gcc 4.0.2. I got it compiling using gcc 4.0.2 and
cygwin, but after moving to a SUN box I get the
following compile error:
gcc -ansi -pthreads -fPIC -O2 -I../../stlport -c -
o obj/gcc/shared/cxa.o ../../src/cxa.c
../../src/cxa.c:91: error: '_MUTEX_MAGIC' undeclared
here (not in a function)
Do you know how I can get around this quickly?
thanks,
Matt
Logged In: NO
I got a work around for now, but I think this is a bug.
On Solaris 9, '_MUTEX_MAGIC' has been renamed
to 'MUTEX_MAGIC' and is included in /usr/include/synch.h
instead of pthread.h.
Matt
Logged In: YES
user_id=615813
ultra5> find /usr/include -name "*.h" -print | xargs grep
_MUTEX_MAGIC
/usr/include/sys/types.h:#define _MUTEX_MAGIC
0x4d58 /* "MX" */
/usr/include/pthread.h: {{0, 0, 0, DEFAULT_TYPE,
_MUTEX_MAGIC}, {{{0}}}, 0}
/usr/include/synch.h:#define MUTEX_MAGIC
_MUTEX_MAGIC
ultra5> uname -a
SunOS ultra5 5.9 Generic_117171-08 sun4u sparc
SUNW,Ultra-5_10
Check compiler build or packages/patches.