Hello Okan,

>> I'm trying to make a port for cfengine 3.3.0. The configure finishes
>> without errors,
>
> ... but you need to read config.log!

You're right.


>> Apparently HAVE_SOCKLEN_T is not defined, but should be. What is the
>> recommended way to handle this?
>
> The configure script is missing sys/types.h and incorrectly (not)
> defining HAVE_SOCKLEN_T.
>
> $OpenBSD$
> --- configure.orig    Fri Apr 13 18:01:26 2012
> +++ configure Fri Apr 13 18:02:03 2012
> @@ -15485,7 +15485,9 @@ _ACEOF
>
>  fi
>
> -ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include
> <sys/socket.h>
> +ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
> +#include <sys/types.h>
> +#include <sys/socket.h>
>  "
>  if test "x$ac_cv_type_socklen_t" = xyes; then :

The patch above makes it work.


> I don't have box that can build cfengine right in front of me right now,
> but I know I've got mostly working ports of cfengine3 in various stages
> scattered across a few places.  Time to find and merge them I guess :)
> (and hope the patches I sent upstream got integrated)

That would be nice. An up to date version of cfengine in OpenBSD would be
great.


> Let me know of other issues while I get my stuff together...

With your patch it compiles. It does need gmake however, otherwise I get
an error with the manpages (gmake is also required according to the
INSTALL file).

I still got issues with the location of some of the files (bin vs sbin
and share/doc vs share/doc/cfengine).

Kind regards,


Martijn Rijkeboer



Reply via email to