[OBORONA-SPAM] Re: [OBORONA-SPAM] Re: a problem withcompiling kernel

Kris Kennaway kris at obsecurity.org
Wed May 11 17:14:27 PDT 2005


On Thu, May 12, 2005 at 01:22:07AM +0200, Idar Tollefsen wrote:
> Kris Kennaway wrote:
> >On Wed, May 11, 2005 at 11:25:15AM +0200, Idar Tollefsen wrote:
> >
> >>Kris Kennaway wrote:
> >>
> >>>>>-boundary=2 -ffreestanding -Werror  ../../../net/if_gif.c
> >>>>
> >>>>..and -Werror is in effect:
> >>>>"-Werror
> >>>>Treat warnings as errors; abort compilation after any warning."
> >>>>
> >>>>As I said, try setting
> >>>>NO_WERROR=      yes
> >>>>in make.conf.
> >>>
> >>>That's the brainless and probably wrong approach :) More intelligent
> >>>is to wonder why he's seeing this warning when no-one else is: see my
> >>>previous response.
> >>
> >>Agreed :)
> >>
> >>However, I seem to recall having had the exact same problem somewhere in 
> >>the gif code on a 4.x version (some time ago), where simply disabling 
> >>-Werror was the solution. And yes, I did have INET support in there ;)
> >
> >
> >-Werror is not enabled on 4.x, so it must have again been something else.
> 
> Yes and no. It was 4.x, but not the gif code. It was OpenSSL.
> And, as a matter of fact, it was you who closed it:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=54684
> 
> I hadn't changed any settings prior to that, and it was that
> particular problem that made me dig up NO_WERROR.

Right, that fell under my other category of "you did something to the
source yourself to break it", namely: -Wstrict-prototypes is not
enabled on that code by default, so when you turned it on and found
that it didn't compile, you should not have been surprised :-)

Kris 


More information about the freebsd-questions mailing list