Compiling problems on OpenSuse 10.0

Derek Atkins warlord at MIT.EDU
Thu Jul 20 18:33:06 EDT 2006


Huh.  Are you sure?  It certainly looks like you have remnants of different
versions of glib/gtk installed.  What do you get from:

  grep HAVE_GLIB config.h

g_slice_alloc is only in lib/libqof/qof/guid.c, and it's only used
for GLIB 2.9 and above.  You have 2.10, so it should be there.  The
fact that it's not means something is really wrong on your system.
I've got glib-2.10.3-1 and gtk2-2.8.18-1 (this is on FC5) and it
works fine for me.  Also, no other OpenSuSE users have complained,
either.

What do you get from:

  rpm -qa | grep -i glib

Also, what's the actual compile line before this most recent error?

-derek

Quoting Stefan Norin <stefan.norin at bredband.net>:

> I have glib-2.10.3, gdk-pixbuf-0.22.0 and GTK2+-2.8.3
>
> /Stefan
>
> torsdag 20 juli 2006 23:52 skrev Derek Atkins:
>> What versions of glib, gtk, and gdk do you have?
>>
>> -derek
>>
>> Quoting Stefan Norin <stefan.norin at bredband.net>:
>> > I just used ./configure. Went through config.h and noted that it was just
>> > as you suspected (thanks for your help); it was mistakenly compiled with
>> > -disable-deprecated-gnome, gtk, gdk, glib and qof. Then I did ./configure
>> > again with the ---enable option, but during make I ended up with a new
>> > error message:
>> >
>> > ../../../src/engine/.libs/libgncmod-engine.so: undefined reference to
>> > `g_date_set_time_t'
>> > /home/stefan/gnucash-2.0.0/lib/libqof/qof/.libs/libgncqof.so: undefined
>> > reference to `g_slice_alloc'
>> > /home/stefan/gnucash-2.0.0/lib/libqof/qof/.libs/libgncqof.so: undefined
>> > reference to `g_slice_free1'
>> > collect2: ld returned 1 exit status
>> > make[4]: *** [test-link-module] Fel 1
>> > make[4]: Leaving directory
>> > `/home/stefan/gnucash-2.0.0/src/network-utils/test'
>> > make[3]: *** [all-recursive] Fel 1
>> > make[3]: Leaving directory `/home/stefan/gnucash-2.0.0/src/network-utils'
>> > make[2]: *** [all-recursive] Fel 1
>> > make[2]: Leaving directory `/home/stefan/gnucash-2.0.0/src'
>> > make[1]: *** [all-recursive] Fel 1
>> > make[1]: Leaving directory `/home/stefan/gnucash-2.0.0'
>> > make: *** [all] Fel 2
>> >
>> > ./configure without --enable-deprecated-qof resulted in the same error
>> > message.
>> >
>> > I'm sorry for this questions but I'm a newbie on compiling and would
>> > therefore
>> > be very thankful for any further help.
>> >
>> > torsdag 20 juli 2006 15:45 skrev Derek Atkins:
>> >> What /IS/ your configure line?
>> >>
>> >> -derek
>> >>
>> >> Stefan Norin <stefan.norin at bredband.net> writes:
>> >> > I tried both with and without this configure option but ended up with
>> >> > the same result. Any clues??
>> >> >
>> >> >
>> >> > /Stefan
>> >> >
>> >> > torsdag 20 juli 2006 00:31 skrev Derek Atkins:
>> >> >> Did you mistakenly use the --disable-deprecated-gtk configure option?
>> >> >>
>> >> >> -derek
>> >> >>
>> >> >> Quoting Stefan Norin <stefan.norin at bredband.net>:
>> >> >> > I tried to compile Gnucash-2.0.0 on my OpenSuse 10.0 system after
>> >> >> > installing the
>> >> >> > necessary packages mentioned in the README.dependencies file.
>> >> >> > Configure worked fine, but make failed and ŕeturned this error:
>> >> >> >
>> >> >> > In file included from /opt/gnome/include/gtk-2.0/gtk/gtk.h:60,
>> >> >> >                 from gnc-gobject-utils.c:29:
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkclist.h:155: error: syntax error
>> >> >> > before 'GMemC
>> >> >> > hunk'
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkclist.h:155: warning: no
>> >> >> > semicolon at end of s
>> >> >> > truct or union
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkclist.h:156: warning: type
>> >> >> > defaults to 'int' i
>> >> >> > n declaration of 'cell_mem_chunk'
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkclist.h:156: warning: data
>> >> >> > definition has no t
>> >> >> > ype or storage class
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkclist.h:245: error: syntax error
>> >> >> > before '}' to
>> >> >> >
>> >> >> > ken In file included from /opt/gnome/include/gtk-2.0/gtk/gtk.h:68,
>> >> >> >                 from gnc-gobject-utils.c:29:
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkctree.h:110: error: field 'clist'
>> >> >> > has incomple
>> >> >> >
>> >> >> >    te type
>> >> >> > In file included from /opt/gnome/include/gtk-2.0/gtk/gtk.h:152,
>> >> >> >                 from gnc-gobject-utils.c:29:
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkstatusbar.h:68: error: syntax
>> >> >> > error before 'GM
>> >> >> >
>> >> >> >    emChunk'
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkstatusbar.h:68: warning: no
>> >> >> > semicolon at end o
>> >> >> >
>> >> >> > f struct or union
>> >> >> > /opt/gnome/include/gtk-2.0/gtk/gtkstatusbar.h:82: error: syntax
>> >> >> > error before '}'
>> >> >> >
>> >> >> >     token
>> >> >> > make[4]: *** [gnc-gobject-utils.lo] Fel 1
>> >> >> > make[4]: Leaving directory
>> >> >> > `/home/stefan/gnucash-2.0.0/src/core-utils' make[3]: *** [all] Fel
>> >> >> > 2
>> >> >> > make[3]: Leaving directory
>> >> >> > `/home/stefan/gnucash-2.0.0/src/core-utils' make[2]: ***
>> >> >> > [all-recursive] Fel 1
>> >> >> > make[2]: Leaving directory `/home/stefan/gnucash-2.0.0/src'
>> >> >> > make[1]: *** [all-recursive] Fel 1
>> >> >> > make[1]: Leaving directory `/home/stefan/gnucash-2.0.0'
>> >> >> > make: *** [all] Fel 2
>> >> >> >
>> >> >> > Any help would be greatly appreciated.
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > _______________________________________________
>> >> >> > gnucash-user mailing list
>> >> >> > gnucash-user at gnucash.org
>> >> >> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> >> >> > -----
>> >> >> > Please remember to CC this list on all your replies.
>> >> >> > You can do this by using Reply-To-List or Reply-All.
>



-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available




More information about the gnucash-user mailing list