Bug#813101: nordlicht: FTBFS on various architectures

James Cowgill james410 at cowgill.org.uk
Mon Feb 1 22:26:23 UTC 2016


Hi,

On Mon, 2016-02-01 at 22:05 +0100, Peter Spiess-Knafl wrote:
> I just took a look at the failing build logs. It seems that the linking
> step gets killed after 150 minutes. I can reproduce it on a Raspbian I
> have locally running.
> 
> Do you have any idea how to fix this?

It's not the link step that fails in the build logs, it's the help2man
call. help2man runs 'nordlicht --help' which never terminates.

From main.c:
>     char c;
> 
>     // The next line leaks 3 bytes, blame popt!
>     while ((c = poptGetNextOpt(popt)) >= 0) { }

But 'char' is unsigned on arm so the while condition is always true. If
nordlicht was compiled with -Wall, gcc would tell you about this:

> ../main.c: In function 'main':
> ../main.c:112:39: warning: comparison is always true due to limited
> range of data type [-Wtype-limits]
>      while ((c = poptGetNextOpt(popt)) >= 0) { }
>                                        ^
> ../main.c:114:11: warning: comparison is always false due to limited
> range of data type [-Wtype-limits]
>      if (c < -1) {
>            ^

James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20160201/54bb2d1b/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list