From owner-freebsd-ports@FreeBSD.ORG Thu May 26 08:47:45 2011 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 9F7F6106564A for ; Thu, 26 May 2011 08:47:45 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1D3418FC13 for ; Thu, 26 May 2011 08:47:44 +0000 (UTC) Received: by bwz12 with SMTP id 12so349871bwz.13 for ; Thu, 26 May 2011 01:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=dxRHAXLkYe5v+MxCLOHTaqh8uXZU11to1YL3NllDfsY=; b=sEPFizVMViPOjocMQkJkMjvPJhjOi1Eq9ZfmyEk5T7U5GzcnxLT/4duxxkdqXDVIQZ cJf/T3P0dT8KGkrDxYVcL+uNqvWFgv7xaE/GnZpewiW5U23gp8w+96dfn+G5sNDoZ6wJ MjCVQgSV67gVgIIrR8ej6L+KDHiEdF3BYXNP8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=PS7Ghf11BrDNEpA9DILSDkNAbG9IJyVCnJVCeskSB0n1D/LEddkpph1S+NBgxsEJ6b /nCETYgIK/Au6vE+w2/FIIbCbjFKQfWBhK/jEaJGxGlY9VKVqAP0jRxh5zaNuVp0g2tl /YiTRJPrJyGUP4OpAKwjFEHKYkIlKG7pXWXH4= MIME-Version: 1.0 Received: by 10.204.81.210 with SMTP id y18mr353048bkk.175.1306399663550; Thu, 26 May 2011 01:47:43 -0700 (PDT) Received: by 10.205.65.198 with HTTP; Thu, 26 May 2011 01:47:43 -0700 (PDT) Received: by 10.205.65.198 with HTTP; Thu, 26 May 2011 01:47:43 -0700 (PDT) In-Reply-To: References: <4DDE006D.2090405@gmail.com> <4DDE0276.8050903@roorback.net> Date: Thu, 26 May 2011 09:47:43 +0100 Message-ID: From: Chris Rees To: wen heping Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: wen@freebsd.org, David Demelier , Grzegorz Blach , freebsd-ports@freebsd.org Subject: Re: sysutils/tmux fails to compile X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 08:47:45 -0000 On 26 May 2011 09:41, "wen heping" wrote: > > 2011/5/26 Grzegorz Blach : > > On 2011-05-26 09:25, David Demelier wrote: > >> > >> Hello, > >> > >> Since the last update tmux fails to compile : > >> > >> ===> Building for tmux-1.4_5 > >> cc -iquote. -O2 -pipe -march=core2 -DBUILD="\"1.4\"" -c attributes.c -o > >> attributes.o > >> In file included from attributes.c:23: > >> tmux.h:30:19: error: event.h: No such file or directory > >> In file included from attributes.c:23: > >> tmux.h:830: error: field 'name_timer' has incomplete type > >> tmux.h:1032: error: field 'key_timer' has incomplete type > >> tmux.h:1093: error: field 'event' has incomplete type > >> tmux.h:1117: error: field 'repeat_timer' has incomplete type > >> tmux.h:1139: error: field 'identify_timer' has incomplete type > >> tmux.h:1142: error: field 'message_timer' has incomplete type > >> *** Error code 1 > >> > >> Stop in /usr/ports/sysutils/tmux/work/tmux-1.4. > >> > >> > >> It fails even if LIBEVENT2 is not selected. > >> > >> markand@Melon /usr/ports/sysutils/tmux $ make showconfig > >> ===> The following configuration options are available for tmux-1.4_5: > >> KQUEUE=on "Build without define HAVE_BROKEN_KQUEUE " > >> LIBEVENT2=on "Use libevent version 2" > >> LIBEVENT_STATIC=off "Build with static libevent" > >> BACKSPACE=off "Build with tty/keys patch" > >> ===> Use 'make config' to modify these settings > >> > >> Cheers, > >> > > > > > > I fixed this yesterday on my machine. > > Generally, CFLAGS from tmux/Makefile is replaced with CLFAGS from > > /etc/make.conf. For defined include path in tmux/Makefile > > "CFLAGS+= -I..." should be replaced with "CPPFLAGS+= -I..." > > Yes, this way fix the build when define CFLAGS in /etc/make.conf. > > But it will fail when define CPPFLAGS in /etc/make.conf. > > > wen > > Is it acceptable just to clobber C(PP)?FLAGS when it's necessary for the build? Chris