Hi Cyril, thank you for you for your report.
* Cyril Brulebois <k...@debian.org> [2011-01-02 23:25] wrote: > Source: pimd > Version: 2.1.5-2 > Severity: serious > Justification: FTBFS > > Hi, > > your package no longer builds on kfreebsd-*: > | CC kern.o > | cc1: warnings being treated as errors > | kern.c: In function 'k_del_vif': > | kern.c:341: error: unused parameter 'v' > | make[1]: *** [kern.o] Error 1 > > (Yay for -Werror.) Is there any real reason for forcing -Werror during the package build? I don't know if you had time to check the sources. The error is caused by the fact, that MRT_DEL_VIF API is different in linux and in BSD (Linux needs pointer to struct uvif). So the implementation in pimd: - always passes pointer to that structure to k_del_vif() - if on Linux, it is passed to kernel - if on BSD, it is not used So I we stick with -Werror, than I see two solutions: a) wrap calls to k_del_vif() with additional logic which will change the prototype / will decide to or not to pass the scructure b) fake use of 'v' (which is the structure) in k_del_vif() Both options seems to be a bit of 'hack'. I've included Joachim (upstream) to this discussion to have his point of view. Thank you, Antonin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org