I committed this patch to git and started to test, but it fails to
compile for me. Quick repro:

git clone https://anonscm.debian.org/git/collab-maint/ifmetric.git
cd ifmetric/
git-buildpackage

Due to hardening flags that are used for Debian packages, this needs
some definition before use.

-- 
Kind regards,
Michael
(master)mshuler@hana:~/git/ifmetric$ git-buildpackage 
 dpkg-buildpackage -rfakeroot -D -us -uc -i -I
dpkg-buildpackage: source package ifmetric
dpkg-buildpackage: source version 0.3-5
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by Michael Shuler <mich...@pbandjelly.org>
 dpkg-source -i -I --before-build ifmetric
dpkg-buildpackage: host architecture amd64
dpkg-source: info: using options from ifmetric/debian/source/local-options: 
--unapply-patches --abort-on-upstream-changes
dpkg-source: info: applying ifmetric.c_typo
dpkg-source: info: applying nlrequest.c_packet-too-small_fix
dpkg-source: info: applying ifmetric.8_typo
dpkg-source: info: applying ifmetric.c_netlink-invalid-arg
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
   dh_autoreconf_clean
   dh_clean
 dpkg-source -i -I -b ifmetric
dpkg-source: info: using options from ifmetric/debian/source/local-options: 
--unapply-patches --abort-on-upstream-changes
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building ifmetric using existing ./ifmetric_0.3.orig.tar.gz
dpkg-source: info: building ifmetric in ifmetric_0.3-5.debian.tar.xz
dpkg-source: info: building ifmetric in ifmetric_0.3-5.dsc
 debian/rules build
dh build
   dh_testdir
   dh_update_autotools_config
   dh_autoreconf
configure.ac:36: installing './compile'
   dh_auto_configure
        ./configure --build=x86_64-linux-gnu --prefix=/usr 
--includedir=\${prefix}/include --mandir=\${prefix}/share/man 
--infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var 
--disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu 
--libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode 
--disable-dependency-tracking
configure: WARNING: unrecognized options: --disable-maintainer-mode
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for memset... yes
checking for socket... yes
checking for strerror... yes
checking for strrchr... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ANSI C header files... (cached) yes
checking whether ln -s works... yes
checking for pid_t... yes
checking linux/version.h usability... yes
checking linux/version.h presence... yes
checking for linux/version.h... yes
checking for lynx... yes
checking for xmltoman... no
configure: WARNING: *** Not rebuilding man pages as xmltoman is not found ***
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating doc/Makefile
config.status: creating doc/README.html
config.status: creating config.h
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --disable-maintainer-mode
   dh_auto_build
        make -j1
make[1]: Entering directory '/home/mshuler/git/ifmetric'
make  all-recursive
make[2]: Entering directory '/home/mshuler/git/ifmetric'
Making all in src
make[3]: Entering directory '/home/mshuler/git/ifmetric/src'
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2  -g -O2 -fPIE 
-fstack-protector-strong -Wformat -Werror=format-security -pipe -Wall -c -o 
ifmetric.o ifmetric.c
ifmetric.c: In function ‘set_route_metric’:
ifmetric.c:100:37: error: ‘RTNH_F_LINKDOWN’ undeclared (first use in this 
function)
     r->rtm_flags &= ~(RTNH_F_DEAD | RTNH_F_LINKDOWN);
                                     ^
ifmetric.c:100:37: note: each undeclared identifier is reported only once for 
each function it appears in
Makefile:358: recipe for target 'ifmetric.o' failed
make[3]: *** [ifmetric.o] Error 1
make[3]: Leaving directory '/home/mshuler/git/ifmetric/src'
Makefile:368: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/mshuler/git/ifmetric'
Makefile:308: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/mshuler/git/ifmetric'
dh_auto_build: make -j1 returned exit code 2
debian/rules:9: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc -i -I failed
gbp:error: 'debuild -i -I' failed: it exited with 29

Reply via email to