Compile error current master

Geert Janssens janssens-geert at telenet.be
Sat Apr 26 05:13:17 EDT 2014


On Saturday 26 April 2014 11:07:50 Herbert Thoma wrote:
> Hi,
> 
> I get the following error when I try to build the current master
> branch:
> 
> make[5]: Entering directory
> `/home/tma/gnucash/gnucash_cvs/gnucash/src/libqof/qof' /bin/sh
> ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../../..  -I../../../lib/libc -I../../../src -pthread
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  
> -DG_LOG_DOMAIN=\"qof\"  -xc++ -Werror -Wdeclaration-after-statement
> -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations 
> -Wno-unused -MT libgnc_qof_la-gnc-date.lo -MD -MP -MF
> .deps/libgnc_qof_la-gnc-date.Tpo -c -o libgnc_qof_la-gnc-date.lo
> `test -f 'gnc-date.c' || echo './'`gnc-date.c libtool: compile:  gcc
> -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/libc -I../../../src
> -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -DG_LOG_DOMAIN=\"qof\" -xc++ -Werror -Wdeclaration-after-statement -g
> -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
> -Wno-unused -MT libgnc_qof_la-gnc-date.lo -MD -MP -MF
> .deps/libgnc_qof_la-gnc-date.Tpo -c gnc-date.c  -fPIC -DPIC -o
> .libs/libgnc_qof_la-gnc-date.o cc1plus: error: command line option
> '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++
> [-Werror] cc1plus: error: command line option '-Wmissing-prototypes'
> is valid for C/ObjC but not for C++ [-Werror] cc1plus: all warnings
> being treated as errors
> make[5]: *** [libgnc_qof_la-gnc-date.lo] Fehler 1
> make[5]: Leaving directory
> `/home/tma/gnucash/gnucash_cvs/gnucash/src/libqof/qof'
> 
> When did we start with C++?
> 
Yesterday.

John committed the first few patches to compile libqof as a c++ library.

But apparently there's an issue with gcc and these patches. See also bug 
https://bugzilla.gnome.org/show_bug.cgi?id=729001

Geert


More information about the gnucash-devel mailing list