Compiling problems on OpenSuse 10.0

Stefan Norin stefan.norin at bredband.net
Thu Jul 20 19:07:53 EDT 2006


grep HAVE_GLIB config.h returns

#define HAVE_GLIB26 1
#define HAVE_GLIB29 1

rpm -qa | grep -i glib returns

taglib-32bit-1.4-5
glibc-32bit-2.3.5-40
glib2-2.8.1-3
dbus-1-glib-32bit-0.35.2-8
dbus-1-glib-0.35.2-8
glib2-32bit-2.8.1-3
glibc-locale-32bit-2.3.5-40
glibc-locale-2.3.5-40
glib-1.2.10-595
taglib-1.4-5
glib2-devel-2.8.1-3
glibc-devel-2.3.5-40
glib-32bit-1.2.10-595
glibc-i18ndata-2.3.5-40
glibc-2.3.5-40
glib-devel-1.2.10-595

The compile line before the error is:

gcc -I../../../src/test-core -I.. -pthread -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign
-D_FORTIFY_SOURCE=2 -o .libs/test-link-module
test-link-module.o  ../../../src/engine/.libs/libgncmod-engine.so
-L/usr/local/lib -L/usr/X11R6/lib64 -L/opt/gnome/lib64
-L/usr/lib64 ../.libs/libgncmod-network-utils.so
 /home/stefan/gnucash-2.0.0/src/gnc-module/.libs/libgncmodule.so
 /home/stefan/gnucash-2.0.0/src/core-utils/.libs/libcore-utils.so
 /usr/local/lib/libgwrap-guile-runtime.so
 /usr/local/lib/libgwrap-core-runtime.so /usr/local/lib/../lib64/libffi.so
 /usr/lib64/libguile.so /usr/lib64/libguile-ltdl.so -lcrypt
-lffi /usr/lib64/libltdl.so /opt/gnome/lib64/libgnomeui-2.so
 /usr/lib64/libjpeg.so /opt/gnome/lib64/libbonoboui-2.so
 /opt/gnome/lib64/libgnome-2.so /opt/gnome/lib64/libgnomevfs-2.so -lssl
 -lcrypto
-ldns_sd /opt/gnome/lib64/libbonobo-2.so
 /opt/gnome/lib64/libbonobo-activation.so
 /opt/gnome/lib64/libORBitCosNaming-2.so /usr/lib64/libxml2.so
 /opt/gnome/lib64/libgconf-2.so /opt/gnome/lib64/libORBit-2.so
 /opt/gnome/lib64/libgthread-2.0.so /opt/gnome/lib64/libgnome-keyring.so
 /opt/gnome/lib64/libgnomecanvas-2.so /opt/gnome/lib64/libgtk-x11-2.0.so
 /opt/gnome/lib64/libgdk-x11-2.0.so /opt/gnome/lib64/libatk-1.0.so
 /opt/gnome/lib64/libgdk_pixbuf-2.0.so /opt/gnome/lib64/libpangocairo-1.0.so
 /usr/lib64/libcairo.so /usr/lib64/libglitz.so /usr/lib64/libart_lgpl_2.so
 /opt/gnome/lib64/libpangoft2-1.0.so /opt/gnome/lib64/libpango-1.0.so
 /opt/gnome/lib64/libgobject-2.0.so /opt/gnome/lib64/libgmodule-2.0.so
 /opt/gnome/lib64/libglib-2.0.so /usr/local/lib/libgnome-2.so
 /usr/lib64/libesd.so /usr/lib64/libasound.so -lresmgr
 /usr/lib64/libaudiofile.so /usr/local/lib/libart_lgpl_2.so
 /usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so
 /usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so
 /usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libpangoft2-1.0.so
 /usr/local/lib/libpango-1.0.so /usr/local/lib/libcairo.so -lSM -lICE
 -lXrender -lX11 -lXext
-lpng12 /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so
 /usr/lib64/libexpat.so /usr/local/lib/libgnomevfs-2.so
 /usr/local/lib/libxml2.so -lz -lresolv -lutil
-lrt /usr/local/lib/libbonobo-2.so /usr/local/lib/libgconf-2.so
 /usr/local/lib/libbonobo-activation.so /usr/local/lib/libORBitCosNaming-2.so
 /usr/local/lib/libORBit-2.so
 /home/stefan/gnucash-2.0.0/lib/libqof/qof/.libs/libgncqof.so
 /usr/local/lib/libgthread-2.0.so -lpthread /usr/local/lib/libgobject-2.0.so
 /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so
 /usr/lib64/libpopt.so -lm -Wl,--rpath -Wl,/usr/local/lib/gnucash -Wl,--rpath
 -Wl,/usr/local/lib/../lib64

/Stefan

fredag 21 juli 2006 00:33 skrev du:
> 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.

-------------------------------------------------------



More information about the gnucash-user mailing list