#10 libval build failing on OSX 10.4.6

closed-fixed
nobody
None
5
2006-04-27
2006-04-24
No

libval fails to build on OSX 10.4.6 on both PPC and Intel architectures.

It cannot find PTHREAD_RWLOCK_INITIALIZER

Pasted in is the snippet of make output that fails. I'm attaching the full
make output as well. I did nothing special, just a './configure; make'

val_cache.c:37: error: 'PTHREAD_RWLOCK_INITIALIZER' undeclared here
(not in a function)
make[1]: *** [val_cache.lo] Error 1
/bin/sh ../..//libtool --mode=compile gcc -g -O2 -I../libsres -I. -I../
libsres/include -D_GNU_SOURCE -g -O2 -I../libsres -I. -I../libsres/
include -D_GNU_SOURCE -c -o val_cache.lo val_cache.c
gcc -g -O2 -I../libsres -I. -I../libsres/include -D_GNU_SOURCE -g -O2 -
I../libsres -I. -I../libsres/include -D_GNU_SOURCE -c val_cache.c -fno-
common -DPIC -o .libs/val_cache.o
val_cache.c:37: error: 'PTHREAD_RWLOCK_INITIALIZER' undeclared here
(not in a function)
make[1]: *** [val_cache.lo] Error 1
make: *** [subdirmake] Error 2

Discussion

  • Wesley Griffin

    Wesley Griffin - 2006-04-24

    full output of make

     
  • Wesley Griffin

    Wesley Griffin - 2006-04-27

    Logged In: YES
    user_id=6803

    Suresh sent my a val_cache.c file that removes all locking which allows libval to
    compile on OSX.

     
  • Wesley Griffin

    Wesley Griffin - 2006-04-27
    • status: open --> open-fixed
     
  • Wesley Griffin

    Wesley Griffin - 2006-04-27
    • status: open-fixed --> closed-fixed