GNOME Bugzilla – Bug 61139
build failure on Solaris
Last modified: 2004-12-22 21:47:04 UTC
gnome-vfs fails to build on Solaris 8 'cause the Solaris definition of PTHREAD_ONCE_INIT is wrong... typedef struct _once { upad64_t __pthread_once_pad[4]; } pthread_once_t; #define PTHREAD_ONCE_INIT {0, 0, 0, PTHREAD_ONCE_NOTDONE} (Should have an extra set of braces) --diable-more-warnings gets around this...
Okay - I'll work on this once I have a Solaris box handy (should be soon). Why must vendors ship broken systems :-(
Mark, I'd appreciate it if you could get this fixed in the Solaris headers. In the meantime, I'll try to come up with an appropriate configure check to detect this problem (It could use {PTHREAD_ONCE_INIT} instead of PTHREAD_ONCE_INIT if it detects the missing braces).
So PTHREAD_ONCE_INIT isn't used in gnome-vfs anymore. Closing the bug. This is what did it 2002-07-16 Michael Meeks <michael@ximian.com> * libgnomevfs/gnome-vfs-module-callback.c (stack_keys_alloc): kill in favour of (gnome_vfs_module_callback_private_init): this. (initialize_per_thread_if_needed): upd. (async_callback_response): broadcast instead of signalling, there might be multiple threads waiting.
Mass resetting target milestone to clean up gnome-vfs milestones. Please complain if I removed a milestone which should have been kept. Sorry for the spam