FreeBSD Port: sysutils/userinfo

Anonymous swell.k at gmail.com
Sun Jan 9 16:53:08 UTC 2011


Ben Kibbey <bjk at 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


More information about the freebsd-ports mailing list