Error building GLib

Im trying to build GLib-2.4.0 using the makefile.

I get this error:

    gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthreads -g -O2 -Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c gatomic.c
-fno-common -DPIC -o .libs/gatomic.o
    /var/tmp//cctTsmw7.s:103:Incorrect register `%rdx' used with `l' suffix
    make[3]: *** [gatomic.lo] Error 1
    make[2]: *** [install-recursive] Error 1
    make[1]: *** [install-recursive] Error 1
    make: *** [install] Error 2

Any ideas?


It's likely that a newer version of glib will fix this problem.

However, if you're stuck with 2.4 for some reason, this was discussed in the gtk-devel-list at ... here is the workaround that was reported there.

Here is the workaround that was successful for two users in that thread:

Ah yes, I think I have stumbled on this as well. This is probably caused because the default jhbuildrc for the Mac forces a build for the 486:

When building on intel, force build to be 486, since glib won't enable asm atomic operations otherwise.

try: _f = os.popen("uname -p") if"i386"): append_autogenargs("glib", "--build=i486-apple-darwin")

I changed the last line to:

  append_autogenargs("glib", "--build=x86_64-apple-darwin")

And that fixed it for me. (If you have a Mac with a Core2 processor, the user land will be in 64-bit in Snow Leopard).

Need Your Help

Adding Filters to nHibernate ICriteria

c# nhibernate fluent-nhibernate filtering icriteria

I am trying to add filters to this query using ICriteria. Through the rest of the app, we have used linq to nHibernate, and these filters work fine, but when we use I criteria they break.

draw a chart in javascript

javascript flot

I am very new to javascript. I like to draw a chart from the following array: