Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2010 19:22:01 +0100
From:      Rainer Hurling <rhurlin@gwdg.de>
To:        Ed Schouten <ed@80386.nl>
Cc:        ports@FreeBSD.org
Subject:   Re: HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.
Message-ID:  <4B5203C9.5000003@gwdg.de>
In-Reply-To: <20100113194254.GR64905@hoeg.nl>
References:  <20100113194254.GR64905@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13.01.2010 20:42 (UTC+1), Ed Schouten wrote:
> [..snip..]
> 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!
>

The next port I found, which does not compile any more after your 
commit, is ftp/gftp:


[..snip..]
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include   -D_REENTRANT -D_THREAD_SAFE 
-I../intl -DSHARE_DIR=\"/usr/local/share/gftp\" 
-DLOCALE_DIR=\"/usr/local/share/locale\"   -I/usr/local/include 
-D_THREAD_SAFE  -O2 -pipe -fno-strict-aliasing -MT protocols.o -MD -MP 
-MF ".deps/protocols.Tpo" -c -o protocols.o protocols.c;  then mv -f 
".deps/protocols.Tpo" ".deps/protocols.Po"; else rm -f 
".deps/protocols.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include   -D_REENTRANT -D_THREAD_SAFE 
-I../intl -DSHARE_DIR=\"/usr/local/share/gftp\" 
-DLOCALE_DIR=\"/usr/local/share/locale\"   -I/usr/local/include 
-D_THREAD_SAFE  -O2 -pipe -fno-strict-aliasing -MT pty.o -MD -MP -MF 
".deps/pty.Tpo" -c -o pty.o pty.c;  then mv -f ".deps/pty.Tpo" 
".deps/pty.Po"; else rm -f ".deps/pty.Tpo"; exit 1; fi
In file included from pty.c:69:
/usr/include/utmp.h:2:2: error: #error "<utmp.h> has been replaced by 
<utmpx.h>"
*** Error code 1
Stop in /usr/ports/ftp/gftp/work/gftp-2.0.19/lib.
*** Error code 1
Stop in /usr/ports/ftp/gftp/work/gftp-2.0.19/lib.
*** Error code 1
Stop in /usr/ports/ftp/gftp/work/gftp-2.0.19.
*** Error code 1
Stop in /usr/ports/ftp/gftp/work/gftp-2.0.19.
*** Error code 1
Stop in /usr/ports/ftp/gftp.


Is it ok to report such problems in this thread?

Thanks again,
Rainer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B5203C9.5000003>