Re: src/engine/{qof,gnc}la-dir.h not being built
Josh Sled wrote: Noticed during normal upgrade/build cycle (from a cvs update yesterday evening, which was g2-latest), but I `make distclean`ed, re-autogen and re-`make install`ed just to be sure... ... src/engine/{qof,gnc}la-dir.h is not being built: qof.h:99:23: qofla-dir.h: No such file or directory make[3]: *** [gnc-date.lo] Error 1 qofla-dir.h is not included in the BUILT_SOURCES variable which causes this problem, I suppose. The Makefile is set up in a way that qofla-dir.h and the whole qof files will only be built if USE_LIBQOF is true. The variable qof_builds is supposed to add qofla-dir.h to BUILT_SOURCES... hm... maybe writing $(qof_builds) instead of ${qof_builds} helps? Or writing BUILT_SOURCES += qofla-dir.h in the USE_LIBQOF section helps? Christian ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: src/engine/{qof,gnc}la-dir.h not being built
On Monday 31 October 2005 2:21 pm, Christian Stimming wrote: Josh Sled wrote: Noticed during normal upgrade/build cycle (from a cvs update yesterday evening, which was g2-latest), but I `make distclean`ed, re-autogen and re-`make install`ed just to be sure... ... src/engine/{qof,gnc}la-dir.h is not being built: qof.h:99:23: qofla-dir.h: No such file or directory make[3]: *** [gnc-date.lo] Error 1 qofla-dir.h is not included in the BUILT_SOURCES variable which causes this problem, I suppose. Ah, OK. The Makefile is set up in a way that qofla-dir.h and the whole qof files will only be built if USE_LIBQOF is true. Yes, if USE_LIBQOF is false, qofla-dir.h is available via the libqof-dev package in /usr/include/qof/ and as it is a standard QOF header now, it is included via qof.h, hence the error if it isn't found with USE_LIBQOF = true. The variable qof_builds is supposed to add qofla-dir.h to BUILT_SOURCES... hm... maybe writing $(qof_builds) instead of ${qof_builds} helps? I didn't think () vs {} was meant to matter but I do try to use {}. Or writing BUILT_SOURCES += qofla-dir.h Probably better to define a variable that is empty if USE_LIBQOF is false and contains qofla-dir.h if true. Then add that variable to the existing BUILT_SOURCES line for both cases. I've had problems with using +=. Josh - is this problem continuing after you also solved the problem with gncla-dir.h? It could be an artefact of that problem. If so (and adding it to BUILT_SOURCES doesn't fix it), I'll look at it and commit any changes after the CVS-SVN change. It's partially a result of the vagaries of the gnucash build - in other programs I simply build the file from AC_OUTPUT in configure - it is then always available before `make` runs. -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/ pgp0xHKcuNpwt.pgp Description: PGP signature ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: src/engine/{qof,gnc}la-dir.h not being built
On Monday 31 October 2005 8:08 pm, Neil Williams wrote: Josh - is this problem continuing after you also solved the problem with gncla-dir.h? It could be an artefact of that problem. Sorry, I meant src/backend/qsf not gncla-dir.h -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/ pgppzEovhJzpW.pgp Description: PGP signature ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
src/engine/{qof,gnc}la-dir.h not being built
Noticed during normal upgrade/build cycle (from a cvs update yesterday evening, which was g2-latest), but I `make distclean`ed, re-autogen and re-`make install`ed just to be sure... ... src/engine/{qof,gnc}la-dir.h is not being built: make[3]: Entering directory `/home/jsled/stuff/proj/gnucash/src-g2/gnucash/src/engine' source='gnc-date.c' object='gnc-date.lo' libtool=yes \ depfile='.deps/gnc-date.Plo' tmpdepfile='.deps/gnc-date.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/libc -I../../src/core-utils -I../../src -I../../src/gnc-module -I../../src/business/business-core/ -I../../src/engine -DGNUCASH -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I /usr/include/g-wrap -O3 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -c -o gnc-date.lo `test -f 'gnc-date.c' || echo './'`gnc-date.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/libc -I../../src/core-utils -I../../src -I../../src/gnc-module -I../../src/business/business-core/ -I../../src/engine -DGNUCASH -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I /usr/include/g-wrap -O3 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -c gnc-date.c -MT gnc-date.lo -MD -MP -MF .deps/gnc-date.TPlo -fPIC -DPIC -o .libs/gnc-date.o In file included from gnc-trace.h:40, from gnc-date.c:45: qof.h:99:23: qofla-dir.h: No such file or directory make[3]: *** [gnc-date.lo] Error 1 [...deletia...] source='gnc-engine.c' object='gnc-engine.lo' libtool=yes \ depfile='.deps/gnc-engine.Plo' tmpdepfile='.deps/gnc-engine.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/libc -I../../src/core-utils -I../../src -I../../src/gnc-module -I../../src/business/business-core/ -I../../src/engine -DGNUCASH -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I /usr/include/g-wrap -O3 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -c -o gnc-engine.lo `test -f 'gnc-engine.c' || echo './'`gnc-engine.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/libc -I../../src/core-utils -I../../src -I../../src/gnc-module -I../../src/business/business-core/ -I../../src/engine -DGNUCASH -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I /usr/include/g-wrap -O3 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -c gnc-engine.c -MT gnc-engine.lo -MD -MP -MF .deps/gnc-engine.TPlo -fPIC -DPIC -o .libs/gnc-engine.o In file included from gnc-engine.h:40, from gnc-engine.c:28: qof.h:99:23: qofla-dir.h: No such file or directory gnc-engine.c:47:23: gncla-dir.h: No such file or directory gnc-engine.c: In function `gnc_engine_init': gnc-engine.c:100: error: `QOF_LIB_DIR' undeclared (first use in this function) gnc-engine.c:100: error: (Each undeclared identifier is reported only once gnc-engine.c:100: error: for each function it appears in.) gnc-engine.c:102: error: `GNC_LIBDIR' undeclared (first use in this function) make[3]: *** [gnc-engine.lo] Error 1 It seems, however, the qofla-dir.h does get built later in the process: [EMAIL PROTECTED]:~/stuff/proj/gnucash/src-g2/gnucash/src/engine]$ ls -l {qof,gnc}la-dir.h ls: gncla-dir.h: No such file or directory -rw-r--r-- 1 jsled users 1067 Oct 30 15:54 qofla-dir.h If I force it built, then things are fine of course, but I shouldn't need to. ...jsled -- http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo [EMAIL PROTECTED] ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel