problem when linking glib with mingw: getuid is not found
- From: Tor Lillqvist <tml iki fi>
- To: Vincent Torri <torri math u-strasbg fr>
- Cc: gtk-app-devel-list gnome org
- Subject: problem when linking glib with mingw: getuid is not found
- Date: Wed, 21 Apr 2004 19:49:11 +0000
Vincent Torri writes:
i'am trying to compile glib 2.4.0 on windows with msys/mingw. When linking
gspawn-win32-helper.exe, i have the following errors:
/.libs/libglib-2.0.a(gutils.o)(.text+0x1822):gutils.c: undefined
reference to `setpwent' [...] `getuid' [...] `getpwuid' [...]
`endpwent'
There are symptoms for two problems apparent here.
Firstly, are you sure you are not mixing Win32 and Cygwin in some odd
way? It seems that the configure script has defined HAVE_PWD_H
(indicating you have a a <pwd.h> header file), as gutils.c references
those functions mentioned only inside #ifdef HAVE_PWD_H. If you really
ran configure using a Win32 compiler, it shouldn't have found any
<pwd.h>.
Secondly, libtool seems to have produced a static libglib library, not
a DLL. The GLib libraries are supposed to be built as shared (DLLs) on
Win32. Something has gone wrong in the configure phase here, too.
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]