bugGNU Screen - Bugs: bug #26832, problem with libutempter

 
 

bug #26832: problem with libutempter

Submitter:  None
Submitted:  Thu 18 Jun 2009 01:41:00 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  None
Fixed Release:  None Planned Release:  4.1.0
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 28 Mar 2010 02:48:37 AM UTC, comment #3: 

The following seem to be the change relevant to libutempter:


--- a/src/configure.in
+++ b/src/configure.in
@@ -863,12 +855,14 @@ AC_TRY_COMPILE([
 #else
 #include <utmp.h>
 #endif
-],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE(UTHOST))
-AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
-if test "$have_utempter" = yes; then
-  AC_DEFINE(HAVE_UTEMPTER)
-  LIBS="$LIBS -lutempter"
-fi
+],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE([UTHOST], [], [UTHOST]))
+AC_CHECK_HEADER([utempter.h],
+[AC_CHECK_LIB([utempter], [main],
+[have_utempter=yes
+AC_DEFINE([HAVE_UTEMPTER], [], [HAVE_UTEMPTER])
+LIBS="$LIBS -lutempter"],
+[have_utempter=no])],
+[have_utempter=no])

 dnl
 dnl    ****  loadav  ****


From this change, it looks like you are checking for the existence of the library even after you've found the header file. I am inclined to say that will happen only in a broken system, and screen shouldn't need to work around that.

Sadrul Habib Chowdhury <sadrul>
Group administrator
Thu 18 Jun 2009 07:09:53 PM UTC, comment #2: 

Poster submitted revised edition in bug 26841.

Micah Cowan <micahcowan>
Thu 18 Jun 2009 06:59:53 AM UTC, comment #1: 

In general, patches are strongly preferred over complete modified files, as the latter can make it difficult to tell what's been changed. Here's the diff against what we have as of today, so future changes don't interfere.

Micah Cowan <micahcowan>
Thu 18 Jun 2009 01:41:00 AM UTC, original submission:  

I had a problem with linking libutempter on RedHat Enterprise
Linux 5.  I made a change to the configure.in to check the
linking of libutempter and that seemed to get me around the
problem.  Here are the changes I made to configure.in for
use with autoconf 2.63

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #18288:  configure.diff added by micahcowan (23KiB - text/x-diff)
file #18287:  configure.in added by None (31KiB - application/octet-stream - configure.in changed for failed link to libutempter)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sadrul (Posted a comment)
  • -email is unavailable- added by micahcowan (Updated the item)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-28 sadrul StatusNeed Discussion Wont Fix
        Open/ClosedOpen Closed
    2009-06-18 micahcowan Attached File- Added configure.diff, #18288
    2009-06-18 micahcowan StatusNone Need Discussion
        Planned ReleaseNone 4.1.0
    2009-06-18 None Attached File- Added configure.in, #18287

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code