X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gdAR3XXuxSFj9LamvH2nMsf8YFjD4zfxDaL5MDCUPcw=; b=nF6UtWCWlfGSGE5O61QRU6thhN85mqzCDlJQ17jneC7J1z2pwLwhi4Djbthg/XnRit xKkYdOH61931GQJGJlUHJuBf8citu6zHZEUlbZZb0t/Pm4NyjFdPD6PAJ+2nGRsAjJGn YajQtFWcZqb/aaS2ylhHp8UJj1sgblBCFZwpCs69dAqhVzrCZwtf1NNbVdzhwpvScZBd BdQNdVS7h/gvtybJ4+LTyk+oA61c2NzzVjQTm/W1u3lM2Qv0nVxVSKL+P07OAYxKtIOp 228AMcfseoe4XS8VMXxz6In4VH1mGV7ZCEjottZFQ66GN9Gl4LQAxXCYXxXVzuNwCzPg c4OA== MIME-Version: 1.0 X-Received: by 10.180.81.68 with SMTP id y4mr68479840wix.26.1404635714987; Sun, 06 Jul 2014 01:35:14 -0700 (PDT) In-Reply-To: References: <20140417030350 DOT 2177 DOT qmail AT stuge DOT se> <87a9bftqef DOT fsf AT hotmail DOT com> Date: Sun, 6 Jul 2014 12:35:14 +0400 Message-ID: Subject: Re: [geda-user] geda-gaf on Windows - help needed From: Sergey Alyoshin To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 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 Precedence: bulk On Wed, Apr 23, 2014 at 6:04 PM, Kai-Martin Knaak wrote: > Kai-Martin Knaak wrote: > * gerbv ********************************************************** > > Generic configure went through without warnings. > make fails at the first compile with "error: unknown type name 'uid_t'": > > /---------------------------------- > $ make > make all-recursive > make[1]: Entering directory `/home/kmk/geda/Windows-Version/gerbv-2.6.0' > Making all in src > make[2]: Entering directory `/home/kmk/geda/Windows-Version/gerbv-2.6.0/src' > /bin/bash ../libtool --tag=CC --mode=compile i686-pc-mingw32.static-gcc -DHAVE_CONFIG_H -I. -I.. -mms-bitfields -mwindows - > DPREFIXDIR=\"/usr/local\" -DBINDIR=\"/usr/local/bin\" -DBACKEND_DIR='"/usr/local/share/gerbv/scheme/"' -DSCMSUBDIR='"scheme"' -mms- > bitfields -mwindows -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 - > I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 - > I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 - > I/usr/include/libdrm -I/usr/include/harfbuzz -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- > gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -MT amacro.lo > -MD -MP -MF .deps/amacro.Tpo -c -o amacro.lo amacro.c > libtool: compile: i686-pc-mingw32.static-gcc -DHAVE_CONFIG_H -I. -I.. -mms-bitfields -mwindows -DPREFIXDIR=\"/usr/local\" - > DBINDIR=\"/usr/local/bin\" -DBACKEND_DIR=\"/usr/local/share/gerbv/scheme/\" -DSCMSUBDIR=\"scheme\" -mms-bitfields -mwindows -Wall - > pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo - > I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/libdrm - > I/usr/include/harfbuzz -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include - > I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -MT amacro.lo -MD -MP -MF > .deps/amacro.Tpo -c amacro.c -DDLL_EXPORT -DPIC -o .libs/amacro.o > In file included from /usr/include/glib-2.0/gio/gio.h:46:0, > from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, > from /usr/include/gtk-2.0/gdk/gdk.h:32, > from /usr/include/gtk-2.0/gtk/gtk.h:32, > from gerbv.h:70, > from amacro.c:33: > /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, > ^ > /usr/include/glib-2.0/gio/gcredentials.h:79:52: error: unknown type name 'uid_t' > uid_t uid, > ^ > make[2]: *** [amacro.lo] Error 1 > make[2]: Leaving directory `/home/kmk/geda/Windows-Version/gerbv-2.6.0/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/kmk/geda/Windows-Version/gerbv-2.6.0' > make: *** [all] Error 2 > \--------------------------------------------------- > > 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? > gerbv is building with mxe for me with following configure call: PKG_CONFIG=/path/to/mxe.git/usr/bin/i686-pc-mingw32-pkg-config ./configure --host=i686-pc-mingw32 It is also seems to work in wine and win. If all good, the question is: can I put this ~42MiB static gerbv.exe on SF wrapped in installer. Or absolutely not?