Re: Error building on OS X El Capitan: window.c:1078:6: error: conflicting types for 'execvpe'

Dun Peal <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAD03jn7BLXTHa3GP9yVuvka-nrTuKecEs4Hi-M+_y5XGvWkBAQ@mail.gmail.com>
Thanks, Amadeusz. Your commit got me past this first error, but now I have
​crashed because of a different​
 one:
​ utmp.c:384:5: error: no member named 'ut_exit' in 'struct utmpx'​


$ make
AWK=gawk srcdir=. sh ./term.sh
AWK=gawk CC="gcc -g -O2 -Wall -Wextra -std=c11" srcdir=. sh ./comm.sh
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 screen.c -o screen.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 ansi.c -o ansi.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 fileio.c -o fileio.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 mark.c -o mark.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 misc.c -o misc.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 resize.c -o resize.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 socket.c -o socket.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 search.c -o search.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 tty.c -o tty.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 term.c -o term.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 window.c -o window.o
gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2 -Wall
-Wextra -std=c11 utmp.c -o utmp.o
utmp.c:358:21: warning: incompatible integer to pointer conversion passing
'slot_t' (aka 'int') to parameter of type 'const char *' [-Wint-conversion]
        strncpy(u.ut_line, slot, sizeof(u.ut_line));
                           ^~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/secure/_string.h:119:34:
note: expanded from macro 'strncpy'
  __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
                                 ^~~
utmp.c:363:58: warning: unused parameter 'host' [-Wunused-parameter]
static int pututslot(slot_t slot, struct utmpx *u, char *host, Window *win)
                                                         ^
utmp.c:363:72: warning: unused parameter 'win' [-Wunused-parameter]
static int pututslot(slot_t slot, struct utmpx *u, char *host, Window *win)
                                                                       ^
utmp.c:384:5: error: no member named 'ut_exit' in 'struct utmpx'
        u->ut_exit.e_termination = 0;
        ~  ^
utmp.c:385:5: error: no member named 'ut_exit' in 'struct utmpx'
        u->ut_exit.e_exit = 0;
        ~  ^
utmp.c:406:9: warning: incompatible pointer to integer conversion returning
'char *' from a function with result type 'slot_t' (aka 'int')
[-Wint-conversion]
        return stripdev(nam);
               ^~~~~~~~~~~~~
4 warnings and 2 errors generated.
make: *** [utmp.o] Error 1

On Fri, Apr 1, 2016 at 4:33 PM, Amadeusz Sławiński <[email protected]> wrote:

> Hey,
>
> thanks for report, should be fixed now
>
> http://git.savannah.gnu.org/cgit/screen.git/commit/?id=8620ad6bb621b75d594e20a165641f86664d650b
>
> Amadeusz
>
> On Fri, 1 Apr 2016 14:01:09 -0400
> Dun Peal <[email protected]> wrote:
>
> > Hi,
> >
> > I'm trying to build Git HEAD of screen on OS X El Capital (latest
> > version: 10.11.4) and getting the following error output - help
> > appreciated:
> >
> > $ make
> > AWK=awk srcdir=. sh ./term.sh
> > AWK=awk CC="gcc -g -O2 -Wall -Wextra -std=c11" srcdir=. sh ./comm.sh
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 screen.c -o screen.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 ansi.c -o ansi.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 fileio.c -o fileio.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 mark.c -o mark.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 misc.c -o misc.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 resize.c -o resize.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 socket.c -o socket.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 search.c -o search.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 tty.c -o tty.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 term.c -o term.o
> > gcc -c  -iquote. -DETCSCREENRC='"/usr/local/etc/screenrc"'
> > -DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -g -O2
> > -Wall -Wextra -std=c11 window.c -o window.o
> > window.c:1067:3: warning: implicit declaration of function 'execvpe'
> > is invalid in C99 [-Wimplicit-function-declaration]
> >                 execvpe(proc, args, NewEnv);
> >                 ^
> > window.c:1078:6: error: conflicting types for 'execvpe'
> > void execvpe(char *prog, char **args, char **env)
> >      ^
> > window.c:1067:3: note: previous implicit declaration is here
> >                 execvpe(proc, args, NewEnv);
> >                 ^
> > 1 warning and 1 error generated.
> > make: *** [window.o] Error 1
> >
> > _______________________________________________
> > screen-users mailing list
> > screen-users-mXXj517/[email protected]
> > https://lists.gnu.org/mailman/listinfo/screen-users
>
>
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> https://lists.gnu.org/mailman/listinfo/screen-users
>

_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.