bugGNU Screen - Bugs: bug #36951, can't compile without #define...

 
 

bug #36951: can't compile without #define UTMPOK

Submitter:  None
Submitted:  Wed 25 Jul 2012 04:39:07 PM UTC
   
 
Category:  Build/Install Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  Cur Dev Sources
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 25 Jul 2012 04:39:07 PM UTC, original submission:  

 git clone git://git.savannah.gnu.org/screen.git
 cd screen/src
 ./autogen.sh  --prefix=/home/ff/bin/src/screen/here2
 ./configure --prefix=/home/ff/bin/src/screen/here2
 vim config.h
Edit file config.h :
#define UTMPOK  ->   #define UTMPOK
 make

CPP="gcc -E -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"'" srcdir=. sh ./osdef.sh
AWK=mawk CC="gcc -g -O2 -D_GNU_SOURCE" srcdir=. sh ./comm.sh
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE screen.c
screen.c: In function ‘QueryMsg’:
screen.c:2204:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
screen.c: In function ‘Panic’:
screen.c:2174:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
screen.c:2175:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
screen.c: In function ‘Msg’:
screen.c:2133:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
screen.c: In function ‘main’:
screen.c:1113:8: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
screen.c:1297:10: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
screen.c:1298:10: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
screen.c:1303:10: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
screen.c: In function ‘serv_select_fn’:
screen.c:3182:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
screen.c: In function ‘CoreDump’:
screen.c:1671:12: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE ansi.c
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE fileio.c
fileio.c: In function ‘printpipe’:
fileio.c:825:10: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
fileio.c: In function ‘WriteFile’:
fileio.c:490:16: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE mark.c
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE misc.c
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE resize.c
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE socket.c
socket.c: In function ‘CreateTempDisplay’:
socket.c:884:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
socket.c:895:13: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
socket.c:919:12: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
socket.c: In function ‘SendErrorMsg’:
socket.c:712:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE search.c
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE tty.c
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE window.c
window.c: In function ‘FreePseudowin’:
window.c:1678:3: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
window.c: In function ‘ForkWindow’:
window.c:1271:7: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
window.c:1322:6: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
window.c:1326:11: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
window.c: In function ‘CloseDevice’:
window.c:949:7: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -I. -I.  -DETCSCREENRC='"/home/ff/bin/src/screen/here2/etc/screenrc"' -DSCREENENCODINGS='"/home/ff/bin/src/screen/here2/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
             -g -O2 -D_GNU_SOURCE utmp.c
utmp.c: In function ‘xpututline’:
utmp.c:887:6: warning: assignment makes pointer from integer without a cast [enabled by default]
utmp.c:889:13: error: dereferencing pointer to incomplete type
utmp.c:889:26: error: ‘DEAD_PROCESS’ undeclared (first use in this function)
utmp.c:889:26: note: each undeclared identifier is reported only once for each function it appears in
utmp.c:890:11: error: dereferencing pointer to incomplete type
utmp.c:890:26: error: dereferencing pointer to incomplete type
make: * [utmp.o] Error 1

 vim config.h
remove changes.
 make
compilation OK

On ubuntu 12.04.
Reproduced for version 4.0 (apt-get source screen).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code