[Vortex] Errors on OS X

Dave Dribin dave-ml at dribin.org
Wed Apr 30 21:50:38 CEST 2008


Hi all,

I've been trying to get version 1.0.13 compiling on OS X.  I've run  
into a few issues.

Compile Error #1
================

  gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -ansi -g -I.. - 
D__COMPILING_VORTEX__ -I/usr/local/encap/axl-0.4.14/include/axl -I/usr/ 
local/encap/gsasl-0.2.25/include -DENABLE_VORTEX_LOG none -DVERSION= 
\"1.0.13.b3306.g3306\" -DENABLE_TLS_SUPPORT -DENABLE_SASL_SUPPORT - 
DENABLE_XML_RPC_SUPPORT -DENABLE_TUNNEL_SUPPORT -DPACKAGE_DTD_DIR=\"/ 
usr/local/encap/vortex-1.0.13/share\" -DPACKAGE_TOP_DIR=\"..\" - 
DVORTEX_HAVE_POLL=1 -DDEFAULT_POLL -g -O2 -MT vortex.lo -MD -MP - 
MF .deps/vortex.Tpo -c vortex.c  -fno-common -DPIC -o .libs/vortex.o
i686-apple-darwin9-gcc-4.0.1: none: No such file or directory
In file included from vortex.c:40:
./vortex.h:422: error: conflicting types for 'unsetenv'
/usr/include/stdlib.h:247: error: previous declaration of 'unsetenv'  
was here

Commenting out the declarations for unsetenv and setenv fixes this.

Compilation Error #2
====================

  gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -ansi -g -I.. - 
D__COMPILING_VORTEX__ -I/usr/local/encap/axl-0.4.14/include/axl -I/usr/ 
local/encap/gsasl-0.2.25/include -DENABLE_VORTEX_LOG none -DVERSION= 
\"1.0.13.b3306.g3306\" -DENABLE_TLS_SUPPORT -DENABLE_SASL_SUPPORT - 
DENABLE_XML_RPC_SUPPORT -DENABLE_TUNNEL_SUPPORT -DPACKAGE_DTD_DIR=\"/ 
usr/local/encap/vortex-1.0.13/share\" -DPACKAGE_TOP_DIR=\"..\" - 
DVORTEX_HAVE_POLL=1 -DDEFAULT_POLL -g -O2 -MT vortex.lo -MD -MP - 
MF .deps/vortex.Tpo -c vortex.c  -fno-common -DPIC -o .libs/vortex.o
i686-apple-darwin9-gcc-4.0.1: none: No such file or directory

Somehow this is getting in my Makefiles:

   PTHREAD_CFLAGS = none

Changing this to the an empty string fixes this.

Runtime Error
=============

% ./vortex-listener
ready on: 0.0.0.0:44000, message: server ready for requests
zsh: bus error  ./vortex-listener

Here's the backtrace in gdb:

ready on: 0.0.0.0:44000, message: server ready for requests

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
[Switching to process 13311 thread 0x317]
0xffff061a in __bzero ()
(gdb) thread apply all bt

Thread 8 (process 13311 thread 0x2503):
#0  0x90637bce in __semwait_signal ()
#1  0x90662ee6 in _pthread_cond_wait ()
#2  0x906628cd in pthread_cond_wait$UNIX2003 ()
#3  0x0008eb8b in vortex_cond_wait (cond=0x1032ac, mutex=0x103280) at  
vortex_thread.c:647
#4  0x0008f135 in vortex_async_queue_pop (queue=0xb038d000) at  
vortex_thread.c:885
#5  0x000804ce in __vortex_thread_pool_dispatcher (data=0x14e) at  
vortex_thread_pool.c:82
#6  0x90661c55 in _pthread_start ()
#7  0x90661b12 in thread_start ()

Thread 7 (process 13311 thread 0x2103):
#0  0x90637bce in __semwait_signal ()
#1  0x90662ee6 in _pthread_cond_wait ()
#2  0x906628cd in pthread_cond_wait$UNIX2003 ()
#3  0x0008eb8b in vortex_cond_wait (cond=0x1032ac, mutex=0x103280) at  
vortex_thread.c:647
#4  0x0008f135 in vortex_async_queue_pop (queue=0xb030b000) at  
vortex_thread.c:885
#5  0x000804ce in __vortex_thread_pool_dispatcher (data=0x14e) at  
vortex_thread_pool.c:82
#6  0x90661c55 in _pthread_start ()
#7  0x90661b12 in thread_start ()

Thread 6 (process 13311 thread 0x1b03):
#0  0x90637bce in __semwait_signal ()
#1  0x90662ee6 in _pthread_cond_wait ()
#2  0x906628cd in pthread_cond_wait$UNIX2003 ()
#3  0x0008eb8b in vortex_cond_wait (cond=0x1032ac, mutex=0x103280) at  
vortex_thread.c:647
#4  0x0008f135 in vortex_async_queue_pop (queue=0xb0289000) at  
vortex_thread.c:885
#5  0x000804ce in __vortex_thread_pool_dispatcher (data=0x14e) at  
vortex_thread_pool.c:82
#6  0x90661c55 in _pthread_start ()
#7  0x90661b12 in thread_start ()

Thread 5 (process 13311 thread 0x1503):
#0  0x90637bce in __semwait_signal ()
#1  0x90662ee6 in _pthread_cond_wait ()
#2  0x906628cd in pthread_cond_wait$UNIX2003 ()
#3  0x0008eb8b in vortex_cond_wait (cond=0x1032ac, mutex=0x103280) at  
vortex_thread.c:647
#4  0x0008f135 in vortex_async_queue_pop (queue=0xb0207000) at  
vortex_thread.c:885
#5  0x000804ce in __vortex_thread_pool_dispatcher (data=0x14e) at  
vortex_thread_pool.c:82
#6  0x90661c55 in _pthread_start ()
#7  0x90661b12 in thread_start ()

Thread 4 (process 13311 thread 0x1103):
#0  0x90637bce in __semwait_signal ()
#1  0x90662ee6 in _pthread_cond_wait ()
#2  0x906628cd in pthread_cond_wait$UNIX2003 ()
#3  0x0008eb8b in vortex_cond_wait (cond=0x1032ac, mutex=0x103280) at  
vortex_thread.c:647
#4  0x0008f135 in vortex_async_queue_pop (queue=0xb0185000) at  
vortex_thread.c:885
#5  0x000804ce in __vortex_thread_pool_dispatcher (data=0x14e) at  
vortex_thread_pool.c:82
#6  0x90661c55 in _pthread_start ()
#7  0x90661b12 in thread_start ()

Thread 3 (process 13311 thread 0x113):
#0  0x90637bce in __semwait_signal ()
#1  0x90662ee6 in _pthread_cond_wait ()
#2  0x906628cd in pthread_cond_wait$UNIX2003 ()
#3  0x0008eb8b in vortex_cond_wait (cond=0x1020bc, mutex=0x102090) at  
vortex_thread.c:647
#4  0x0008f135 in vortex_async_queue_pop (queue=0xb0103000) at  
vortex_thread.c:885
#5  0x0007fae1 in __vortex_sequencer_run (_data=0x805a00) at  
vortex_sequencer.c:117
#6  0x90661c55 in _pthread_start ()
#7  0x90661b12 in thread_start ()

Thread 2 (process 13311 thread 0x317):
#0  0xffff061a in __bzero ()
#1  0x0007ad0c in __vortex_io_waiting_poll_clear (__fd_group=0x0) at  
vortex_io.c:306
#2  0x0007d547 in __vortex_reader_run (ctx=0x805a00) at  
vortex_reader.c:1204
#3  0x90661c55 in _pthread_start ()
#4  0x90661b12 in thread_start ()

Thread 1 (process 13311 local thread 0x2f2f):
#0  0x90637bce in __semwait_signal ()
#1  0x90662ee6 in _pthread_cond_wait ()
#2  0x906628cd in pthread_cond_wait$UNIX2003 ()
#3  0x0008eb8b in vortex_cond_wait (cond=0x10347c, mutex=0x103450) at  
vortex_thread.c:647
#4  0x0008f135 in vortex_async_queue_pop (queue=0xa00f8fa0) at  
vortex_thread.c:885
#5  0x0006bfae in vortex_listener_wait () at vortex_listener.c:805
#6  0x00001e63 in main (argc=1, argv=0xbffff518) at vortex-listener.c:92

I've given up for now. ;)  Suggestions?

-Dave




More information about the Vortex mailing list