[Pkg-qof-maintainers] Bug#596198: qofdate.c:821: warning: implicit declaration of function '__isleap'

Ryan Schmidt debian at ryandesign.com
Thu Sep 9 07:01:09 UTC 2010


Package: qof
Version: 0.8.1

Hi, I'm a maintainer with the MacPorts project, where I'm trying to create a package for qof. I can't get it to build on Mac OS X 10.6.4 Snow Leopard, and I was advised by Neil Williams to report this bug here. After running "./configure --prefix=/opt/local --disable-sqlite" and "make" I get this error:

libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -DPREFIX=\"/opt/local\" -DDATADIR=\"/opt/local/share\" -I/opt/local/include -g -DQOF_LIB_DIR=\"/opt/local/lib/qof2\" -Werror -Wdeclaration-after-statement -Wno-pointer-sign -I/opt/local/include/libgda-3.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -pipe -O2 -arch x86_64 -g2 -Wall -MT qofdate.lo -MD -MP -MF .deps/qofdate.Tpo -c qofdate.c  -fno-common -DPIC -o .libs/qofdate.o
cc1: warnings being treated as errors
qofdate.c: In function 'qof_date_to_struct_tm':
qofdate.c:748: warning: assignment discards qualifiers from pointer target type
qofdate.c: In function 'qof_date_offset':
qofdate.c:821: warning: implicit declaration of function '__isleap'
make[3]: *** [qofdate.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I did not attempt to bypass "warnings being treated as errors" since "implicit declaration of function '__isleap'" sounded like an important problem to me.

I am using "gcc version 4.2.1 (Apple Inc. build 5664)" which was installed by Xcode 3.2.3. glib2 @2.24.2_0, libgda3 @3.0.4_1 and libxml2 @2.7.7_0 were already installed, using MacPorts.







More information about the Pkg-qof-maintainers mailing list