From owner-freebsd-ports@FreeBSD.ORG Wed Oct 3 22:44:21 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A924416A420 for ; Wed, 3 Oct 2007 22:44:21 +0000 (UTC) (envelope-from chrissicool@chrissicool.net) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2585D13C48E for ; Wed, 3 Oct 2007 22:44:20 +0000 (UTC) (envelope-from chrissicool@chrissicool.net) Received: from [10.0.0.240] (port-83-236-4-190.dynamic.qsc.de [83.236.4.190]) by mx01.qsc.de (Postfix) with ESMTP id 62046C82AE; Thu, 4 Oct 2007 00:44:18 +0200 (CEST) From: Christian Ludwig To: lists@socruel.nu In-Reply-To: <53472.80.127.130.242.1191166213.squirrel@imeel.socruel.nu> References: <53969.80.127.130.242.1190785632.squirrel@imeel.socruel.nu> <1190981550.6103.9.camel@weasel.chrissicool.shacknet.nu> <53472.80.127.130.242.1191166213.squirrel@imeel.socruel.nu> Content-Type: text/plain Date: Thu, 04 Oct 2007 00:44:18 +0200 Message-Id: <1191451458.6082.14.camel@weasel.chrissicool.shacknet.nu> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Error code 1 when upgrading ftp-proxy port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 22:44:21 -0000 On Sunday, 30.09.2007, 17:30 +0200 lists@socruel.nu wrote: > root@host /root # cd /usr/ports/ftp/ftp-proxy/ > root@host ftp-proxy # make > ===> Vulnerability check disabled, database not found > ===> Extracting for ftp-proxy-4.1p2_1 > => MD5 Checksum OK for ftp-proxy-4.1p2.tar.gz. > => SHA256 Checksum OK for ftp-proxy-4.1p2.tar.gz. > ===> Patching for ftp-proxy-4.1p2_1 > ===> ftp-proxy-4.1p2_1 depends on shared library: event-1.3d - found > ===> Configuring for ftp-proxy-4.1p2_1 > ===> Building for ftp-proxy-4.1p2_1 > Warning: Object directory not changed from original > /usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2 > cc -O -pipe -I/usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2 -Wall > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Wno-uninitialized -c ftp-proxy.c > ftp-proxy.c:32:19: event.h: No such file or directory The problem is definitely that the port does not find the file "event.h" for compilation. All the following errors are just related to this. > I looked up the Makefile in work/ftp-proxy-4.1p2 and saw > > CFLAGS+= -I${.CURDIR} > CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ > -Wno-uninitialized > LDADD+= -levent -L${PREFIX}/lib > DPADD+= ${LIBEVENT} > > which means that /usr/local/include is not referenced in CFLAGS as is > mentioned in the Makefile of the port. After linking > /usr/local/include/event.h to work/ftp-proxy-4.1p2/event.h all is OK! It is right, that CFLAGS does not contain -I${PREFIX}/include, because that is specified in the port's Makefile. The "+=" in both files makes it both being used. You can see in your complation output that this does not work in your setup: > cc -O -pipe -I/usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2 -Wall > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Wno-uninitialized -c ftp-proxy.c When I compile ftp-proxy from ports, I get the following output: host# cd usr/ports/ftp/ftp-proxy host# make ===> Vulnerability check disabled, database not found ===> Extracting for ftp-proxy-4.1p2_1 => MD5 Checksum OK for ftp-proxy-4.1p2.tar.gz. => SHA256 Checksum OK for ftp-proxy-4.1p2.tar.gz. ===> Patching for ftp-proxy-4.1p2_1 ===> ftp-proxy-4.1p2_1 depends on shared library: event-1.3d - found ===> Configuring for ftp-proxy-4.1p2_1 ===> Building for ftp-proxy-4.1p2_1 Warning: Object directory not changed from original /usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2 cc -O2 -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -c ftp-proxy.c cc -O2 -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -c filter.c cc -O2 -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -o ftp-proxy ftp-proxy.o filter.o -levent -L/usr/local/lib gzip -cn ftp-proxy.8 > ftp-proxy.8.gz host# So in my setup the CFLAGS from the port's Makefile get honored. Is this port the only one which has that problem? Seems like a bigger issue on your side. - Christian