[Mono-list] RE: Mac X and latest cvs source

Andy Satori dru@satori-assoc.com
Wed, 20 Aug 2003 11:00:41 -0400

No, this is not the case.

I have glib-2.0 installed and configured, correctly, that's not the 
issue.  The error raised by configure isn't that the package isn't 
installed (pkg-config even knows about glib-2.0 and returns correctly). 
  I happen to think that we are exposing a bug in either autogen.sh  or 
configure.  I've attached the corresponding errors for your 
entertainment :-).

<!-- log -->

checking for pkg-config... /usr/local/bin/pkg-config
./configure: line 8619: syntax error near unexpected token 
./configure: line 8619: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 

<!-- /log -->

Since the log doesn't tell you the context, let's try looking closely 
at the relevant section of the configure that autogen.sh builds

<!-- snippet of configure -->

8618 ## Versions of dependencies
8623 GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
8624 GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
8625 GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
8626 GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`

<!-- /snippet of configure -->

The configure that was part of the pre .23 releases built fine.  
STarting with .24, configure started failing on this.  As you can see 
the error itself is not on glib-2.0.  Commenting out lines 8619 and 
8621 from this configure will successfully build the mono exectuable, 
and it will run, though, I don't have an mcs on the machine so I 
obviously cannot get a fullbuild right now.

I know next to nothing about shell scripting, so I've now pretty much 
exhausted my knowledge level on the subject.  PKG_CHECK_MODULES would 
appear to be a function call, but I don't see it's definition using a 
grep of the directory doesn't show it being used anywhere else in the 
build system, so I'm guessing (of the wild ass variety) that this is a 
dependancy failure, but not one on glib-2.0.

Hope this helps,

On Wednesday, August 20, 2003, at 09:56 AM, Paolo Molaro wrote:

> On 08/19/03 Matthieu Cormier wrote:
>> ./autogen.sh --prefix=/usr/local
>> 	This will complain about line 8056 -->
>> comment out the line
>> in "configure" file
> This means you don't have glib-2.0 correctly installed. Without it
> you'll never get mono compiled. People suggest using Fink because it
> makes it easy to have this and other dependencies in place.
> lupus
> -- 
> -----------------------------------------------------------------
> lupus@debian.org                                     debian/rules
> lupus@ximian.com                             Monkeys do it better
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list