Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#16851 closed bug (fixed)

utmpx.h missing ut_host

Reported by: ihatemyisp Owned by: korli
Priority: normal Milestone: R1/beta3
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Stub utmpx.h merged in hrev54720 is causing Lynx build to fail. Lynx build completes successfully in r1beta2. This can be worked around downstream by bypassing utmpx functionality.

Failure log:

gcc -DHAVE_CONFIG_H  -DLOCALEDIR=\"/packages/lynx-2.8.9rel.1-3/.self/share/locale\" -I. -I.. -Ichrtrans -I./chrtrans -I.. -I../src -I.././WWW/Library/Implementation    -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506L -I/packages/openssl-1.1.1i-1/.self/develop/headers -O2  -c LYUtils.c
LYUtils.c: In function 'inlocaldomain':
LYUtils.c:2968:37: error: 'struct utmpx' has no member named 'ut_host'
      for (ulen = 0; ulen < sizeof(me.ut_host); ++ulen) {
                                     ^
LYUtils.c:2969:9: error: 'struct utmpx' has no member named 'ut_host'
   if (me.ut_host[ulen] == '\0')
         ^
In file included from LYUtils.c:54:
LYUtils.c:2974:11: error: 'struct utmpx' has no member named 'ut_host'
         me.ut_host + ulen - strlen(LYLocalDomain))) {
           ^
./LYUtils.h:554:33: note: in definition of macro 'STREQ'
 #define STREQ(a,b)    (strcmp(a,b) == 0)
                                 ^
makefile:102: recipe for target 'LYUtils.o' failed
make[1]: *** [LYUtils.o] Error 1
make[1]: Leaving directory '/sources/lynx2.8.9rel.1/src'
makefile:204: recipe for target 'all' failed
make: *** [all] Error 2

See: https://github.com/haikuports/haikuports/pull/5772

I apologize if I've formatted this incorrectly.

Change History (5)

comment:1 by diver, 4 years ago

Component: - GeneralSystem/POSIX
Keywords: utmpx posix removed

comment:3 by korli, 4 years ago

Owner: changed from nobody to korli
Status: newassigned

comment:4 by pulkomandy, 4 years ago

Resolution: fixed
Status: assignedclosed

Applied in hrev54995.

comment:5 by korli, 4 years ago

Please check the build after updating to hrev54995 or newer.

Note: See TracTickets for help on using tickets.