On Sat, 22 Jun 2013 15:44:25 +0200, David Suárez wrote:
> > osm-gps-map-widget.c: In function 'osm_gps_map_tile_download_complete':
> > osm-gps-map-widget.c:778:21: error: format '%lld' expects argument of type
> > 'long long int', but argument 4 has type 'goffset' [-Werror=format=]
> > g_debug("Wrote "MSG_RESPONSE_LEN_FORMAT" bytes to %s",
> > MSG_RESPONSE_LEN(msg), dl->filename);
> > ^
> > cc1: some warnings being treated as errors
> > make[3]: *** [libosmgpsmap_la-osm-gps-map-widget.lo] Error 1
This problem can be fixed by the attached patch (backported from
upstream git), but the build fails later with:
debian/rules override_dh_auto_install
make[1]: Entering directory `/tmp/buildd/osm-gps-map-0.7.3'
for py in python2.7; do \
PYTHON=$py dh_auto_configure -Dpython/; \
dh_auto_build -Dpython/; \
dh_auto_install -Dpython/; \
dh_auto_clean -Dpython/; \
find /tmp/buildd/osm-gps-map-0.7.3/debian/tmp/usr/lib/$py \( -name
"*.a" -o -name "*.la" \) -delete ; \
done
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
running build
running build_ext
building 'osmgpsmap' extension
creating build
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -UGDK_DISABLE_DEPRECATED -UGDK_DISABLE_DEPRECATED
-D_FORTIFY_SOURCE=2 -fPIC -DVERSION="""0.7.3""" -I/usr/include/python2.7 -c
osmgpsmapmodule.c -o build/temp.linux-x86_64-2.7/osmgpsmapmodule.o
osmgpsmapmodule.c:19:23: fatal error: pygobject.h: No such file or directory
#include <pygobject.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
dh_auto_build: python setup.py build --force returned exit code 1
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
running install
running build
running build_ext
building 'osmgpsmap' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -UGDK_DISABLE_DEPRECATED -UGDK_DISABLE_DEPRECATED
-D_FORTIFY_SOURCE=2 -fPIC -DVERSION="""0.7.3""" -I/usr/include/python2.7 -c
osmgpsmapmodule.c -o build/temp.linux-x86_64-2.7/osmgpsmapmodule.o
osmgpsmapmodule.c:19:23: fatal error: pygobject.h: No such file or directory
#include <pygobject.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
dh_auto_install: python setup.py install --force
--root=/tmp/buildd/osm-gps-map-0.7.3/debian/tmp --no-compile -O0
--install-layout=deb returned exit code 1
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
Package osmgpsmap was not found in the pkg-config search path.
Perhaps you should add the directory containing `osmgpsmap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'osmgpsmap' found
running clean
removing 'build/temp.linux-x86_64-2.7' (and everything under it)
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
removing 'build'
find: `/tmp/buildd/osm-gps-map-0.7.3/debian/tmp/usr/lib/python2.7': No such
file or directory
make[1]: *** [override_dh_auto_install] Error 1
make[1]: Leaving directory `/tmp/buildd/osm-gps-map-0.7.3'
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
and I'm not sure where to stick the missing includes (there seem to
be several) into the python build framework ...
Cheers,
gregor
--
.''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Sierra Maestra: El Reloj de Pastora
diff -Nru osm-gps-map-0.7.3/debian/changelog osm-gps-map-0.7.3/debian/changelog --- osm-gps-map-0.7.3/debian/changelog 2012-07-10 09:01:43.000000000 +0200 +++ osm-gps-map-0.7.3/debian/changelog 2013-11-10 19:42:20.000000000 +0100 @@ -1,3 +1,15 @@ +osm-gps-map (0.7.3-3.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS: osm-gps-map-widget.c:778:21: error: format '%lld' + expects argument of type 'long long int', but argument 4 has type + 'goffset' [-Werror=format=]": + add patch 02-strict-compilation.patch, backported from upstream + git commit 704f18a. + (Closes: #713635) + + -- gregor herrmann <[email protected]> Sun, 10 Nov 2013 19:13:33 +0100 + osm-gps-map (0.7.3-3) unstable; urgency=low * Add missing dependency on python-gtk2 (Closes: #680815) diff -Nru osm-gps-map-0.7.3/debian/patches/02-strict-compilation.patch osm-gps-map-0.7.3/debian/patches/02-strict-compilation.patch --- osm-gps-map-0.7.3/debian/patches/02-strict-compilation.patch 1970-01-01 01:00:00.000000000 +0100 +++ osm-gps-map-0.7.3/debian/patches/02-strict-compilation.patch 2013-11-10 19:12:59.000000000 +0100 @@ -0,0 +1,20 @@ +From 704f18a057e1e9321ade4140cfa7f0f546605eea Mon Sep 17 00:00:00 2001 +From: houz <[email protected]> +Date: Mon, 7 Jan 2013 12:35:05 +0100 +Subject: [PATCH] compile with strict compilation + +--- + src/osm-gps-map-widget.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/src/osm-gps-map-widget.c ++++ b/src/osm-gps-map-widget.c +@@ -750,7 +750,7 @@ + #else + #define MSG_RESPONSE_BODY(a) ((a)->response_body->data) + #define MSG_RESPONSE_LEN(a) ((a)->response_body->length) +-#define MSG_RESPONSE_LEN_FORMAT "%lld" ++#define MSG_RESPONSE_LEN_FORMAT "%"G_GOFFSET_FORMAT + #endif + + #if USE_LIBSOUP22 diff -Nru osm-gps-map-0.7.3/debian/patches/series osm-gps-map-0.7.3/debian/patches/series --- osm-gps-map-0.7.3/debian/patches/series 2011-06-16 23:44:16.000000000 +0200 +++ osm-gps-map-0.7.3/debian/patches/series 2013-11-10 19:11:13.000000000 +0100 @@ -1 +1,2 @@ 01-fix_python_linking.patch +02-strict-compilation.patch
signature.asc
Description: Digital signature

