[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Crosscompiling gnustep
From: |
BALATON Zoltan |
Subject: |
Re: Crosscompiling gnustep |
Date: |
Wed, 27 Apr 2005 00:13:35 +0200 (CEST) |
On Tue, 26 Apr 2005, Stefan Urbanek wrote:
I ended with:
Compiling file NSPathUtilities.m ...
NSPathUtilities.m: In function `NSHomeDirectoryForUser':
NSPathUtilities.m:789: warning: implicit declaration of function
`getpwnam'
NSPathUtilities.m:789: warning: assignment makes pointer from integer
without a cast
NSPathUtilities.m:790: error: dereferencing pointer to incomplete type
NSPathUtilities.m:792: error: dereferencing pointer to incomplete type
make[2]: *** [shared_obj/NSPathUtilities.o] Error 1
make[1]: *** [libgnustep-base.all.library.variables] Error 2
make[1]: Leaving directory
`/home/stevko/Developer/Sources/gnustep/core/base/Source'
make: *** [internal-all] Error 2
From your config.log:
configure:8379: checking pwd.h usability
configure:8391: /home/stevko/Developer/mingw/bin/i586-mingw32-gcc -c -g
-O2 -I/System/Library/Headers conftest.c >&5
conftest.c:68:17: pwd.h: No such file or directory
so mingw might not have getpwnam, but the code in NSPathUtilities.m reads:
#ifdef HAVE_PWD_H
#include <pwd.h> // for getpwnam()
#endif
[...]
#if !defined(__MINGW__)
struct passwd *pw;
[gnustep_global_lock lock];
pw = getpwnam ([loginName cString]);
if (pw != 0 && pw->pw_dir != NULL)
{
s = [NSString stringWithCString: pw->pw_dir];
}
[gnustep_global_lock unlock];
#else
s = Win32GetUserProfileDirectory(loginName);
#endif
so it should not try to compile the part calling getpwnam. Is __MINGW__
defined under your crosscompiling environment? Maybe the line
#if !defined(__MINGW__)
could be changed to
#ifdef HAVE_PWD_H
not quite correct, but might work. Maybe others have a better idea.
Regards,
BALATON Zoltan
Re: Crosscompiling gnustep, Adam Fedor, 2005/04/26
Re: Crosscompiling gnustep, Adam Fedor, 2005/04/26