bugGNU Screen - Bugs: bug #28139, configure mistaken about utmp /...

 
 

bug #28139: configure mistaken about utmp / getutent()

Submitted by:  None
Submitted on:  Tue 01 Dec 2009 12:20:14 AM UTC  
 
Category: Build/InstallSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 01 Dec 2009 12:20:14 AM UTC, original submission:

I tried compiling the latest git source on NetBSD 4.0, and there was an error regarding getutent():

gcc -c -I. -I. -DETCSCREENRC='"/usr/pkg/etc/screenrc"' -DSCREENENCODINGS='"/usr/pkg/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
-g -O2 utmp.c
utmp.c:92: error: static declaration of 'getutent' follows non-static declaration
/usr/include/utmp.h:66: error: previous declaration of 'getutent' was here
utmp.c:93: error: static declaration of 'endutent' follows non-static declaration
/usr/include/utmp.h:67: error: previous declaration of 'endutent' was here
utmp.c:95: error: static declaration of 'setutent' follows non-static declaration
/usr/include/utmp.h:65: error: previous declaration of 'setutent' was here

Apparently configure thinks that there is no getutent(), but there is, in <utmp.h> It is just the configure check which is incorrect. It fails because it has an un#defined name. From config.log:

configure:5286: checking getutent...
configure:5311: gcc -o conftest -g -O2 conftest.c -lcurses >&5
conftest.c: In function 'main':
conftest.c:53: error: 'DEAD_PROCESS' undeclared (first use in this function)
conftest.c:53: error: (Each undeclared identifier is reported only once
conftest.c:53: error: for each function it appears in.)
configure:5311: $? = 1

It seems that utmp.c actually uses DEAD_PROCESS, but I suppose that will have to be tested separately.

Pkgsrc has some patches in this area: patch-{ai,aj,al,am,an}. The other patches are probably also worth to be included.

See here for the mentioned patches: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/misc/screen/patches/

-Olaf 'Rhialto' Seibert
rhialto at falu dot nl

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1