2.4.9 build without dbi
John Ralls
jralls at ceridwen.us
Fri Jan 20 16:11:57 EST 2012
On Jan 20, 2012, at 12:49 PM, Graham Menhennitt wrote:
> On 21/01/2012 07:40, John Ralls wrote:
>> On Jan 20, 2012, at 12:18 PM, Graham Menhennitt wrote:
>>
>>> Hello gnucashers,
>>>
>>> I've been running Gnucash on FreeBSD for several years - built via the port. Unfortunately, the port is still at 2.4.7. I wanted to try 2.4.9 so I modified the port to build that version instead. But it doesn't build - it dies trying to include dbi.h despite me having configured it without the database backend. Before I investigate this any further, I just wanted to check whether this was a deliberate change in 2.4.9 - is there some reason that dbi needs to be present?
>> No, not intentional.
>>
>> What's the error?
>>
> Thanks for replying. I meant to mention that modifying the port to build 2.4.8 works ok. The error is trying to include dbi.h which doesn't exist.
>
> Graham
>
> gmake[5]: Entering directory `/usr/ports/finance/gnucash_249/work/gnucash-2.4.9/src/backend/dbi'
> /bin/sh ../../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../../.. -DG_LOG_DOMAIN=\"gnc.backend.dbi\" -I/usr/local/include -I.. -I../.. -DLOCALE_DIR=\""/usr/local/share/locale"\" -I../../../src/backend -I../../../src/backend/sql -I../../../src/debug -I../../../src/engine -I../../../src/core-utils -I../../../lib/libc -I../../../src/libqof/qof -D_REENTRANT -I/usr/local/include/glib-2.0 -DORBIT2=1 -D_REENTRANT -I/usr/local/include/gconf/2 -I/usr/local/include/orbit-2.0 -I/usr/local/include/glib-2.0 -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -O2 -pipe -fno-strict-aliasing -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT gnc-backend-dbi.lo -MD -MP -MF .deps/gnc-backend-dbi.Tpo -c -o gnc-backend-dbi.lo gnc-backend-dbi.c
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../.. -DG_LOG_DOMAIN=\"gnc.backend.dbi\" -I/usr/local/include -I.. -I../.. -DLOCALE_DIR=\"/usr/local/share/locale\" -I../../../src/backend -I../../../src/backend/sql -I../../../src/debug -I../../../src/engine -I../../../src/core-utils -I../../../lib/libc -I../../../src/libqof/qof -D_REENTRANT -I/usr/local/include/glib-2.0 -DORBIT2=1 -D_REENTRANT -I/usr/local/include/gconf/2 -I/usr/local/include/orbit-2.0 -I/usr/local/include/glib-2.0 -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -O2 -pipe -fno-strict-aliasing -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT gnc-backend-dbi.lo -MD -MP -MF .deps/gnc-backend-dbi.Tpo -c gnc-backend-dbi.c -fPIC -DPIC -o .libs/gnc-backend-dbi.o
> In file included from gnc-backend-dbi.c:38:
> gnc-backend-dbi-priv.h:26:21: error: dbi/dbi.h: No such file or directory
> In file included from gnc-backend-dbi.c:38:
> gnc-backend-dbi-priv.h:62: error: expected ')' before 'conn'
> gnc-backend-dbi-priv.h:64: error: expected ')' before 'conn'
> gnc-backend-dbi-priv.h:68: error: expected specifier-qualifier-list before 'GET_TABLE_LIST_FN'
> gnc-backend-dbi-priv.h:78: error: expected specifier-qualifier-list before 'dbi_conn'
>
Thanks, got it. Fix committed to trunk and 2.4
If you want to fix it on your local copy, the patch is attached.
Regards,
John Ralls
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-r21867-Reverse-the-test-for-HAVE_DBI.patch
Type: application/octet-stream
Size: 1040 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20120120/ca870ce3/attachment.obj>
More information about the gnucash-devel
mailing list