Libbsb dies not compile out of the box on Ubuntu due to C warnings in ppm2bsb.c:
cc1: warnings being treated as errors
ppm2bsb.c: In function ‘main’:
ppm2bsb.c:90: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
ppm2bsb.c:91: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
ppm2bsb.c:92: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
make[1]: *** [ppm2bsb.o] Error 1
To reproduce the problem:
- Download libbsb
- Run ./confiugure
- Run make
-> You'll get the error above.
As a quick workaround/hack I introduced a new variable 'rc' and changed the fscanf statements on line 90-92 to 'rc=fscanf'. This should be modified to include some proper error handling.