Package: im-sdk Version: 12.3.91-6.3 Severity: serious Tags: patch Justification: no longer builds from source User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu jaunty ubuntu-patch
im-sdk FTBFS because of missing definition of ucred: if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -DXMLCONFDIR="\"/etc/iiim\"" -DSOCKETDIR="\"/var/run/iiim\"" -DSEGVLOGGER="\"/usr/lib/iiim/iiimf-segv-logger\"" -g -I../include -I../../include/iml -I../../include/iiimp -I. -I../../include -DARCH=\"i486\" -DHAVE_CONFIG_H -DLinux -Wall -D_SVID_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=199506L -Wall -g -pipe -Wl,--as-needed -O2 -MT iwrap.o -MD -MP -MF ".deps/iwrap.Tpo" -c -o iwrap.o iwrap.c; \ then mv -f ".deps/iwrap.Tpo" ".deps/iwrap.Po"; else rm -f ".deps/iwrap.Tpo"; exit 1; fi iwrap.c: In function 'authenticate_with_unix': iwrap.c:187: error: storage size of 'peercred' isn't known iwrap.c:187: warning: unused variable 'peercred' make[3]: *** [iwrap.o] Error 1 make[3]: Leaving directory `/build/buildd/im-sdk-12.3.91/build-tree/iiimf-12.3.91-svn2814/iiimsf/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/build/buildd/im-sdk-12.3.91/build-tree/iiimf-12.3.91-svn2814/iiimsf' make[1]: *** [all] Error 2 This is solved by adding -D_GNU_SOURCE to CFLAGS *** /tmp/tmptmoaOC In Ubuntu, we've applied the attached patch to achieve the following: * debian/rules: add -D_GNU_SOURCE to CFLAGS to define ucred struct and fix a FTBFS (LP: #340336) We thought you might be interested in doing the same. -- System Information: Debian Release: 5.0 APT prefers jaunty-updates APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty') Architecture: amd64 (x86_64) Kernel: Linux 2.6.27-11-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
diff -u im-sdk-12.3.91/debian/rules im-sdk-12.3.91/debian/rules --- im-sdk-12.3.91/debian/rules +++ im-sdk-12.3.91/debian/rules @@ -35,7 +35,7 @@ confflags += --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=\$${prefix}/lib/iiim CFLAGS="$(CFLAGS)" -CFLAGS = -Wall -g -pipe -Wl,--as-needed +CFLAGS = -Wall -g -pipe -Wl,--as-needed -D_GNU_SOURCE ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0