Date: Thu, 26 May 2011 16:40:32 +0800 From: wen heping <wenheping@gmail.com> To: Grzegorz Blach <magik@roorback.net> Cc: David Demelier <demelier.david@gmail.com>, wen@freebsd.org, freebsd-ports@freebsd.org Subject: Re: sysutils/tmux fails to compile Message-ID: <BANLkTinz-Rok2i=fo6uQa=YbgeePBtuo2w@mail.gmail.com> In-Reply-To: <4DDE0276.8050903@roorback.net> References: <4DDE006D.2090405@gmail.com> <4DDE0276.8050903@roorback.net>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/5/26 Grzegorz Blach <magik@roorback.net>: > 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 > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinz-Rok2i=fo6uQa=YbgeePBtuo2w>