Hello fb hackers.

I tried recently to compile firebird trunk on my Mac OSX Lion system and ran 
into some issues, which I'll describe here.

* configuring

I put the following into my ~/.zshrc:

export LIBPREFIX='/opt/local'
export CPATH="$LIBPREFIX/include"
export CPPFLAGS="-I$LIBPREFIX/include -I$LIBPREFIX/include/libtommath"
export LDFLAGS="-L$LIBPREFIX/lib"
export CXXFLAGS="$CFLAGS"

export LIBTOOLIZE=glibtoolize
export LIBTOOL=glibtool



I installed the "icu" and "libtommath" ports from macports.

configure did not recognize my system.

I added the following stanza to configure.in:

Index: configure.in
===================================================================
--- configure.in (revision 54028)
+++ configure.in (working copy)
@@ -97,6 +97,20 @@
EXPORT_SYMBOLS_STYLE=darwin
;;
+ x86_64*-darwin*)
+dnl MAKEFILE_PREFIX=darwin_i386
+ MAKEFILE_PREFIX=darwin_x86_64
+ MAKEFILE_POSTFIX=darwin
+ PLATFORM=DARWIN
+ INSTALL_PREFIX=darwin
+ AC_DEFINE(DARWIN, 1, [Define this if OS is DARWIN])
+ XE_APPEND(-framework CoreFoundation,LIBS)
+ EDITLINE_FLG=Y
+ SHRLIB_EXT=dylib
+ CPU_TYPE=x86_64
+ EXPORT_SYMBOLS_STYLE=darwin
+ ;;
+
powerpc-*-darwin*)
MAKEFILE_PREFIX=darwin_powerpc
dnl MAKEFILE_PREFIX=darwin_ppc64



I just copied the i*86-*-darwin*) section. It would be better to combine the 
two into a single glob spec I think.

Then I ran:

sh autogen.sh --enable-superserver

which ran through successfully.

On make I got a strange error relating to sed:

make -C gen firebird
make TARGET=Release master_process
make updateBuildNum
(cd /Users/rkitover/src/firebird/firebird/trunk; ./src/misc/writeBuildNum.sh 
rebuildHeader)
files are identical
make export_lists
make[3]: Nothing to be done for `export_lists'.
make extern
make -C /Users/rkitover/src/firebird/firebird/trunk/extern/btyacc
make[4]: Nothing to be done for `all'.
make -f /Users/rkitover/src/firebird/firebird/trunk/gen/Makefile.extern.editline
make[4]: Nothing to be done for `libeditline'.
make boot
g++ -O3 -DDARWIN -pipe -p -MMD -fPIC -fno-common -mmacosx-version-min=10.6 
-I/Users/rkitover/src/firebird/firebird/trunk/src/include/gen 
-I/Users/rkitover/src/firebird/firebird/trunk/src/include -I/opt/local/include 
-I/opt/local/include/libtommath -D_THREAD_SAFE -fno-rtti 
-fvisibility-inlines-hidden -fvisibility=hidden -fno-weak 
-fvisibility-inlines-hidden -fvisibility=hidden -fno-weak 
-fvisibility-inlines-hidden -fvisibility=hidden -fno-weak -c 
/Users/rkitover/src/firebird/firebird/trunk/src/gpre/cme.cpp -o 
/Users/rkitover/src/firebird/firebird/trunk/temp/Release/gpre/cme.o
sed: -e: No such file or directory
make[3]: *** 
[/Users/rkitover/src/firebird/firebird/trunk/temp/Release/gpre/cme.o] Error 1
make[2]: *** [master_process] Error 2
make[1]: *** [firebird] Error 2
make: *** [firebird] Error 2



I could not find a "sed" invocation in any of the Makefiles so I don't know 
where it's coming from. Any help here would be greatly appreciated.

Trying a make -k, I get compile errors:

g++ -O3 -DDARWIN -pipe -p -MMD -fPIC -fno-common -mmacosx-version-min=10.6 
-I/Users/rkitover/src/firebird/firebird/trunk/src/include/gen 
-I/Users/rkitover/src/firebird/firebird/trunk/src/include -I/opt/local/include 
-I/opt/local/include/libtommath -D_THREAD_SAFE -fno-rtti 
-fvisibility-inlines-hidden -fvisibility=hidden -fno-weak 
-fvisibility-inlines-hidden -fvisibility=hidden -fno-weak 
-fvisibility-inlines-hidden -fvisibility=hidden -fno-weak -c 
/Users/rkitover/src/firebird/firebird/trunk/src/yvalve/gds.cpp -o 
/Users/rkitover/src/firebird/firebird/trunk/temp/Release/yvalve/gds.o
In file included from 
/Users/rkitover/src/firebird/firebird/trunk/src/yvalve/../jrd/../jrd/../jrd/cch.h:30,
from 
/Users/rkitover/src/firebird/firebird/trunk/src/yvalve/../jrd/../jrd/Database.h:34,
from /Users/rkitover/src/firebird/firebird/trunk/src/yvalve/../jrd/jrd.h:99,
from /Users/rkitover/src/firebird/firebird/trunk/src/yvalve/gds.cpp:130:  
/usr/include/dispatch/semaphore.h: In member function ‘void 
Firebird::SignalSafeSemaphore::enter()’:
/usr/include/dispatch/semaphore.h:86: error: too few arguments to function 
‘long int dispatch_semaphore_wait(dispatch_semaphore_s*, dispatch_time_t)’
/Users/rkitover/src/firebird/firebird/trunk/src/yvalve/../jrd/../jrd/../jrd/../common/classes/semaphore.h:118:
 error: at this point in file   



and some others.  



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to