From owner-freebsd-ports@FreeBSD.ORG Fri Aug 2 14:20:21 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4F73A628 for ; Fri, 2 Aug 2013 14:20:21 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D416128E7 for ; Fri, 2 Aug 2013 14:20:20 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id e53so361236eek.41 for ; Fri, 02 Aug 2013 07:20:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=/Bzn1KTStkfNshBK+t+RjCXE1Z1sfkyazf+S4CVneRQ=; b=AfJM9Yw/IR4A5vsIkFl7W98eaF0WXeb/k9SzgBvy2E1RrLCK855PqTWNihvREbCfMP y+vNV3WmLrcRYRzfmX+uZwUEj/SUo9DgFI4aV9TBwp9aJ624Supouhl/YVWm6mnFiVgB 0B4wdzcxFwzM6a678ZsEDDnCNsfdDiverZWddv18MsBHF1oyiYkT65G4Rn0DdGt4v/lh SgRPnG2LCU1aqwAxyWqdbBKdo6xM5wmyc29iK4EB/Yvvwg3TKagMWdLmw0JVZCnjPRlJ 3ms+NoDoTCJfG+JVASYOXjV6WKXZ707aRZhisFxAkOsO/Ts7bACum7QD5mNdwUYjPWaQ qDsg== X-Received: by 10.14.95.135 with SMTP id p7mr6087892eef.16.1375453212778; Fri, 02 Aug 2013 07:20:12 -0700 (PDT) Received: from phenom.cordula.ws (p5DDDBE03.dip0.t-ipconnect.de. [93.221.190.3]) by mx.google.com with ESMTPSA id a4sm12527671eez.0.2013.08.02.07.20.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Aug 2013 07:20:11 -0700 (PDT) Message-ID: <51FBC019.5070908@cordula.ws> Date: Fri, 02 Aug 2013 16:20:09 +0200 From: cpghost User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130711 Thunderbird/17.0.7 MIME-Version: 1.0 To: Johan van Selst Subject: Re: ports/172837: lang/swi-pl compiles with databases/libiodbc References: <51E2FA98.2060507@cordula.ws> <20130715051310.GA12675@mud.stack.nl> <51E425F2.3080607@cordula.ws> In-Reply-To: <51E425F2.3080607@cordula.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnGewzUGq7S2Li2cdSMUzvhXdeaFy9rlIMZYcudCNpLSanbXMG8VPFPoVFZFSKybpow0tzF Cc: ports@freebsd.org, bug-followup@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Aug 2013 14:20:21 -0000 On 07/15/13 18:40, cpghost wrote: > On 07/15/13 07:13, Johan van Selst wrote: >> cpghost wrote: >>> Unfortunately, when OPTION iodbc is selected, the port now fails >>> to compile: >> >> Corrected now, thanks for reporting. >> >> I have also disabled the optional Java interface (JPL) for now. >> Will try and figure out how to get this working with varios JDKs >> and add it as an option later. > > Thank you. > > The port still fails to compile: > > cc -shared -rdynamic -L/usr/local/lib -pthread > -L/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../lib/x86_64-freebsd -o > unix.so error.o unix.o > cc -O2 -Wall -fno-strict-aliasing -pthread -fPIC -O2 -pipe > -I/usr/local/include -fno-strict-aliasing > -I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../include > -I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib > -I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib/maildrop/rfc2045 > -I/usr/ports/lang/swi-pl/work/pl-6.2.6/src/../packages/clib/maildrop/rfc822 > -DHAVE_CONFIG_H -D__SWI_PROLOG__ -c -o uuid.o uuid.c > uuid.c: In function 'pl_uuid': > uuid.c:45: error: 'UUID_MAKE_V1' undeclared (first use in this function) > uuid.c:45: error: (Each undeclared identifier is reported only once > uuid.c:45: error: for each function it appears in.) > uuid.c:51: error: 'uuid_rc_t' undeclared (first use in this function) > uuid.c:51: error: expected ';' before 'urc' > uuid.c:73: error: 'UUID_MAKE_MC' undeclared (first use in this function) > uuid.c:74: error: 'UUID_MAKE_V3' undeclared (first use in this function) > uuid.c:75: error: 'UUID_MAKE_V4' undeclared (first use in this function) > uuid.c:76: error: 'UUID_MAKE_V5' undeclared (first use in this function) > uuid.c:114: warning: passing argument 1 of 'uuid_create' from > incompatible pointer type > uuid.c:114: error: too few arguments to function 'uuid_create' > uuid.c:115: error: 'urc' undeclared (first use in this function) > uuid.c:115: warning: implicit declaration of function 'uuid_make' > uuid.c:115: error: 'UUID_RC_OK' undeclared (first use in this function) > uuid.c:116: warning: implicit declaration of function 'uuid_error' > uuid.c:125: warning: passing argument 1 of 'uuid_create' from > incompatible pointer type > uuid.c:125: error: too few arguments to function 'uuid_create' > uuid.c:126: warning: passing argument 1 of 'uuid_create' from > incompatible pointer type > uuid.c:126: error: too few arguments to function 'uuid_create' > uuid.c:127: warning: implicit declaration of function 'uuid_load' > uuid.c:130: warning: implicit declaration of function 'uuid_destroy' > uuid.c:139: error: 'UUID_LEN_STR' undeclared (first use in this function) > uuid.c:143: warning: implicit declaration of function 'uuid_export' > uuid.c:143: error: 'UUID_FMT_STR' undeclared (first use in this function) > uuid.c:139: warning: unused variable 'buf' > uuid.c:147: error: 'UUID_LEN_SIV' undeclared (first use in this function) > uuid.c:152: error: 'UUID_FMT_SIV' undeclared (first use in this function) > uuid.c:147: warning: unused variable 'buf' > gmake[2]: *** [uuid.o] Error 1 > gmake[2]: Leaving directory > `/usr/ports/lang/swi-pl/work/pl-6.2.6/packages/clib' > gmake[1]: *** [objects] Error 1 > gmake[1]: Leaving directory `/usr/ports/lang/swi-pl/work/pl-6.2.6/packages' > gmake: *** [packages] Error 2 > *** [do-build] Error code 1 > > Stop in /usr/ports/lang/swi-pl. > *** [build] Error code 1 > > Stop in /usr/ports/lang/swi-pl. I've discovered the reason for this: If sysutils/sleuthkit is installed, so is also misc/e2fsprogs-libuuid. If misc/e2fsprogs-libuuid is installed, lang/swi-pl picks up the wrong header. Instead, deinstall e2fsprogs-libuuid, install instead misc/ossp-uuid, and then recompile lang/swi-pl. I'd suggest adding the following dependency to swi-pl's Makefile, so that misc/ossp-uuid gets installed (or bombs with a conflict with misc/e2fsprogs-libuuid): --- Makefile.orig 2013-08-01 19:47:37.000000000 +0200 +++ Makefile 2013-08-01 21:14:17.000000000 +0200 @@ -12,7 +12,8 @@ LIB_DEPENDS= gmp:${PORTSDIR}/math/gmp \ readline:${PORTSDIR}/devel/readline \ - jpeg:${PORTSDIR}/graphics/jpeg + jpeg:${PORTSDIR}/graphics/jpeg \ + uuid:${PORTSDIR}/misc/ossp-uuid OPTIONS_SINGLE= ODBC OPTIONS_SINGLE_ODBC= IODBC UNIXODBC Thanks, -cphgost. -- Cordula's Web. http://www.cordula.ws/