[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cfengine under os x
From: |
John Valdes |
Subject: |
Re: cfengine under os x |
Date: |
Fri, 1 Nov 2002 02:00:28 -0600 |
User-agent: |
Mutt/1.2.5i |
On Thu, Oct 31, 2002 at 10:58:28AM -0800, Doug Nordwall wrote:
> Anyone managed to get this to compile and run without a bus error?
If you're getting bus errors when using command line options that take
arguments (eg, the "-f" option), then yes, after applying the patch
below. :) In this case, the bus error is being caused by different
getopt routines being used at compile and link time. The patch below
puts "-lpub" which contains the cfengine provided getopt at the front
of the library list; this is consistent with the getopt used at compile
time. See the post by Bryan Ramirez on Oct 18 to bug-cfengine
(gnu.cfengine.bug) for the gory details.
John
-------------------------------------------------------------------------
--- configure.ac.dist Fri Sep 20 07:34:16 2002
+++ configure.ac Fri Oct 11 03:22:59 2002
@@ -517,7 +517,7 @@
;;
esac
-dnl LIBS="$LIBS -L../pub -lpub"
+dnl LIBS="-L../pub -lpub $LIBS"
dnl #####################################################################
dnl Configure LOCKDIR and LOGDIR
@@ -558,7 +558,7 @@
AC_SUBST(NOWRAP)
-LIBS="$LIBS -L../pub -lpub"
+LIBS="-L../pub -lpub $LIBS"
dnl ####################################################################
dnl Set GCC CFLAGS only if using GCC.
- Re: cfengine under os x,
John Valdes <=