I have just finished porting FreeAdhocUDF to MacOSX and sent the Makefiles, code, plus 32bit UDF libraries for Firebird 1.5.5 and Firebird 2.x to the FreeAdhocUDF types to be included in the distribution.
Issues that you might need to be aware of.
1. In Firebird 1.5.5 we don't ship libib_util.dylib, and even if we did you wouldn't be able to link to it. It seems that Firebird 1.5.5's installer doesn't copy the library to the Framework. This has now been fixed for the next release. Secondly the library was being built as a bundle. All Firebird UDF's need to be created as bundles to work on MacOSX. You can't link a bundle to a bundle. This has also been fixed.
2. In Firebird 1.5.5 you must remove any extension from the UDF library (e.g dylib) to get it to work. So for example FreeAdhocUDF.dylib needs to be renamed to FreeAdhocUDF. This bug has been fixed in flu.cpp for the next version.
Firebird 2.x does not have any of these problems :-)
In compiling FreeAdhocUDF for MacOSX, it has to be noted that MacOSX has no idea of sysinfo.h, so I had to add a chunk of code to handle the getting of a MAC address, and to get the random_info/randomness for GUIDs. This does seem to work nicely now.
The FreeAdhocUDF libraries I have provided are 32bit intel for Firebird 1.5.5 and Firebird 2.x, if you want to build ppc libraries, or 64bit libraries enjoy. If you have problems, let me know.
On ppc you "might" have to add the following to the Makefile
i.e. change
LDFLAGS=$(CF) $(LIB) -bundle -flat_namespace -undefined suppress to
LDFLAGS=$(CF) $(LIB) -bundle -flat_namespace -undefined suppress /usr/sys/bundle.o
Friday, March 28, 2008
Subscribe to:
Post Comments (Atom)
4 comments:
Hi, do you know if it possible to compile the recent freeadhoc udf for firebird 2.5 (OS X el captain) ?
There is no reason why it shouldn't compile, but you need to bear in mind that the leatest versions of XCode use Clang and not GCC.
i have try with last source but it doesn't work a lot of error, when i do a make.
i have try with source 20080303 (there is a makefile.macosx) but i get the error that sysinfo.h file not found.
where i can find the source to compile this version that you have done ?
If there is a Makefile for MacOS then the code you are using, did - at one point in time compile without problems. Obviously its been a while since I did this, so I cannot comment on the current state of the code. IBPhoenix (www..ibphoenix.com) do offer professional support if you are interested.
Post a Comment