[Vortex] Patches for building on Mac OS X
Skye
skye at F4.ca
Fri Oct 10 18:53:18 CEST 2008
No, because of the PTHREAD_CFLAGS = none in the Makefiles...
Making all in src
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I.. -Wall -ansi -g -I.. -D__COMPILING_VORTEX__ -I/usr/local/include/axl
-DENABLE_VORTEX_LOG none -DVERSION=\""1.0.15.b3522.g3524"\"
-DENABLE_TLS_SUPPORT -DENABLE_XML_RPC_SUPPORT -DENABLE_TUNNEL_SUPPORT
-DPACKAGE_DTD_DIR=\""/usr/local/share"\" -DPACKAGE_TOP_DIR=\"".."\"
-DVORTEX_HAVE_POLL=1 -DDEFAULT_POLL -g -O2 -MT vortex.lo -MD -MP -MF
".deps/vortex.Tpo" -c -o vortex.lo vortex.c; \
then mv -f ".deps/vortex.Tpo" ".deps/vortex.Plo"; else rm -f
".deps/vortex.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -ansi -g -I.. -D__COMPILING_VORTEX__
-I/usr/local/include/axl -DENABLE_VORTEX_LOG none
-DVERSION=\"1.0.15.b3522.g3524\" -DENABLE_TLS_SUPPORT
-DENABLE_XML_RPC_SUPPORT -DENABLE_TUNNEL_SUPPORT
-DPACKAGE_DTD_DIR=\"/usr/local/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
make[2]: *** [vortex.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
zsh: exit 2 make
If I manually fix all the Makefiles to have
PTHREAD_CFLAGS =
Then it compiles OK, but with a bunch of warnings about:
/usr/bin/nm: no name list
/usr/bin/nm: no name list
and
ranlib: file: .libs/libvortex.a(vortex_handlers.o) has no symbols
ranlib: file: .libs/libvortex.a(vortex_win32.o) has no symbols
ranlib .libs/libvortex.a
ranlib: file: .libs/libvortex.a(vortex_handlers.o) has no symbols
ranlib: file: .libs/libvortex.a(vortex_win32.o) has no symbols
and
vortex-regression-client.c: In function
‘vortex_regression_client_read_file’:
vortex-regression-client.c:641: warning: format ‘%ld’ expects type ‘long
int’, but argument 3 has type ‘off_t’
vortex-regression-client.c: In function ‘test_04_ab_gen_md5’:
vortex-regression-client.c:1958: warning: format ‘%ld’ expects type ‘long
int’, but argument 3 has type ‘off_t’
vortex-regression-client.c: In function ‘test_02f_send_data’:
vortex-regression-client.c:2751: warning: format ‘%ld’ expects type ‘long
int’, but argument 5 has type ‘__darwin_suseconds_t’
vortex-regression-client.c: In function ‘test_02h’:
vortex-regression-client.c:2948: warning: format ‘%ld’ expects type ‘long
int’, but argument 4 has type ‘__darwin_suseconds_t’
vortex-regression-client.c:2963: warning: format ‘%ld’ expects type ‘long
int’, but argument 4 has type ‘__darwin_suseconds_t’
vortex-regression-client.c:2978: warning: format ‘%ld’ expects type ‘long
int’, but argument 4 has type ‘__darwin_suseconds_t’
vortex-regression-client.c:2993: warning: format ‘%ld’ expects type ‘long
int’, but argument 4 has type ‘__darwin_suseconds_t’
vortex-regression-client.c:3008: warning: format ‘%ld’ expects type ‘long
int’, but argument 4 has type ‘__darwin_suseconds_t’
vortex-regression-client.c:3031: warning: format ‘%ld’ expects type ‘long
int’, but argument 4 has type ‘__darwin_suseconds_t’
vortex-regression-client.c: In function ‘test_04_a_common’:
vortex-regression-client.c:3824: warning: format ‘%ld’ expects type ‘long
int’, but argument 3 has type ‘__darwin_suseconds_t’
vortex-regression-client.c:3862: warning: format ‘%ld’ expects type ‘long
int’, but argument 3 has type ‘__darwin_suseconds_t’
vortex-regression-client.c: In function ‘run_test’:
vortex-regression-client.c:5454: warning: format ‘%ld’ expects type ‘long
int’, but argument 3 has type ‘__darwin_suseconds_t’
vortex-regression-client.c:5459: warning: format ‘%ld’ expects type ‘long
int’, but argument 5 has type ‘__darwin_suseconds_t’
The regression listener cores when I try to run it:
$ ./vortex-regression-listener
Skipping SASL setup, since Vortex is not configured with SASL support
ready and waiting..
zsh: bus error ./vortex-regression-listener
running in gdb:
$ gdb .libs/vortex-regression-listener
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC
2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared
libraries ....... done
(gdb) run
Starting program:
vortex-1.0.15.b3522.g3524/test/.libs/vortex-regression-listener
Reading symbols for shared libraries ++++++. done
Skipping SASL setup, since Vortex is not configured with SASL support
ready and waiting..
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
[Switching to process 3805 thread 0x317]
0xffff061a in __bzero ()
(gdb) bt
#0 0xffff061a in __bzero ()
#1 0x00081b6c in __vortex_io_waiting_poll_clear (__fd_group=0x0) at
vortex_io.c:305
#2 0x000844b7 in __vortex_reader_run (ctx=0x800000) at vortex_reader.c:1225
#3 0x960ee6f5 in _pthread_start ()
#4 0x960ee5b2 in thread_start ()
(gdb)
--
View this message in context: http://n2.nabble.com/Re%3A-Patches-for-building-on-Mac-OS-X-tp1313518p1316915.html
Sent from the Vortex -- Open Source BEEP implementation mailing list archive at Nabble.com.
More information about the Vortex
mailing list