Discussion:
Error building source
Jeffery Joltes
2015-01-08 22:40:12 UTC
Permalink
I do not have root permission so I am trying to build tmux from source. I
built libevent from source and set the configure flags to specify a custom
location.

configure succeeds but I'm getting the following compiler error

In file included from arguments.c:26:
tmux.h:27:19: error: event.h: No such file or directory
In file included from arguments.c:26:
tmux.h:894: error: field ‘changes_timer’ has incomplete type
tmux.h:929: error: field ‘name_timer’ has incomplete type
tmux.h:1205: error: field ‘key_timer’ has incomplete type
tmux.h:1257: error: field ‘event’ has incomplete type
tmux.h:1279: error: field ‘repeat_timer’ has incomplete type
tmux.h:1307: error: field ‘identify_timer’ has incomplete type
tmux.h:1310: error: field ‘message_timer’ has incomplete type
make: *** [arguments.o] Error 1


At first glance it looks as if it can't find the event_struct, but I've got
the feeling there is more to this issue than that.

Running in CentOS version 6.6


Any help would be very much appreciated!
Nicholas Marriott
2015-01-09 08:25:23 UTC
Permalink
What exact command line do you use to configure?
Post by Jeffery Joltes
I do not have root permission so I am trying to build tmux from source. I
built libevent from source and set the configure flags to specify a custom
location.
configure succeeds but I'm getting the following compiler error
tmux.h:27:19: error: event.h: No such file or directory
tmux.h:894: error: field ***changes_timer*** has incomplete type
tmux.h:929: error: field ***name_timer*** has incomplete type
tmux.h:1205: error: field ***key_timer*** has incomplete type
tmux.h:1257: error: field ***event*** has incomplete type
tmux.h:1279: error: field ***repeat_timer*** has incomplete type
tmux.h:1307: error: field ***identify_timer*** has incomplete type
tmux.h:1310: error: field ***message_timer*** has incomplete type
make: *** [arguments.o] Error 1
At first glance it looks as if it can't find the event_struct, but I've
got the feeling there is more to this issue than that.
Running in CentOS version 6.6
Any help would be very much appreciated!
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Jeffery Joltes
2015-01-09 18:22:50 UTC
Permalink
Thanks for your response Nicholas,

Well I am confused as to how to include the paths for libevent properly. On
one hand event.h seems to be referencing /event2/visibility.h --> which
would indicate that the main include path should be as follows

LIBEVENT_CFLAGS=-I/[path-to-home]/usr/include/libevent/

Note, I have symlinks between this directory and the include directory
delivered with the libevent source

And on the other hand tmux.h is referencing event.h and event_struct.h as
if the include path should be included like this

LIBEVENT_CFLAGS=I/[path-to-home]/usr/include/libevent/event2

is there a specific libevent version that is organized differently?

Also, I have symlinks directly to each of the libevent library files,
allowing for

LIBEVENT_LIBS=-L[path-to-home]/usr/lib/libevent


Any help is greatly appreciated!

Thanks,

Jeff



On Fri, Jan 9, 2015 at 1:25 AM, Nicholas Marriott <
Post by Nicholas Marriott
What exact command line do you use to configure?
Post by Jeffery Joltes
I do not have root permission so I am trying to build tmux from
source. I
Post by Jeffery Joltes
built libevent from source and set the configure flags to specify a
custom
Post by Jeffery Joltes
location.
configure succeeds but I'm getting the following compiler error
tmux.h:27:19: error: event.h: No such file or directory
tmux.h:894: error: field ***changes_timer*** has incomplete type
tmux.h:929: error: field ***name_timer*** has incomplete type
tmux.h:1205: error: field ***key_timer*** has incomplete type
tmux.h:1257: error: field ***event*** has incomplete type
tmux.h:1279: error: field ***repeat_timer*** has incomplete type
tmux.h:1307: error: field ***identify_timer*** has incomplete type
tmux.h:1310: error: field ***message_timer*** has incomplete type
make: *** [arguments.o] Error 1
At first glance it looks as if it can't find the event_struct, but
I've
Post by Jeffery Joltes
got the feeling there is more to this issue than that.
Running in CentOS version 6.6
Any help would be very much appreciated!
------------------------------------------------------------------------------
Post by Jeffery Joltes
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is
your
Post by Jeffery Joltes
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take
a
Post by Jeffery Joltes
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Nicholas Marriott
2015-01-09 18:45:13 UTC
Permalink
CFLAGS="-I/path/to/libevent/include" LDFLAGS="-L/path/to/libevent/lib" ./configure

include has event.h and the event directory

-------- Original message --------
From: Jeffery Joltes <***@gmail.com>
Date:09/01/2015 18:22 (GMT+00:00)
To: Nicholas Marriott <***@gmail.com>,tmux-***@lists.sourceforge.net
Subject: Re: Error building source

Thanks for your response Nicholas,

Well I am confused as to how to include the paths for libevent properly. On one hand event.h seems to be referencing /event2/visibility.h --> which would indicate that the main include path should be as follows

LIBEVENT_CFLAGS=-I/[path-to-home]/usr/include/libevent/

Note, I have symlinks between this directory and the include directory delivered with the libevent source

And on the other hand tmux.h is referencing event.h and event_struct.h as if the include path should be included like this

LIBEVENT_CFLAGS=I/[path-to-home]/usr/include/libevent/event2

is there a specific libevent version that is organized differently? 

Also, I have symlinks directly to each of the libevent library files, allowing for

LIBEVENT_LIBS=-L[path-to-home]/usr/lib/libevent


Any help is greatly appreciated!

Thanks,

Jeff



On Fri, Jan 9, 2015 at 1:25 AM, Nicholas Marriott <***@gmail.com> wrote:
What exact command line do you use to configure?
    I do not have root permission so I am trying to build tmux from source. I
    built libevent from source and set the configure flags to specify a custom
    location.
    configure succeeds but I'm getting the following compiler error
    tmux.h:27:19: error: event.h: No such file or directory
    tmux.h:894: error: field ***changes_timer*** has incomplete type
    tmux.h:929: error: field ***name_timer*** has incomplete type
    tmux.h:1205: error: field ***key_timer*** has incomplete type
    tmux.h:1257: error: field ***event*** has incomplete type
    tmux.h:1279: error: field ***repeat_timer*** has incomplete type
    tmux.h:1307: error: field ***identify_timer*** has incomplete type
    tmux.h:1310: error: field ***message_timer*** has incomplete type
    make: *** [arguments.o] Error 1
    At first glance it looks as if it can't find the event_struct, but I've
    got the feeling there is more to this issue than that.
    Running in CentOS version 6.6
    Any help would be very much appreciated!
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Loading...