Re: HEADS UP: <utmp.h> gone. All welcome <utmpx.h> [SEC=UNCLASSIFIED]

From: Wilkinson, Alex <alex.wilkinson_at_dsto.defence.gov.au>
Date: Thu, 14 Jan 2010 13:51:30 +0800
    0n Wed, Jan 13, 2010 at 08:42:54PM +0100, Ed Schouten wrote: 

    >I've noticed there is some breakage in ports, but it shouldn't be too
    >serious. I've seen cases where an application includes <utmp.h>, even
    >though it doesn't use anything provided by that header. In other cases
    >they used fields like UT_NAMESIZE to derive the maximum user name length
    >supported by the system, which is clearly not what this definition was
    >intended for. I've incremented __FreeBSD_version to 900007 to identify
    >the import of utmpx. In case a certain port breaks badly, let me know
    >and I'm willing to take a look at it.
    >
    >Be sure to give it a try and report any issues. Thanks!

Great stuff ed! Thanks! I thought I would test this with my terminal of choice
(x11/rxvt-unicode) and found some breakage (Cc'ing $MAINTAINER).

e.g.

(FreeBSD 9.0-CURRENT #0 r202270: Thu Jan 14 11:20:04 WST 2010)

   ===>  Building for rxvt-unicode-9.07
   c++ -I.. -I. -I. -I./../libev -DHAVE_CONFIG_H -I/usr/local/include
   -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2 -O2 -pipe
   -fno-strict-aliasing -w -I/usr/local/include -I/usr/local/include/libAfterImage
   -I/usr/local/include -c rxvt.C
   c++ -I.. -I. -I. -I./../libev -DHAVE_CONFIG_H -I/usr/local/include
   -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2 -O2 -pipe
   -fno-strict-aliasing -w -I/usr/local/include -I/usr/local/include/libAfterImage
   -I/usr/local/include -c background.C
   c++ -I.. -I. -I. -I./../libev -DHAVE_CONFIG_H -I/usr/local/include
   -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2 -O2 -pipe
   -fno-strict-aliasing -w -I/usr/local/include -I/usr/local/include/libAfterImage
   -I/usr/local/include -c command.C
   c++ -I.. -I. -I. -I./../libev -DHAVE_CONFIG_H -I/usr/local/include
   -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2 -O2 -pipe
   -fno-strict-aliasing -w -I/usr/local/include -I/usr/local/include/libAfterImage
   -I/usr/local/include -c rxvtfont.C
   c++ -I.. -I. -I. -I./../libev -DHAVE_CONFIG_H -I/usr/local/include
   -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2 -O2 -pipe
   -fno-strict-aliasing -w -I/usr/local/include -I/usr/local/include/libAfterImage
   -I/usr/local/include -c init.C
   c++ -I.. -I. -I. -I./../libev -DHAVE_CONFIG_H -I/usr/local/include
   -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2 -O2 -pipe
   -fno-strict-aliasing -w -I/usr/local/include -I/usr/local/include/libAfterImage
   -I/usr/local/include -c logging.C
   In file included from logging.C:40:
   ptytty.h:36:4: error: #error cannot build with utmp support - no utmp or utmpx
   struct found
   *** Error code 1
   
   Stop in /usr/ports/x11/rxvt-unicode/work/rxvt-unicode-9.07/src.
   *** Error code 1
   
   Stop in /usr/ports/x11/rxvt-unicode/work/rxvt-unicode-9.07.
   *** Error code 1
   
   Stop in /usr/ports/x11/rxvt-unicode.
   *** Error code 1
   
   Stop in /usr/ports/x11/rxvt-unicode.
   *** Error code 1
   
   Stop in /usr/ports/x11/rxvt-unicode.


  -Alex

IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.
Received on Thu Jan 14 2010 - 04:52:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC