Skip to content

Cygwin64 build issues #1

Description

@jmahood

For reference, I can build from screen.git on savannah on this system. First, I had warnings during autogen -- maybe my autotools are not compatible?

./autogen.sh
autoheader-2.69: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.69: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.69: WARNING: is deprecated and discouraged.
autoheader-2.69:
autoheader-2.69: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.69: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.69: WARNING: `acconfig.h':
autoheader-2.69:
autoheader-2.69: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.69:                [Define if a function `main' is needed.])
autoheader-2.69:
autoheader-2.69: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.69: WARNING: documentation.


Then I configured with prefix=/usr/local/opt and ran make.  Using gcc 4.8.2:

gcc -c -I. -I.  -DETCSCREENRC='"/usr/local/opt/etc/screenrc"' -DSCREENENCODINGS='"/usr/local/opt/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
     -g -O2 -D_GNU_SOURCE -Wall socket.c
socket.c: In function ‘chsock’:
socket.c:854:2: warning: implicit declaration of function ‘utime’ [-Wimplicit-function-declaration]
  (void)utimes(SocketPath, NULL);
  ^
socket.c: In function ‘PasswordProcessInput’:
socket.c:1090:4: warning: implicit declaration of function ‘crypt’ [-Wimplicit-function-declaration]
    if (strncmp(crypt(pwdata->buf, up), up, strlen(up))) {
    ^
socket.c:1090:4: warning: passing argument 1 of ‘strncmp’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/include/sys/types.h:20:0,


                 from socket.c:30:
/usr/include/string.h:35:6: note: expected ‘const char *’ but argument is of type ‘int’
 int  _EXFUN(strncmp,(const char *, const char *, size_t));
      ^
gcc -c -I. -I.  -DETCSCREENRC='"/usr/local/opt/etc/screenrc"' -DSCREENENCODINGS='"/usr/local/opt/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
     -g -O2 -D_GNU_SOURCE -Wall search.c
gcc -c -I. -I.  -DETCSCREENRC='"/usr/local/opt/etc/screenrc"' -DSCREENENCODINGS='"/usr/local/opt/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
     -g -O2 -D_GNU_SOURCE -Wall tty.c
tty.c: In function ‘TtyGrabConsole’:
tty.c:937:38: error: ‘TIOCCONS’ undeclared (first use in this function)
     UserReturn(ioctl(consredirfd[1], TIOCCONS, (char *)&on));
                                      ^
tty.c:937:38: note: each undeclared identifier is reported only once for each function it appears in
Makefile:82: recipe for target 'tty.o' failed
make: *** [tty.o] Error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions