Menu

#3 STLport 5.0.1 won't build on SUN

closed
None
5
2006-02-09
2006-01-31
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    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

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2006-02-08
    • assigned_to: nobody --> complement
     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2006-02-09

    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.

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2006-02-09
    • status: open --> closed
     

Log in to post a comment.