Hi,

Not sure why "-I/usr/X11/include/xorg -I/usr/X11/include
-I/opt/local/include/pixman-1" is even in your gcc line...
I don't know what your compiler is doing, but trying to include Xorg
headers is certainly not on list of sane things to do in this case and
is likely what causes the problem.
(It may be trying to find /usr/include/shadow.h
and /usr/X11/include/xorg/shadow.h doesn't look to me as being good
replacement.)

Also do note that master branch has development version, if you want
something closer to official releases use screen-v4 branch.

(If you want to use master branch, do run `./configure --enable-pam` it
will likely give you better results.)

Cheers,
Amadeusz

On Wed, 15 Feb 2017 16:24:30 -0800
Larry Ploetz <lar...@pinger.com> wrote:

> Having a problem compiling screen from git repo:
> 
> gcc -c -I/usr/X11/include/xorg -I/usr/X11/include 
> -I/opt/local/include/pixman-1 -iquote. 
> -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> -Wall -Wextra -std=c11 ../comm.c -o comm.o
> In file included from ../authentication.c:14:
> In file included from /usr/X11/include/xorg/shadow.h:27:
> In file included from /usr/X11/include/xorg/scrnintstr.h:50:
> In file included from /usr/X11/include/xorg/screenint.h:50:
> In file included from /usr/X11/include/xorg/misc.h:77:
> /usr/X11/include/X11/X.h:96:13: error: typedef redefinition with 
> different types ('XID' (aka 'unsigned long') vs 'struct Window')
> typedef XID Window;
>              ^
> ../window.h:136:23: note: previous definition is here
> typedef struct Window Window;
>                        ^
> ../acls.c:412:18: warning: unused variable 'u' [-Wunused-variable]
>          struct acluser *u;
>                          ^
> ../acls.c:413:6: warning: unused variable 'sorry' [-Wunused-variable]
>          int sorry = 0;
>              ^
> ../acls.c:410:29: warning: unused parameter 'up' [-Wunused-parameter]
> char *DoSu(struct acluser **up, char *name, char *pw1, char *pw2)
>                              ^
> ../acls.c:410:39: warning: unused parameter
> 'name' [-Wunused-parameter] char *DoSu(struct acluser **up, char
> *name, char *pw1, char *pw2) ^
> ../acls.c:410:51: warning: unused parameter 'pw1' [-Wunused-parameter]
> char *DoSu(struct acluser **up, char *name, char *pw1, char *pw2)
>                                                    ^
> ../acls.c:410:62: warning: unused parameter 'pw2' [-Wunused-parameter]
> char *DoSu(struct acluser **up, char *name, char *pw1, char *pw2)
>                                                               ^
> 
> Any suggestions?
> 
> Thanks,
> 
> - Larry
> 
> 
> _______________________________________________
> screen-users mailing list
> screen-users@gnu.org
> https://lists.gnu.org/mailman/listinfo/screen-users


_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to