From owner-freebsd-ports@FreeBSD.ORG Thu May 26 08:40:33 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 2D0CC1065676; Thu, 26 May 2011 08:40:33 +0000 (UTC) (envelope-from wenheping@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id CBD718FC1C; Thu, 26 May 2011 08:40:32 +0000 (UTC) Received: by qwc9 with SMTP id 9so331092qwc.13 for ; Thu, 26 May 2011 01:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=PFiF633LnSzFB8YMi5o74zzOJab3nxNdU35hxiOiId4=; b=ZnmI0ovn4TcoI4Dix+Tj3BYobIizK75tCVdhBB0f8kHlPdqQwbN3MBbhM1XBE8xVEu KtgWd6uDRzujFqeW1mZKtGoGDSyP5DVUlZTxcibHZFAHhqP4hmRa0rJsP99ZEUBN/4LD FxSqHhGVg5qzHg3+n5Cj7xJqDqs8Ag8MwhNF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oyMQq31U4LdGKG6+Na8IGqajjZ7EEYmm4deaFGGrfE6LIpK6bcCq+d0e7CW7pO3jJu EJaEJYIljj1BaCRVp88kCrU+GjWcQO0L40Cb21xMGDqMW+c6/AjUcL36VYo95iIPeUsl yb/ROxcFpkxgV7u/CbVUtc1Y3aC3YA4o6yprk= MIME-Version: 1.0 Received: by 10.224.185.7 with SMTP id cm7mr397648qab.64.1306399232203; Thu, 26 May 2011 01:40:32 -0700 (PDT) Received: by 10.224.28.134 with HTTP; Thu, 26 May 2011 01:40:32 -0700 (PDT) In-Reply-To: <4DDE0276.8050903@roorback.net> References: <4DDE006D.2090405@gmail.com> <4DDE0276.8050903@roorback.net> Date: Thu, 26 May 2011 16:40:32 +0800 Message-ID: From: wen heping To: Grzegorz Blach Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: David Demelier , wen@freebsd.org, 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 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:40:33 -0000 2011/5/26 Grzegorz Blach : > On 2011-05-26 09:25, David Demelier wrote: >> >> Hello, >> >> Since the last update tmux fails to compile : >> >> =3D=3D=3D> Building for tmux-1.4_5 >> cc -iquote. -O2 -pipe -march=3Dcore2 -DBUILD=3D"\"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 >> =3D=3D=3D> The following configuration options are available for tmux-1.= 4_5: >> KQUEUE=3Don "Build without define HAVE_BROKEN_KQUEUE " >> LIBEVENT2=3Don "Use libevent version 2" >> LIBEVENT_STATIC=3Doff "Build with static libevent" >> BACKSPACE=3Doff "Build with tty/keys patch" >> =3D=3D=3D> 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. =C2=A0For defined include path in tmux/Makefile > "CFLAGS+=3D -I..." should be replaced with "CPPFLAGS+=3D -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 > > > >