HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.
Rainer Hurling
rhurlin at gwdg.de
Sat Jan 16 18:22:06 UTC 2010
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
More information about the freebsd-ports
mailing list