sysutils/tmux fails to compile

Grzegorz Blach magik at roorback.net
Thu May 26 10:00:53 UTC 2011


On 2011-05-26 10:40, wen heping wrote:
> 2011/5/26 Grzegorz Blach<magik at roorback.net>:
>> 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 at 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
>

Attached patch fix (I hope) build when CFLAGS and/or CPPFLAGS is defined 
in /etc/make.conf.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmux-Makefile.diff
Type: text/x-diff
Size: 1013 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20110526/353c02c3/tmux-Makefile.bin


More information about the freebsd-ports mailing list