[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] Re: GLib failing on FreeBSD
From: |
Tony Theodore |
Subject: |
Re: [Mingw-cross-env-list] Re: GLib failing on FreeBSD |
Date: |
Sat, 13 Feb 2010 17:47:40 +1100 |
On 9 February 2010 04:31, Volker Grabsch <address@hidden> wrote:
> Tony Theodore <address@hidden> schrieb:
>> On 9 February 2010 01:14, Tony Theodore <address@hidden> wrote:
>> > GLib is failing on FreeBSD with a strange error:
>> >
>> > checking for iconv_open... no
>> > configure: error: *** No iconv() implementation found in C library or
>> > libiconv
>> >
>> > even though it's being configured --without-libiconv.
>> >
>> > The following seems to fix it, much the same as zlib.
>>
>> Ignore that, I spoke too soon, I'll have to look a little further.
>
> I produced a bugfix that seems to work at least on MacOS:
>
> http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/4c689b764393
>
> Please check whether this solves the problem.
The latest check-in to re-enable the native build seems to have fixed
the problem, however there is a new strange error:
checking pkg-config is at least version 0.9.0... yes
checking for PCRE... yes
checking for Unicode support in PCRE... yes
checking for EILSEQ... yes
checking if libc has __abort_msg... no
checking for glib-genmarshal...
/home/tony/mingw-cross-env/usr/i686-pc-mingw32/bin/glib-genmarshal
./configure: 45755: Syntax error: word unexpected (expecting ")")
gmake[1]: *** [build-only-glib] Error 2
gmake[1]: Leaving directory `/usr/home/tony/mingw-cross-env'
The line itself in configure is:
GTK_DOC_CHECK(1.11)
Commenting it out allows the build to continue:
diff -r 4900eca60bd8 src/glib.mk
--- a/src/glib.mk Fri Feb 12 20:49:40 2010 +0100
+++ b/src/glib.mk Sat Feb 13 17:38:27 2010 +1100
@@ -57,7 +57,8 @@
cd '$(1)' && autoconf
$(SED) 's,^\(Libs:.*\),\1 @PCRE_LIBS@ @G_THREAD_LIBS@
@G_LIBS_EXTRA@ -lshlwapi,' -i '$(1)/glib-2.0.pc.in'
# wine confuses the cross-compiling detection, so set it explicitly
- $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
+ $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
+ $(SED) 's,GTK_DOC_CHECK(1.11),#GTK_DOC_CHECK(1.11),' -i '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
but I'm not sure why. I was thinking that maybe it's because FreeBSD
uses /bin/sh?
Regards,
Tony