Hello,

I'm trying to make a port for cfengine 3.3.0. The configure finishes
without errors, but the make stage quits with the following error:

libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/local/include -std=gnu99
-g -Wall -Wno-pointer-sign -Werror=implicit-function-declaration -pthread
-O2 -pipe -I/include -O2 -DNDEBUG -pthread -O2 -pipe -I/include -O2
-DNDEBUG -MT libpromises_la-cf3parse.lo -MD -MP -MF
.deps/libpromises_la-cf3parse.Tpo -c cf3parse.c
-o libpromises_la-cf3parse.o
In file included from cf3.defs.h:34,
                 from cf3parse.y:10:
cf.defs.h:303: error: conflicting types for 'socklen_t'
/usr/include/sys/types.h:163: error: previous declaration of 'socklen_t'
was here


The file cf.defs.h contains the following code (line 302-304):

#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif

Apparently HAVE_SOCKLEN_T is not defined, but should be. What is the
recommended way to handle this?

Kind regards,


Martijn Rijkeboer


PS: here's the Makefile I'm using (based on Okan's version):


# $OpenBSD: Makefile,v 1.38 2011/09/16 11:41:39 espie Exp $

COMMENT=        GNU system administration tool for networks

DISTNAME=       cfengine-3.3.0
CATEGORIES=     sysutils

HOMEPAGE=       https://www.cfengine.org/

MAINTAINER=     Martijn Rijkeboer <mart...@bunix.org>

# GPLv3
PERMIT_PACKAGE_CDROM=   Yes
PERMIT_PACKAGE_FTP=     Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=   Yes

WANTLIB=                c crypto m pthread pcre qdbm

MASTER_SITES=          
${HOMEPAGE}source-code/download?file=${DISTFILES}&dummy=/

CONFIGURE_STYLE=        gnu

CONFIGURE_ENV+=         CPPFLAGS=-I${LOCALBASE}/include \
                        LDFLAGS=-L${LOCALBASE}/lib

CONFIGURE_ARGS+=        --with-openssl=/usr \
                        --with-pcre \
                        --with-qdbm \
                        --without-mysql \
                        --without-postgresql \
                        --disable-shared \
                        --enable-static

LIB_DEPENDS=            databases/qdbm devel/pcre

.include <bsd.port.mk>

Reply via email to