[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble with gethostname and mingw-w64 x86_64

From: T J
Subject: Trouble with gethostname and mingw-w64 x86_64
Date: Wed, 12 Nov 2014 19:53:40 +0800

I've been having some difficulty building FontForge on Windows (8.1 64bit) using msys2 and mingw-w64 (64-bit target). Up until a few months ago, everything was building fine, but now I'm facing an issue which I believe has to do with Gnulib. I can't say that I understand much of how gnulib acutually works, so forgive me if this is a basic error.

I'll start off by saying that building with a 32-bit target works fine. FontForge has `gethostname` as a requirement, so the `gethostname` module is set from Gnulib. When building on 32-bit and when running the configure script, the detection for `gethostname` fails (not present) and so I believe gnulib does its own implementation and everything works.

However, when building for 64-bit, the `gethostname` detection succeeds (it is available http://msdn.microsoft.com/en-us/library/windows/desktop/ms738527%28v=vs.85%29.aspx but not on XP).

I believe this is where things go wrong. When building, Gnulib replaces instances of `gethostname` with `rpl_gethostname`, but `rpl_gethostname` is never compiled into the support library. For that matter, even though I can see `gethostname.c` under `lib/`, it is completely ignored when compiling. Thus when it comes to the linking stage, it falls over, with:

.libs/libgutils_la-gnetwork.o: In function `ff_gethostname':
C:\msys64\home\box\ffbuild\work\mingw64\fontforge\gutils/gnetwork.c:57: undefined reference to `rpl_gethostname'

I have attached two files - one is the build log for 32-bit (which succeeds in building) and another for 64-bit (which fails to build).

So, with that said does anyone know where to go from here? Any help in resolving this issue would be greatly appreciated.


Attachment: 64-11-11-14.txt
Description: Text document

Attachment: 32-12-11-14.txt
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]