Chris Greenman - 2009-12-27

Hello, I'm having problems compiling under Ubuntu (Karmic 9.10).  I've installed the build essentials, png, and tiff packages but it's dying while trying to compile ppm2bsb

Here's what I'm getting:

    $ make
    Making all in .
    make: Entering directory `/home/greenman/src/libbsb-0.0.7'
    if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libbsb\" -DVERSION=\"0.0.7\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I. -I.    -g -O2 -W -Wall -Werror -MT bsb_io.o -MD -MP -MF ".deps/bsb_io.Tpo" -c -o bsb_io.o bsb_io.c; \
    then mv -f ".deps/bsb_io.Tpo" ".deps/bsb_io.Po"; else rm -f ".deps/bsb_io.Tpo"; exit 1; fi
    rm -f libbsb.a
    ar crv libbsb.a bsb_io.o
    a - bsb_io.o
    ranlib libbsb.a
    if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libbsb\" -DVERSION=\"0.0.7\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I. -I.    -g -O2 -W -Wall -Werror -MT bsb2ppm.o -MD -MP -MF ".deps/bsb2ppm.Tpo" -c -o bsb2ppm.o bsb2ppm.c; \
    then mv -f ".deps/bsb2ppm.Tpo" ".deps/bsb2ppm.Po"; else rm -f ".deps/bsb2ppm.Tpo"; exit 1; fi
    gcc  -g -O2 -W -Wall -Werror   -o bsb2ppm  bsb2ppm.o libbsb.a
    if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libbsb\" -DVERSION=\"0.0.7\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I. -I.    -g -O2 -W -Wall -Werror -MT ppm2bsb.o -MD -MP -MF ".deps/ppm2bsb.Tpo" -c -o ppm2bsb.o ppm2bsb.c; \
    then mv -f ".deps/ppm2bsb.Tpo" ".deps/ppm2bsb.Po"; else rm -f ".deps/ppm2bsb.Tpo"; exit 1; fi
    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: ***  Error 1
    make: Leaving directory `/home/greenman/src/libbsb-0.0.7'
    make: ***  Error 1

Am I missing a dependency or something?

Thanks