www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/07/06/08:25:03

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <20140706122411.3944.qmail@stuge.se>
Date: Sun, 6 Jul 2014 14:24:11 +0200
From: Peter Stuge <peter AT stuge DOT se>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] geda-gaf on Windows - help needed
Mail-Followup-To: geda-user AT delorie DOT com
References: <20140417030350 DOT 2177 DOT qmail AT stuge DOT se> <lipepf$hap$1 AT ger DOT gmane DOT org> <CAOFvGD5nG7DAavVOuR2N3ZM-R9NHA0-E8ik5X_six4cpcwab7A AT mail DOT gmail DOT com> <lipj55$hf1$1 AT ger DOT gmane DOT org> <CAOFvGD7vOBoEi_55ufnqegLiASxZjjGZUZjo3pJKArFwxxPJng AT mail DOT gmail DOT com> <liror6$3gp$1 AT ger DOT gmane DOT org> <lj1rr2$h48$1 AT ger DOT gmane DOT org> <87a9bftqef DOT fsf AT hotmail DOT com> <lj2hb7$obn$1 AT ger DOT gmane DOT org> <lj8h9o$mr5$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <lj8h9o$mr5$1@ger.gmane.org>
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019