[Pkg-shotwell-maint] Bug#667255: libraw: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:10:25 UTC 2012


Package: libraw
Version: 0.13.8-1
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7

The package fails to build in a test rebuild on at least amd64 with
gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
severity of this report may be raised before the wheezy release.

samples/dcraw_emu.cpp:392:39: error: 'close' was not declared in this scope

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/libraw_0.13.8-1_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

[...]
/bin/bash ./libtool --tag=CXX   --mode=link g++  -g -O2 -fopenmp   -o bin/4channels samples/bin_4channels-4channels.o lib/libraw.la -lm -lstdc++
libtool: link: g++ -g -O2 -fopenmp -o bin/.libs/4channels samples/bin_4channels-4channels.o  lib/.libs/libraw.so -lm -lstdc++
g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.13.8\" -DPACKAGE_STRING=\"LibRaw\ 0.13.8\" -DPACKAGE_BUGREPORT=\"info at libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DSTDC_HEADERS=1 -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 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.  -DLIBRAW_NOTHREADS -w   -g -O2 -fopenmp -c -o samples/bin_simple_dcraw-simple_dcraw.o `test -f 'samples/simple_dcraw.cpp' || echo './'`samples/simple_dcraw.cpp
/bin/bash ./libtool --tag=CXX   --mode=link g++  -g -O2 -fopenmp   -o bin/simple_dcraw samples/bin_simple_dcraw-simple_dcraw.o lib/libraw.la -lm -lstdc++
libtool: link: g++ -g -O2 -fopenmp -o bin/.libs/simple_dcraw samples/bin_simple_dcraw-simple_dcraw.o  lib/.libs/libraw.so -lm -lstdc++
g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.13.8\" -DPACKAGE_STRING=\"LibRaw\ 0.13.8\" -DPACKAGE_BUGREPORT=\"info at libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DSTDC_HEADERS=1 -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 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.  -DLIBRAW_NOTHREADS -w   -g -O2 -fopenmp -c -o samples/bin_mem_image-mem_image.o `test -f 'samples/mem_image.cpp' || echo './'`samples/mem_image.cpp
/bin/bash ./libtool --tag=CXX   --mode=link g++  -g -O2 -fopenmp   -o bin/mem_image samples/bin_mem_image-mem_image.o lib/libraw.la -lm -lstdc++
libtool: link: g++ -g -O2 -fopenmp -o bin/.libs/mem_image samples/bin_mem_image-mem_image.o  lib/.libs/libraw.so -lm -lstdc++
gcc -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.13.8\" -DPACKAGE_STRING=\"LibRaw\ 0.13.8\" -DPACKAGE_BUGREPORT=\"info at libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DSTDC_HEADERS=1 -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 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.  -DLIBRAW_NOTHREADS -w   -g -O2 -fopenmp -c -o samples/bin_dcraw_half-dcraw_half.o `test -f 'samples/dcraw_half.c' || echo './'`samples/dcraw_half.c
/bin/bash ./libtool --tag=CC   --mode=link gcc  -g -O2 -fopenmp   -o bin/dcraw_half samples/bin_dcraw_half-dcraw_half.o lib/libraw.la -lm -lstdc++
libtool: link: gcc -g -O2 -fopenmp -o bin/.libs/dcraw_half samples/bin_dcraw_half-dcraw_half.o  lib/.libs/libraw.so -lm -lstdc++
gcc -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.13.8\" -DPACKAGE_STRING=\"LibRaw\ 0.13.8\" -DPACKAGE_BUGREPORT=\"info at libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DSTDC_HEADERS=1 -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 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -pthread -w -g -O2 -fopenmp -c -o samples/bin_half_mt-half_mt.o `test -f 'samples/half_mt.c' || echo './'`samples/half_mt.c
/bin/bash ./libtool --tag=CC   --mode=link gcc -pthread -w -g -O2 -fopenmp   -o bin/half_mt samples/bin_half_mt-half_mt.o lib/libraw_r.la -lm -lstdc++
libtool: link: gcc -pthread -w -g -O2 -fopenmp -o bin/.libs/half_mt samples/bin_half_mt-half_mt.o  lib/.libs/libraw_r.so -lm -lstdc++ -pthread
g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.13.8\" -DPACKAGE_STRING=\"LibRaw\ 0.13.8\" -DPACKAGE_BUGREPORT=\"info at libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DSTDC_HEADERS=1 -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 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.  -DLIBRAW_NOTHREADS -w   -g -O2 -fopenmp -c -o samples/bin_dcraw_emu-dcraw_emu.o `test -f 'samples/dcraw_emu.cpp' || echo './'`samples/dcraw_emu.cpp
samples/dcraw_emu.cpp: In function 'int main(int, char**)':
samples/dcraw_emu.cpp:392:39: error: 'close' was not declared in this scope
samples/dcraw_emu.cpp:395:44: error: 'getpagesize' was not declared in this scope
samples/dcraw_emu.cpp:401:39: error: 'close' was not declared in this scope
samples/dcraw_emu.cpp:404:31: error: 'close' was not declared in this scope
samples/dcraw_emu.cpp:426:39: error: 'close' was not declared in this scope
samples/dcraw_emu.cpp:432:17: error: 'close' was not declared in this scope
samples/dcraw_emu.cpp:436:54: error: 'read' was not declared in this scope
samples/dcraw_emu.cpp:439:17: error: 'close' was not declared in this scope
samples/dcraw_emu.cpp:443:16: error: 'close' was not declared in this scope
make[1]: *** [samples/bin_dcraw_emu-dcraw_emu.o] Error 1
make[1]: Leaving directory `/«PKGBUILDDIR»'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the Pkg-shotwell-maint mailing list