Package: kon2 Version: o.3.9b-20 Severity: normal Tags: upstream patch
utmp.c:85:7: warning: ignoring return value of 'chown', declared with attribute warn_unused_result [-Wunused-result] cc -g -O2 -O2 -Wall -DCONFIG_NAME=\"/etc/kon.cfg\" -I/build/buildd/kon2-0.3.9b/include -O2 -Wall -DCONFIG_NAME=\"/etc/kon.cfg\" -I/build/buildd/kon2-0.3.9b/include -c -o errors.o errors.c cc -g -O2 -O2 -Wall -DCONFIG_NAME=\"/etc/kon.cfg\" -I/build/buildd/kon2-0.3.9b/include -O2 -Wall -DCONFIG_NAME=\"/etc/kon.cfg\" -I/build/buildd/kon2-0.3.9b/include -c -o child.o child.c child.c: In function 'ChildStart': child.c:185:6: warning: missing sentinel in function call [-Wformat] child.c:141:8: warning: unused variable 'shell' [-Wunused-variable] ar rcs /build/buildd/kon2-0.3.9b/lib/libgon.a vt.o sock.o fnld.o vc.o mouse.o term.o utmp.o errors.o child.o gcc -g -O2 -O2 -Wall -DCONFIG_NAME=\"/etc/kon.cfg\" -I/build/buildd/kon2-0.3.9b/include -O2 -Wall -DCONFIG_NAME=\"/etc/kon.cfg\" -I/build/buildd/kon2-0.3.9b/include -lutil -o kon main.o /build/buildd/kon2-0.3.9b/lib/libgon.a /build/buildd/kon2-0.3.9b/lib/libgon.a(term.o): In function `KonStart': /build/buildd/kon2-0.3.9b/src/term.c:420: undefined reference to `openpty' collect2: ld returned 1 exit status make[2]: *** [kon] Error 1 make[2]: Leaving directory `/build/buildd/kon2-0.3.9b/src' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory `/build/buildd/kon2-0.3.9b' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ****************************************************************************** Build finished at 20110823-0129 FAILED [dpkg-buildpackage died] In Ubuntu we applied the following patch diff -u kon2-0.3.9b/debian/changelog kon2-0.3.9b/debian/changelog --- kon2-0.3.9b/debian/changelog +++ kon2-0.3.9b/debian/changelog @@ -1,3 +1,9 @@ +kon2 (0.3.9b-20ubuntu1) oneiric; urgency=low + + * Fix FTBFS with LD --as-needed LP: #770860 + + -- Kyle Williams <kwilli...@cs.uct.ac.za> Sat, 03 Sep 2011 18:23:52 +0200 + kon2 (0.3.9b-20) unstable; urgency=low * cleanup debian/rules diff -u kon2-0.3.9b/tools/Configure.linux kon2-0.3.9b/tools/Configure.linux --- kon2-0.3.9b/tools/Configure.linux +++ kon2-0.3.9b/tools/Configure.linux @@ -69,7 +69,8 @@ else CFLAGS += -O2 -Wall $(OPTS) endif -LD = gcc $(CFLAGS) -lutil +LD = gcc $(CFLAGS) +LIBS += -lutil RM = rm -f INSTALL = install -c -s only in patch2: unchanged: --- kon2-0.3.9b.orig/src/Makefile.linux +++ kon2-0.3.9b/src/Makefile.linux @@ -12,7 +12,7 @@ all: subdirs $(KON) $(KON): main.o lib - $(LD) -o $(KON) main.o $(LIB) + $(LD) -o $(KON) main.o $(LIB) $(LIBS) lib: $(OBJS) $(AR) rcs $(LIB) $(OBJS) -- System Information: Debian Release: squeeze/sid APT prefers natty-updates APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores) Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org