Package: pppstatus
Version: 0.4.2-10
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch



*** /tmp/tmpkPUR29

In Ubuntu, the attached patch was applied to achieve the following:

this package failed to build from source in Ubuntu Oneiric, with GCC-4.6.  This 
package changes
linking parameters in the Makefile to avoid that problem.  The order of 
libraries parameters 
passed to the linker makes the build fails.

Though it builds ok in Debian, this change is necessary for Ubuntu in order to 
build correctly
on both distributions, and simplifying maintenance of this package by avoiding 
to carry
unnecessary patches between Debian and Ubuntu.

Following is a fragment of the build error:

Excerpt 467 lines into the build log:

pppstatus.c:(.text.startup+0xc56): undefined reference to `mvprintw'
pppstatus.c:(.text.startup+0xc5d): undefined reference to `stdscr'
pppstatus.c:(.text.startup+0xc65): undefined reference to `wrefresh'
pppstatus.c:(.text.startup+0xca7): undefined reference to `mvprintw'
pppstatus.c:(.text.startup+0xce1): undefined reference to `endwin'
pppstatus.c:(.text.startup+0xcf5): undefined reference to `curs_set'
pppstatus.c:(.text.startup+0xd84): undefined reference to `mvprintw'
pppstatus.c:(.text.startup+0xd8b): undefined reference to `stdscr'
pppstatus.c:(.text.startup+0xd93): undefined reference to `wrefresh'
pppstatus.c:(.text.startup+0xde1): undefined reference to `mvprintw'
collect2: ld returned 1 exit status
make[1]: *** [pppstatus] Error 1
make[1]: Leaving directory `/build/buildd/pppstatus-0.4.2'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20110425-1708
FAILED [dpkg-buildpackage died]

The complete bug report and links to complete build log is the following:

https://bugs.launchpad.net/ubuntu/oneiric/+source/pppstatus/+bug/770756

The change is the following:

  * Makefile: Linker parameter order changed, due to failure to build in 
    GCC-4.6/Oneiric (LP: #770756)

If you need any more details regarding this issue, please let me know.

Thanks for considering the patch.

-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 
'natty-proposed'), (500, 'natty')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-8-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
diff -u pppstatus-0.4.2/Makefile pppstatus-0.4.2/Makefile
--- pppstatus-0.4.2/Makefile
+++ pppstatus-0.4.2/Makefile
@@ -17,7 +17,7 @@
 all : pppstatus printdone
 
 pppstatus : pppstatus.o
-	gcc $(CFLAGS) $(LDFLAGS) -o ${BIN} ${SRC}
+	gcc $(CFLAGS) -o ${BIN} ${SRC} ${LDFLAGS}
 
 pppstatus.o : pppstatus.h
 
diff -u pppstatus-0.4.2/debian/changelog pppstatus-0.4.2/debian/changelog

Reply via email to