Mail Archives: geda-user/2014/07/06/08:25:03
Kai-Martin Knaak wrote:
> * gerbv **********************************************************
>
> Generic configure went through without warnings.
> make fails at the first compile with "error: unknown type name 'uid_t'":
..
> /usr/include/glib-2.0/gio/gcredentials.h:75:1: error: unknown type name 'uid_t'
> uid_t g_credentials_get_unix_user (GCredentials *credentials,
> ^
..
> Looking into credentials.h it seems that the type uid_t is expected to be
> included in unistd.h or in sys/types.h . They don't explicitly contain the
> string "uid_h". But I didn't check recursively in included header files.
>
> A quick google search for the error messages turned up a few cases. But I
> wasn't able to derive a cure from them. I noticed, that quite a number of
> projects seem to "checking for uid_t in sys/types.h". Maybe, this is such
> a check is missing in the configure script of gerbv. It eludes me, where
> the type uid_t is defined on my debian host, which it surely is.
> Can anyone with more insight than me chime in?
uid_t is a POSIX concept and g_credentials_get_unix_user() is clearly
for unix so if you configured gerbv for mingw then the build should
never end up using those lines.
Where exactly the problem lies is difficult to say, it could be
either in glib/gio or in gerbv itself.
As for uid_t, it'll be defined in /usr/include/pwd.h and/or
/usr/include/sys/types.h on a glibc system. But if you're configuring
for mingw those files shouldn't be used at all.
Maybe I'm confused. :)
//Peter
- Raw text -