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

 
 

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

Submitter:  None
Submitted:  Tue 01 Dec 2009 12:20:14 AM UTC
   
 
Category:  Build/Install Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Works For Me
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  5.0.0
Fixed Release:  None Planned Release:  5.0.0
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 11 Jun 2024 07:13:26 PM UTC, comment #1: 

...a veeery old bugreport :]
Thanks a lot for reporting and sorry for no_reply

Right now I'm able to build master branch on NetBSD 10.0 (x86_64 and aarch64).
It seems clang on NetBSD 9.x doesn't support "C17" (see Makefile.in), so just changing it back to "C11" will fix it.

I will close it now.

Alexander Naumov <anaumov>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by anaumov (Posted a comment)
  •  

    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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-06-11 anaumov StatusNone Works For Me
        Open/ClosedOpen Closed
        ReleaseCur Dev Sources 5.0.0
        Planned ReleaseNone 5.0.0

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code