Den tisdag 1 augusti 2017 kl. 15:08:33 UTC+2 skrev Bram Moolenaar:
> Patch 8.0.0827
> Problem:    Coverity: could leak pty file descriptor, theoretically.
> Solution:   If channel is NULL, free the file descriptors.
> Files:      src/os_unix.c

Hi,

Vim fails to compile after 8.0.826 using GCC 7.1.0 under Slackware-current 
x86-64:
gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fPIC -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=1        -o objects/os_unix.o os_unix.c
os_unix.c: In function 'set_child_environment':
os_unix.c:4129:30: error: 'serverName' undeclared (first use in this function); 
did you mean 'set_termname'?
     setenv("VIM_SERVERNAME", serverName == NULL ? "" : (char *)serverName, 1);
                              ^~~~~~~~~~
                              set_termname
os_unix.c:4129:30: note: each undeclared identifier is reported only once for 
each function it appears in
make[1]: *** [Makefile:3214: objects/os_unix.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/vim-8.0.0830/src'
make: *** [Makefile:29: first] Error 2
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
make[1]: Entering directory '/tmp/vim-8.0.0830/src'
gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fPIC -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=1        -o objects/os_unix.o os_unix.c
os_unix.c: In function 'set_child_environment':
os_unix.c:4129:30: error: 'serverName' undeclared (first use in this function); 
did you mean 'set_termname'?
     setenv("VIM_SERVERNAME", serverName == NULL ? "" : (char *)serverName, 1);
                              ^~~~~~~~~~
                              set_termname
os_unix.c:4129:30: note: each undeclared identifier is reported only once for 
each function it appears in
make[1]: *** [Makefile:3214: objects/os_unix.o] Error 1
make[1]: Leaving directory '/tmp/vim-8.0.0830/src'
make: *** [Makefile:29: first] Error 2
root@hp-laptop:/home/mats/Downloads/vim#

Regards,
Mats

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui