mingw-cross-env-list
[Top][All Lists]
Advanced

[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: Mon, 15 Feb 2010 04:07:41 +1100

On 15 February 2010 03:09, Volker Grabsch <address@hidden> wrote:
> Tony Theodore <address@hidden> schrieb:
>> however there is a new strange error:
> [...]
>> ./configure: 45755: Syntax error: word unexpected (expecting ")")
> [...]
>> The line itself in configure is:
>>
>> GTK_DOC_CHECK(1.11)
>
> This is very strange, because I thought I already solved that issue.
>
> The problem is that that there is no "GTK_DOC_CHECK" macro defined,
> so autoconf copied that line verbatim from configure.in into the
> ./configure script, where it causes a syntax error.
>
> I solved this by removing that line from configure.in (via
> "src/glib-win32.patch") and by running autoconf in "src/glib.mk".
>
> Please check if you were running the latest version of mingw-cross-env,
> and provide the full "log/glib" for further investigation.

Very strange indeed, a hg diff shows nothing changed about the patch
(but you can see the autoconf in glib.mk), but a revert brings the
patch back? Maybe I deleted it somehow. Anyway, it's building
successfully now, thanks for looking at it.

%hg diff
diff -r 4900eca60bd8 src/glib.mk
--- a/src/glib.mk       Fri Feb 12 20:49:40 2010 +0100
+++ b/src/glib.mk       Mon Feb 15 03:42:40 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 \
diff -r 4900eca60bd8 src/postgresql.mk
--- a/src/postgresql.mk Fri Feb 12 20:49:40 2010 +0100
+++ b/src/postgresql.mk Mon Feb 15 03:42:40 2010 +1100
@@ -57,7 +57,7 @@
     $(INSTALL) -m664 '$(1)/src/include/pg_config.h'
'$(PREFIX)/$(TARGET)/include/'
     $(INSTALL) -m664 '$(1)/src/include/postgres_ext.h'
'$(PREFIX)/$(TARGET)/include/'
     # Build a native pg_config.
-    echo '/* empty */' >'$(1)'/src/include/pg_config_os.h
+    cd '$(1)' && ./configure
     gcc \
         -I'$(1)'/src/include \
         -DFRONTEND \
diff -r 4900eca60bd8 src/vmime.mk
--- a/src/vmime.mk      Fri Feb 12 20:49:40 2010 +0100
+++ b/src/vmime.mk      Mon Feb 15 03:42:40 2010 +1100
@@ -32,7 +32,8 @@
          target='$(TARGET)' \
          sendmail_path=/sbin/sendmail

-    $(SED) 's,libtoolize ,$(LIBTOOLIZE) ,' -i '$(1)'/bootstrap
+    $(SED) 's,libtoolize ,$(LIBTOOLIZE) ,'  -i '$(1)'/bootstrap
+    $(SED) 's,/bin/bash,/usr/bin/env bash,' -i '$(1)'/bootstrap
     cd '$(1)' && ./bootstrap
     cd '$(1)' && ./configure \
       --prefix='$(PREFIX)/$(TARGET)' \
%hg revert -a
reverting src/glib-win32.patch
reverting src/glib.mk
reverting src/postgresql.mk
reverting src/vmime.mk

Tony




reply via email to

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