Hello,
I haven't been able to compile fsa-0.9.1 on macosx. I don't really get
the warnings (mentioned in the README) but some errors concerning
malloc.h and thread.h.
I've already had problems compiling other packages with malloc.h, but
since apple "has included this functionality elsewhere", removing the
#include <malloc.h> statements is usually enough. Unfortunately, this
doesn't work for thread.h and ost namespace -- for instance -- is not
recognized, etc. Has anyone had any experience compiling the toolkit on
macosx?
Thanks
here's the make result:
[babayaga: fsa-0.9.1]$ make
Rules.make:99: warning: overriding commands for target `install'
Makefile:43: warning: ignoring old commands for target `install'
************************************************************************
********
Project:\t\tThe RWTH FSA Toolkit
************************************************************************
********
Build host:\t\t myhostname
Build date:\t\t Tue May 3 13:04:12 CEST 2005
Build directory:\t /Users/araleius/Software/fsa-0.9.1
Processor:\t\tppc
Operating system:\tdarwin
Version:\t\t - standard
Profiling:\t\tnone
Compiler:\t\tgcc / g++
Preprocessor flags:\t-DSTANDARD -DBUILD="" -DPROC_ppc -DOS_darwin
-DARCH_darwin_ppc -D__BASE_DIR__="/Users/araleius/Software/fsa-0.9.1"
-D_GLIBCPP_USE_C99 -DTIMESTAMP -I. -I./src -I/usr/include
-I/sw/include/libxml2 -I/sw/include -I/usr/local/include/cc++2
C compiler flags:\t -funsigned-char -fno-exceptions -Wall -arch ppc
-O2 -mcpu=7450
C++ compiler flags:\t -funsigned-char -fno-exceptions -Wall -arch ppc
-O2 -mcpu=7450 -fpermissive -Woverloaded-virtual
Linker:\t\t\tg++
Linker flags:\t\t-L/sw/lib -lxml2 -lz -lpthread -L/sw/lib -liconv -lm
-L/usr/local/lib /usr/local/lib/libccgnu2.a -lz -framework vecLib -lm
-ldl -lpthread -prebind -undefined error
Installation directories:
Base:\t\t\t
Binaries:\t\t
Includes:\t\t
Libraries:\t\t
************************************************************************
********
make -C src build
../Rules.make:99: warning: overriding commands for target `install'
Makefile:30: warning: ignoring old commands for target `install'
make -C Core libSprintCore.darwin-ppc-standard.a
compiling Application.cc
In file included from Application.cc:14:
/usr/include/gcc/darwin/3.3/c++/cstdlib:139: error: `_Exit' not declared
/usr/include/gcc/darwin/3.3/c++/cstdlib:165: error: `_Exit' not declared
Application.cc:20:20: malloc.h: No such file or directory
In file included from Channel.hh:23,
from Component.hh:22,
from Application.hh:22,
from Application.cc:21:
../../src/Core/Thread.hh:18:25: cc++/thread.h: No such file or directory
In file included from Channel.hh:23,
from Component.hh:22,
from Application.hh:22,
from Application.cc:21:
../../src/Core/Thread.hh:23: error: `ost' is not a class or namespace
../../src/Core/Thread.hh:24: error: `Mutex' is not a class or namespace
../../src/Core/Thread.hh:24: error: invalid base-class specification
../../src/Core/Thread.hh: In constructor `Core::Mutex::Mutex()':
../../src/Core/Thread.hh:26: error: `ost' is not a class or namespace
../../src/Core/Thread.hh:26: error: `Mutex' is not a class or namespace
../../src/Core/Thread.hh:26: error: class `Core::Mutex' does not have
any field
named `ost'
../../src/Core/Thread.hh: In member function `void Core::Mutex::lock()':
../../src/Core/Thread.hh:27: error: `enterMutex' undeclared (first use
this
function)
../../src/Core/Thread.hh:27: error: (Each undeclared identifier is
reported
only once for each function it appears in.)
../../src/Core/Thread.hh: In member function `void
Core::Mutex::release()':
../../src/Core/Thread.hh:28: error: `leaveMutex' undeclared (first use
this
function)
../../src/Core/Thread.hh: At global scope:
../../src/Core/Thread.hh:31: error: `ost' is not a class or namespace
../../src/Core/Thread.hh:31: error: `MutexLock' is not a class or
namespace
../../src/Core/Thread.hh:31: error: invalid base-class specification
../../src/Core/Thread.hh:33: error: parse error before `::' token
../../src/Core/Thread.hh:33: error: missing ';' before right brace
../../src/Core/Thread.hh:36: error: `ost' is not a class or namespace
../../src/Core/Thread.hh:36: error: `Conditional' is not a class or
namespace
../../src/Core/Thread.hh:36: error: invalid base-class specification
../../src/Core/Thread.hh:48: error: `ost' is not a class or namespace
../../src/Core/Thread.hh:48: error: `Thread' is not a class or namespace
../../src/Core/Thread.hh:48: error: invalid base-class specification
Application.cc:220:2: warning: #warning "This is a workaround for
possible bug in LIBC 2.3.2. We are waiting for an answer on our bug
report."
Application.cc: In static member function `static int
Core::Application::main(int, char**)':
Application.cc:221: error: `M_TOP_PAD' undeclared (first use this
function)
Application.cc:221: error: `mallopt' undeclared (first use this
function)
make[2]: *** [.build/darwin-ppc-standard/Application.o] Error 1
make[1]: *** [Core] Error 2
make: *** [build] Error 2
[babayaga: fsa-0.9.1]$