[Aide] Darwin / OSX support

Axel Rau Axel.Rau at Chaos1.DE
Thu Apr 6 00:07:27 EEST 2006


Hi,

while using aide since 2002 on Mac OS X, I see that 0.11 (besides  
many bug fixes
and enhancements) has -static linking hard wired in for systems with  
gcc.

This does not and will never fit with Darwin / OSX because of its  
architecture.

To get this work again, I needed to re-activate $host_os which was  
empty on my box.
With the following patch and the inclusion of config.subs and  
config.guess, aide
did build fine on my OSX 10.4.6 box:
-------------------------------------------
diff -urNad aide/configure.in.orig aide/configure.in
--- aide/configure.in.orig      2006-03-29 10:08:08.000000000 +0200
+++ aide/configure.in   2006-04-05 20:51:28.000000000 +0200
@@ -59,6 +59,9 @@
dnl This is borrowed from libtool

+dnl Make sure $host_os set up:
+AC_CANONICAL_HOST
+
if test $ac_cv_prog_gcc = yes; then
      LD_STATIC_FLAG='-static'
@@ -89,6 +92,9 @@
         ## pic_flag=-Kconform_pic
         ## fi
         ;;
+    darwin*)
+        LD_STATIC_FLAG=""
+       ;;
      *)
         ## pic_flag='-fPIC'
         ;;
--------------------------------------------
However it did throw out some warnings like
--------------------------------------------
/usr/bin/ld: warning multiple definitions of symbol _dlclose
util.o definition of _dlclose in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib 
(dyldAPIsInLibSystem.o) definition of _dlclose
--------------------------------------------
which may confuse innocent souls but did pass the make check.
I will start production level tests tomorrow.

Axel
Axel Rau, ☀Frankfurt , Germany                       +49-69-951418-0




More information about the Aide mailing list