Compile error current master

Mike Alexander mta at umich.edu
Sat Apr 26 10:36:24 EDT 2014


On Apr 26, 2014, at 5:07 AM, Herbert Thoma <herbert.thoma at iis.fraunhofer.de> 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'

I ran into this last night and have some fixes (which work for me using gcc 4.7 on MacOSX 10.8.5) almost ready to check in. I don't know if they will work for other environments.  In particular I wonder about Windows.

               Mike
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4871 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20140426/16305f0e/attachment-0001.p7s>


More information about the gnucash-devel mailing list