You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Justin Lebar (JIRA)" <ji...@apache.org> on 2008/06/21 01:57:44 UTC

[jira] Created: (THRIFT-47) Install process: ./configure has errors

Install process: ./configure has errors
---------------------------------------

                 Key: THRIFT-47
                 URL: https://issues.apache.org/jira/browse/THRIFT-47
             Project: Thrift
          Issue Type: Bug
         Environment: Cygwin, gcc 3.4.4, autoconf 2.61, automake 1.10
            Reporter: Justin Lebar


To reproduce on my machine, I do the following:

{code}
svn checkout http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
./bootstrap.sh
./configure
{code}

This produces the following error:

{code}
./configure: line 21183: syntax error near unexpected token `MONO,'
./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)'
{code}

I get the same error even if I run ./configure --without-csharp --without-mono.

I can get around this by applying the following patch to configure.ac before I run bootstraph.sh:

{code}
Index: configure.ac
===================================================================
--- configure.ac        (revision 670095)
+++ configure.ac        (working copy)
@@ -35,9 +35,9 @@
 AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
 
 AX_THRIFT_LIB(csharp, [C#], yes)
-if test "$with_csharp" = "yes";  then
-  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
-fi
+#if test "$with_csharp" = "yes";  then
+#  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
+#fi
 AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"])
 
 AX_THRIFT_LIB(java, [Java], yes)
{code}

but this obviously doesn't solve the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-47) Install process: ./configure has errors

Posted by "Michael Greene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606938#action_12606938 ] 

Michael Greene commented on THRIFT-47:
--------------------------------------

This is solved the same way as this issue on the FAQ: http://wiki.apache.org/thrift/FAQ#head-f6ffba2d13e1f8a77242280f2e8e21e7254f9ec8
On Cygwin, I think this is located at /usr/local/share/aclocal/pkg.m4 but I don't have an environment available at the moment.

Perhaps that FAQ should be amended to include Cygwin in addition to OS X.

> Install process: ./configure has errors
> ---------------------------------------
>
>                 Key: THRIFT-47
>                 URL: https://issues.apache.org/jira/browse/THRIFT-47
>             Project: Thrift
>          Issue Type: Bug
>         Environment: Cygwin, gcc 3.4.4, autoconf 2.61, automake 1.10
>            Reporter: Justin Lebar
>
> To reproduce on my machine, I do the following:
> {code}
> svn checkout http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
> ./bootstrap.sh
> ./configure
> {code}
> This produces the following error:
> {code}
> ./configure: line 21183: syntax error near unexpected token `MONO,'
> ./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)'
> {code}
> I get the same error even if I run ./configure --without-csharp --without-mono.
> I can get around this by applying the following patch to configure.ac before I run bootstraph.sh:
> {code}
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 670095)
> +++ configure.ac        (working copy)
> @@ -35,9 +35,9 @@
>  AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
>  
>  AX_THRIFT_LIB(csharp, [C#], yes)
> -if test "$with_csharp" = "yes";  then
> -  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> -fi
> +#if test "$with_csharp" = "yes";  then
> +#  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> +#fi
>  AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"])
>  
>  AX_THRIFT_LIB(java, [Java], yes)
> {code}
> but this obviously doesn't solve the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (THRIFT-47) Install process: ./configure has errors

Posted by "Justin Lebar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607352#action_12607352 ] 

jlebar edited comment on THRIFT-47 at 6/23/08 12:23 PM:
--------------------------------------------------------------

Thanks for updating those wiki pages, Tom.  -But, unfortunately, installing pkg-config and copying that file still didn't solve the problem--I still get the same error message.  Again, I had to get pkg.m4 from /usr/share/aclocal, not /usr/local/share/aclocal; I'm not sure if that's important.-  Oh, I see...I need to bootstrap first.  I'll update the Wiki pages accordingly.

      was (Author: jlebar):
    Thanks for updating those wiki pages, Tom.  But, unfortunately, installing pkg-config and copying that file still didn't solve the problem--I still get the same error message.  Again, I had to get pkg.m4 from /usr/share/aclocal, not /usr/local/share/aclocal; I'm not sure if that's important.
  
> Install process: ./configure has errors
> ---------------------------------------
>
>                 Key: THRIFT-47
>                 URL: https://issues.apache.org/jira/browse/THRIFT-47
>             Project: Thrift
>          Issue Type: Bug
>         Environment: Cygwin, gcc 3.4.4, autoconf 2.61, automake 1.10
>            Reporter: Justin Lebar
>
> To reproduce on my machine, I do the following:
> {code}
> svn checkout http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
> ./bootstrap.sh
> ./configure
> {code}
> This produces the following error:
> {code}
> ./configure: line 21183: syntax error near unexpected token `MONO,'
> ./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)'
> {code}
> I get the same error even if I run ./configure --without-csharp --without-mono.
> I can get around this by applying the following patch to configure.ac before I run bootstraph.sh:
> {code}
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 670095)
> +++ configure.ac        (working copy)
> @@ -35,9 +35,9 @@
>  AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
>  
>  AX_THRIFT_LIB(csharp, [C#], yes)
> -if test "$with_csharp" = "yes";  then
> -  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> -fi
> +#if test "$with_csharp" = "yes";  then
> +#  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> +#fi
>  AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"])
>  
>  AX_THRIFT_LIB(java, [Java], yes)
> {code}
> but this obviously doesn't solve the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (THRIFT-47) Install process: ./configure has errors

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Reiss closed THRIFT-47.
-----------------------------

    Resolution: Invalid

This is the same issue that people are seeing on OSX.  I've updated the FAQ on the wiki to make it a bit more explicit.  http://wiki.apache.org/thrift/FAQ

> Install process: ./configure has errors
> ---------------------------------------
>
>                 Key: THRIFT-47
>                 URL: https://issues.apache.org/jira/browse/THRIFT-47
>             Project: Thrift
>          Issue Type: Bug
>         Environment: Cygwin, gcc 3.4.4, autoconf 2.61, automake 1.10
>            Reporter: Justin Lebar
>
> To reproduce on my machine, I do the following:
> {code}
> svn checkout http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
> ./bootstrap.sh
> ./configure
> {code}
> This produces the following error:
> {code}
> ./configure: line 21183: syntax error near unexpected token `MONO,'
> ./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)'
> {code}
> I get the same error even if I run ./configure --without-csharp --without-mono.
> I can get around this by applying the following patch to configure.ac before I run bootstraph.sh:
> {code}
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 670095)
> +++ configure.ac        (working copy)
> @@ -35,9 +35,9 @@
>  AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
>  
>  AX_THRIFT_LIB(csharp, [C#], yes)
> -if test "$with_csharp" = "yes";  then
> -  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> -fi
> +#if test "$with_csharp" = "yes";  then
> +#  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> +#fi
>  AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"])
>  
>  AX_THRIFT_LIB(java, [Java], yes)
> {code}
> but this obviously doesn't solve the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-47) Install process: ./configure has errors

Posted by "Justin Lebar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607317#action_12607317 ] 

Justin Lebar commented on THRIFT-47:
------------------------------------

At least on my Cygwin install, I don't have a /usr/local/share/aclocal directory.  I have /usr/share/aclocal, but that directory only contains bison-i18n.m4, libtool.m4, and ltdl.m4.  I tried copying all of these to thrift/aclocal, but it didn't solve the problem.  I also searched for pkg.m4 in my c:\Cygwin directory and didn't find it.

Any other ideas as to how I should approach this on Cygwin?

> Install process: ./configure has errors
> ---------------------------------------
>
>                 Key: THRIFT-47
>                 URL: https://issues.apache.org/jira/browse/THRIFT-47
>             Project: Thrift
>          Issue Type: Bug
>         Environment: Cygwin, gcc 3.4.4, autoconf 2.61, automake 1.10
>            Reporter: Justin Lebar
>
> To reproduce on my machine, I do the following:
> {code}
> svn checkout http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
> ./bootstrap.sh
> ./configure
> {code}
> This produces the following error:
> {code}
> ./configure: line 21183: syntax error near unexpected token `MONO,'
> ./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)'
> {code}
> I get the same error even if I run ./configure --without-csharp --without-mono.
> I can get around this by applying the following patch to configure.ac before I run bootstraph.sh:
> {code}
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 670095)
> +++ configure.ac        (working copy)
> @@ -35,9 +35,9 @@
>  AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
>  
>  AX_THRIFT_LIB(csharp, [C#], yes)
> -if test "$with_csharp" = "yes";  then
> -  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> -fi
> +#if test "$with_csharp" = "yes";  then
> +#  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> +#fi
>  AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"])
>  
>  AX_THRIFT_LIB(java, [Java], yes)
> {code}
> but this obviously doesn't solve the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-47) Install process: ./configure has errors

Posted by "Justin Lebar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607352#action_12607352 ] 

Justin Lebar commented on THRIFT-47:
------------------------------------

Thanks for updating those wiki pages, Tom.  But, unfortunately, installing pkg-config and copying that file still didn't solve the problem--I still get the same error message.  Again, I had to get pkg.m4 from /usr/share/aclocal, not /usr/local/share/aclocal; I'm not sure if that's important.

> Install process: ./configure has errors
> ---------------------------------------
>
>                 Key: THRIFT-47
>                 URL: https://issues.apache.org/jira/browse/THRIFT-47
>             Project: Thrift
>          Issue Type: Bug
>         Environment: Cygwin, gcc 3.4.4, autoconf 2.61, automake 1.10
>            Reporter: Justin Lebar
>
> To reproduce on my machine, I do the following:
> {code}
> svn checkout http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
> ./bootstrap.sh
> ./configure
> {code}
> This produces the following error:
> {code}
> ./configure: line 21183: syntax error near unexpected token `MONO,'
> ./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)'
> {code}
> I get the same error even if I run ./configure --without-csharp --without-mono.
> I can get around this by applying the following patch to configure.ac before I run bootstraph.sh:
> {code}
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 670095)
> +++ configure.ac        (working copy)
> @@ -35,9 +35,9 @@
>  AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
>  
>  AX_THRIFT_LIB(csharp, [C#], yes)
> -if test "$with_csharp" = "yes";  then
> -  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> -fi
> +#if test "$with_csharp" = "yes";  then
> +#  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> +#fi
>  AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"])
>  
>  AX_THRIFT_LIB(java, [Java], yes)
> {code}
> but this obviously doesn't solve the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (THRIFT-47) Install process: ./configure has errors

Posted by "tom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607323#action_12607323 ] 

tom commented on THRIFT-47:
---------------------------

You need to install pkgconfig, for more information about compiling with cygwin and mingw check: http://wiki.apache.org/thrift/ThriftInstallationWin32

> Install process: ./configure has errors
> ---------------------------------------
>
>                 Key: THRIFT-47
>                 URL: https://issues.apache.org/jira/browse/THRIFT-47
>             Project: Thrift
>          Issue Type: Bug
>         Environment: Cygwin, gcc 3.4.4, autoconf 2.61, automake 1.10
>            Reporter: Justin Lebar
>
> To reproduce on my machine, I do the following:
> {code}
> svn checkout http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
> ./bootstrap.sh
> ./configure
> {code}
> This produces the following error:
> {code}
> ./configure: line 21183: syntax error near unexpected token `MONO,'
> ./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)'
> {code}
> I get the same error even if I run ./configure --without-csharp --without-mono.
> I can get around this by applying the following patch to configure.ac before I run bootstraph.sh:
> {code}
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 670095)
> +++ configure.ac        (working copy)
> @@ -35,9 +35,9 @@
>  AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
>  
>  AX_THRIFT_LIB(csharp, [C#], yes)
> -if test "$with_csharp" = "yes";  then
> -  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> -fi
> +#if test "$with_csharp" = "yes";  then
> +#  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
> +#fi
>  AM_CONDITIONAL(WITH_MONO, [test "$have_mono" = "yes"])
>  
>  AX_THRIFT_LIB(java, [Java], yes)
> {code}
> but this obviously doesn't solve the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.