PLEASE remember to CC: the mailing list on all replies, using your mailer's Reply To List or Reply To All feature.
"N. Peguiron" <[EMAIL PROTECTED]> writes: > Josh Sled wrote: >> "N. Peguiron" <[EMAIL PROTECTED]> writes: >>> Now I'm trying to build GNC-2.2.3 from source. Build is ok, but test suite >>> crashes with following output tail (2>&1) : > <snip> >>>> gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include >>>> -I../../../../src/test-core -I.. -Wdeclaration-after-statement >>>> -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused >>>> -Wmissing-prototypes -Wmissing-declarations -Wno-unused -o >>>> .libs/test-link-module test-link-module.o >>>> ../../../../src/engine/.libs/libgncmod-engine.so >>>> ../../../../src/app-utils/.libs/libgncmod-app-utils.so >>>> ../.libs/libgncmod-register-core.so /usr/lib/libpopt.so -lm -Wl,--rpath >>>> -Wl,/usr/lib/gnucash >>>> /usr/lib/gnucash/libgncmod-gnome-utils.so: undefined reference to >>>> xaccFreqSpecSetDaily' > <snip> >>>> make: *** [check] Error 2 >> >> The nature of the error above is that your gnucash-2.2.x build is linking >> against gnucash-2.0.y libraries installed into /usr. 2.0 had these >> FreqSpec-related symbols, and 2.2 does not. > Yes, you've caught it ! But as I am building this new release in a working > directory (/usr/src/gnucash-2.2.3) and I have not yet installed it, I don't > understand why this gcc command links against a library which is supposed to > be not yet installed. > > Of course, my "old" Gnucash-2.2.0 is still in operation; I do not have > uninstalled it. Should I ? You shouldn't need to, no. Most devs regularly build from somewhere under $HOME, and install into something like /opt/gnc/svn/…. I personally did all 2.2 work (including the FreqSpec -> Recurrence switchover and removal) with 2.0.5 installed normally in /usr/. Perhaps the issue is that the build location is itself /usr/, for some reason? >> How did you invoke configure and make, here? What distro/OS/version are you >> using? > ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib > --with-gconf-schema-file-dir=/etc/gnome/<version>/gconf/schemas > make > make check > check.log 2>&1 > > My "distro" is Beyond Linux From Scratch (BLFS) for i686-pc-linux-gnu > SVN-061209, kernel 2.6.18.3 and SVN-071229, kernel 2.6.23.12. > According the LFS book, most of user packages are installed with > --prefix=/usr. The configure command above is the one recommanded by the BLFS > book for Gnucash-2.0.0. That configure string seems reasonable. "N. Peguiron" <[EMAIL PROTECTED]> writes: > Josh Sled wrote: […] >> The nature of the error above is that your gnucash-2.2.x build is linking >> against gnucash-2.0.y libraries installed into /usr. 2.0 had these >> FreqSpec-related symbols, and 2.2 does not. > True. If I rename the existing /usr/include/gnucash and /usr/lib/gnucash > directories before the new 2.2.3 build, both make and make test run smoothly. > > Using the existing old libraries should be prevented when building the new > release. I'm pretty sure nothing in the GnuCash sources can affect this, so much as your system's build toolchain really determines which libraries get pulled in. But I'm not a build expert. What version of automake are you using? -- ...jsled http://asynchronous.org/ - a=jsled; b=asynchronous.org; echo [EMAIL PROTECTED]
pgp1OJueKY0fH.pgp
Description: PGP signature
_______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
