graphics/libfpx fails to build

Nathan Whitehorn nwhitehorn at freebsd.org
Wed Sep 11 23:23:31 UTC 2013


On 09/11/13 18:02, mi at aldan.algebra.com wrote:
> On 02.09.2013 02:13, Kenta Suzumoto wrote:
>> Still doesn't build with Clang for me.
> The failure is triggered by the -Wself-assign warning:
>> /wrkdirs/usr/ports/graphics/libfpx/work/libfpx-1.3.1-2/oless/h/fat.hxx:368:63: 
>> error: explicitly assigning a variable of type 'SCODE' (aka 'int') to 
>> itself [-Werror,-Wself-assign]
>>     do if (((HRESULT)(sc = (FindMaxSect(&_sectMax)))<0)) { sc = sc; 
>> goto Err;} while(0);
>> ~~ ^ ~~
> which puzzles me, because it is not explicitly turned on on 10.x. I 
> could not reproduce it on 9.x either -- even with clang-3.3.
>
> I just committed yet another update of the port -- adding a patch, 
> whose author assured me, the port builds with the change. He has not 
> experienced the self-assigning warning/error you are seeing. Could it 
> be, you -current is out of date? It is such a moving target, it is 
> hard to keep track :-(
>
> Thanks,
>
>    -mi

These updates fixed the build for me, anyway -- I was having the same 
issues. Thanks!
-Nathan


More information about the freebsd-ports mailing list