Date: Sun, 09 Jan 2011 19:51:35 +0300 From: Anonymous <swell.k@gmail.com> To: Ben Kibbey <bjk@luxsci.net> Cc: freebsd-ports@FreeBSD.org Subject: Re: FreeBSD Port: sysutils/userinfo Message-ID: <867heeggvc.fsf@gmail.com> References: <201101091555.p09Ft22H023380@rs49.luxsci.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ben Kibbey <bjk@luxsci.net> writes: [...] > Also, where are the build logs? I can't seem to find them again. In the pointyhat archive http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.9.20100227161737/userinfo-2.2.log.bz2 > > diff --git a/src/modules/login.c b/src/modules/login.c > index 0f354a7..9bf0b24 100644 > --- a/src/modules/login.c > +++ b/src/modules/login.c > @@ -24,7 +24,6 @@ > #include <time.h> > #include <pwd.h> > #include <ctype.h> > -#include <utmp.h> > > #ifdef HAVE_CONFIG_H > #include <config.h> > diff --git a/src/modules/login.h b/src/modules/login.h > index 55bd5bb..2a20765 100644 > --- a/src/modules/login.h > +++ b/src/modules/login.h > @@ -59,6 +59,7 @@ > #endif > typedef struct utmpx UTMP; > #else > +#include <utmp.h> > typedef struct utmp UTMP; > #endif It doesn't fix build. if /bin/sh /usr/local/bin/libtool --silent --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -O2 -pipe -fno-strict-aliasing -MT login.lo -MD -MP -MF ".deps/login.Tpo" -c -o login.lo login.c; then mv -f ".deps/login.Tpo" ".deps/login.Plo"; else rm -f ".deps/login.Tpo"; exit 1; fi login.c: In function 'lastlogin': login.c:356: error: storage size of 'last' isn't known login.c:370: error: invalid application of 'sizeof' to incomplete type 'struct lastlog' login.c:377: error: invalid application of 'sizeof' to incomplete type 'struct lastlog' login.c:378: error: invalid application of 'sizeof' to incomplete type 'struct lastlog' login.c: In function 'get_utmp': login.c:457: error: 'UTMP' has no member named 'ut_name' login.c:483: error: 'UTMP' has no member named 'ut_name' login.c:483: error: 'UTMP' has no member named 'ut_name' *** Error code 1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867heeggvc.fsf>