Re: Bug#764117: iodine: FTBFS on kfreebsd-*
On Sun, 05 Oct 2014 18:30:23 +0200, Petr Salinger wrote: > >Ok, with the following patch it builds: > > > >#v+ > >% cat debian/patches/kfreebsd.patch > >--- a/src/osflags > >+++ b/src/osflags > >@@ -38,6 +38,9 @@ > > [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS > > -DHAVE_SYSTEMD"; > > echo $FLAGS; > > ;; > >+ GNU/kFreeBSD) > >+ echo '-D_GNU_SOURCE' > >+ ;; > > esac > >;; > >*) > >#v- > > > >(I'm attaching the original src/osflags for reference). > > > >Does this look ok for kFreeBSD? > > Yes, we have the same glibc as Linux and _GNU_SOURCE is hint for glibc. > If it suffices, perfect. Excellent, thanks for the super fast feedback. 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: Peter Ratzenbeck: Flowers from Ayako signature.asc Description: Digital Signature
Re: Bug#764117: iodine: FTBFS on kfreebsd-*
Control: tag -1 + patch On Sun, 05 Oct 2014 16:15:22 +0200, gregor herrmann wrote: > dh_auto_build > make[2]: Entering directory '/«PKGBUILDDIR»' > make[3]: Entering directory '/«PKGBUILDDIR»/src' > OS is GNU/KFREEBSD, arch is x86_64 > CC tun.c > cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -std=c99 > -c -D`echo GNU/kFreeBSD | tr "a-z" "A-Z"` -pedantic `sh osflags GNU/kFreeBSD > cflags` -D_FORTIFY_SOURCE=2 tun.c -o tun.o > :0:4: warning: ISO C99 requires whitespace after the macro name > CC dns.c > cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -std=c99 > -c -D`echo GNU/kFreeBSD | tr "a-z" "A-Z"` -pedantic `sh osflags GNU/kFreeBSD > cflags` -D_FORTIFY_SOURCE=2 dns.c -o dns.o > :0:4: warning: ISO C99 requires whitespace after the macro name > In file included from dns.c:33:0: > /usr/include/arpa/nameser.h:115:8: error: unknown type name 'u_char' > const u_char *_msg, *_eom; > ^ > [... and so on ...] Ok, with the following patch it builds: #v+ % cat debian/patches/kfreebsd.patch --- a/src/osflags +++ b/src/osflags @@ -38,6 +38,9 @@ [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD"; echo $FLAGS; ;; + GNU/kFreeBSD) + echo '-D_GNU_SOURCE' + ;; esac ;; *) #v- (I'm attaching the original src/osflags for reference). Does this look ok for kFreeBSD? 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: Nguyên Lê: Stranieri #!/bin/sh case $2 in link) case $1 in SunOS | solaris) echo '-lsocket -lnsl'; ;; BeOS) echo '-lsocket -lbind -lbsd'; ;; Haiku) echo '-lnetwork'; ;; windows32) echo '-lws2_32 -liphlpapi'; ;; Linux) FLAGS=""; [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux"; [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon"; echo $FLAGS; ;; esac ;; cflags) case $1 in windows32) echo '-DWINVER=0x0501'; ;; BeOS) echo '-Dsocklen_t=int'; ;; Linux) FLAGS="-D_GNU_SOURCE" [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON"; [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD"; echo $FLAGS; ;; esac ;; *) ;; esac signature.asc Description: Digital Signature
Bug#764117: iodine: FTBFS on kfreebsd-*
Package: iodine Version: 0.7.0-1 Severity: serious Justification: fails to build from source (but built successfully in the past) -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 iodine 0.7.0-1 doesn't build on the two kfreebsd-* architectures. The build fails with: dh_auto_build make[2]: Entering directory '/«PKGBUILDDIR»' make[3]: Entering directory '/«PKGBUILDDIR»/src' OS is GNU/KFREEBSD, arch is x86_64 CC tun.c cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -c -D`echo GNU/kFreeBSD | tr "a-z" "A-Z"` -pedantic `sh osflags GNU/kFreeBSD cflags` -D_FORTIFY_SOURCE=2 tun.c -o tun.o :0:4: warning: ISO C99 requires whitespace after the macro name CC dns.c cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -c -D`echo GNU/kFreeBSD | tr "a-z" "A-Z"` -pedantic `sh osflags GNU/kFreeBSD cflags` -D_FORTIFY_SOURCE=2 dns.c -o dns.o :0:4: warning: ISO C99 requires whitespace after the macro name In file included from dns.c:33:0: /usr/include/arpa/nameser.h:115:8: error: unknown type name 'u_char' const u_char *_msg, *_eom; ^ [... and so on ...] https://buildd.debian.org/status/fetch.php?pkg=iodine&arch=kfreebsd-amd64&ver=0.7.0-1&stamp=1412517768 https://buildd.debian.org/status/fetch.php?pkg=iodine&arch=kfreebsd-i386&ver=0.7.0-1&stamp=1412517892 Any help from kfreebsd savvy people more than welcome! Cheers, gregor -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQJ8BAEBCgBmBQJUMVJ6XxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREMUUxMzE2RTkzQTc2MEE4MTA0RDg1RkFC QjNBNjgwMTg2NDlBQTA2AAoJELs6aAGGSaoGei8P/0dh/Ph3tAEL8P/MTI2Trygh pftlg0FhuulSbwrov0ijCgKKtFKLpivD08fRQKVJZVoxWDSyphKRbWaeRY95AKT/ UU2aixmnMsPO9uSVb4LVht0sIsRAC2oL9tPNk/n8K6dYhFdw6K3jo8ZoFlxI1FuW XQ6uDs85QDr6ovt+UqxMStp1R+1QR6cApyWjE9zWFoqqtlRUMK5eNRfkH2fVrZMJ 2FNPFdeEE4V25jWAgbLTOFy2l24spPXfTSbYOQWm27VLwyUYnjlkE91FYxsILk31 zY95Yu7Yrxtuv9jhApRR4IrPnauCfKFbdJeJuaKmN5mp4/kWjeepglU7CMmWrn13 auJaJThi7nO1zZ31hb8ekQx6hCdlRNVkXXr9G/dqlAv+3SHE/d/aJdVOySz64YUV hF3xJL0JvOiE5Hi7bBtHjk99ciY+skc5bQNYyRv5T36Kf4X5c5mAcOR9VTJocNzK qB3pQvuphTlH2xlqZuHjNL1UuXqw+AnnkNPgsdByR8y045c1LPEh7rHvv5G//42m UKBaRqnbG2+ykWrWF/BsAoyG9xsIdmw7bTHP3cTqzw9JrVqJTBAmQQdX2TCOKpug 4ID4YZ0kv83F0M4cfnGAF302Ac24FVwhYze1leb9LsGBFR4EhwQszDN9dQOM63Oh it9eBpZf4qn/hC6gW+Tu =iwQm -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141005141522.30773.2815.report...@jadzia.comodo.priv.at