Package: tudu Version: 0.8-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch
Objects that contain definitions need to appear after the objects that reference those definitions on the linker line. Otherwise, when --as-needed is used by the linker, the linking would fail. Please refer to 'ld' manpage (at the "-l" option). *** /tmp/tmpnjss5J In Ubuntu, we've applied the attached patch to achieve the following: * configure, src/Makefile.acr: -lncursesw should be listed after the C/object files using it. We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers maverick-updates APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-proposed'), (500, 'maverick-backports'), (500, 'maverick') Architecture: i386 (i686) Kernel: Linux 2.6.35-25-generic (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- tudu-0.8.orig/configure +++ tudu-0.8/configure @@ -350,7 +350,7 @@ case "$undefined_variable" in 0|"") echo ; echo "ERROR: There is no curses installed!" >&2 ; echo ; exit 1 ;; esac; fi LDFLAGS="${LDFLAGS} $LD_CURSES" printf "checking for WIDEC_CURSES... " -echo "#define _XOPEN_SOURCE_EXTENDED" > test.c ; echo "#include<$CURSES_INCLUDE>" >> test.c ; echo "main(){ addwstr(L\"\"); }" >> test.c ; eval \$${COMPILER} ${CXXFLAGS} ${LDFLAGS} test.c >/dev/null 2>&1 ; if [ $? = 0 ]; then WIDEC_CURSES=1; else WIDEC_CURSES=0; fi ; rm test.c +echo "#define _XOPEN_SOURCE_EXTENDED" > test.c ; echo "#include<$CURSES_INCLUDE>" >> test.c ; echo "main(){ addwstr(L\"\"); }" >> test.c ; eval \$${COMPILER} ${CXXFLAGS} test.c ${LDFLAGS} >/dev/null 2>&1 ; if [ $? = 0 ]; then WIDEC_CURSES=1; else WIDEC_CURSES=0; fi ; rm test.c if [ "$WIDEC_CURSES" = 1 ]; then echo yes else only in patch2: unchanged: --- tudu-0.8.orig/src/Makefile.acr +++ tudu-0.8/src/Makefile.acr @@ -17,7 +17,7 @@ all: $(PKGNAME) $(PKGNAME): $(OBJS) - $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) + $(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) .cc.o: $(CXX) $(CXXFLAGS) -c $<