[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#667250: libofa: ftbfs with GCC-4.7



Package: libofa
Version: 0.9.3-4
Severity: important
Tags: sid wheezy
User: debian-gcc@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.

uselame.cpp:54:22: error: 'fork' 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/libofa_0.9.3-4_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.

[...]
rm -fr .libs/libofa.lax/libaflib.a
mkdir .libs/libofa.lax/libaflib.a
(cd .libs/libofa.lax/libaflib.a && ar x /«PKGBUILDDIR»/lib/AFLIB/.libs/libaflib.a)
ar cru .libs/libofa.a  fftlibw3_op.o fft_op.o frametracker_op.o mainprint.o signal_op.o trackdata_op.o trackframe_op.o tracklist_op.o .libs/libofa.lax/libaflib.a/aflibConverter.o 
ranlib .libs/libofa.a
rm -fr .libs/libofa.lax
creating libofa.la
(cd .libs && rm -f libofa.la && ln -s ../libofa.la libofa.la)
make[4]: Leaving directory `/«PKGBUILDDIR»/lib'
make[3]: Leaving directory `/«PKGBUILDDIR»/lib'
Making all in examples
make[3]: Entering directory `/«PKGBUILDDIR»/examples'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include  -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wall -g -c -o example.o example.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include  -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wall -g -c -o protocol.o protocol.cpp
protocol.cpp: In function 'bool parse_xml(const string&, TrackInformation*, std::string&)':
protocol.cpp:173:56: warning: format '%d' expects argument of type 'int', but argument 3 has type 'XML_Size {aka long unsigned int}' [-Wformat]
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include  -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wall -g -c -o uselame.o uselame.cpp
uselame.cpp: In function 'AudioData* loadDataUsingLAME(char*)':
uselame.cpp:24:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
uselame.cpp:54:22: error: 'fork' was not declared in this scope
uselame.cpp:55:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
uselame.cpp:56:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
uselame.cpp:58:34: error: 'execv' was not declared in this scope
uselame.cpp:68:16: error: 'unlink' was not declared in this scope
make[3]: *** [uselame.o] Error 1
make[3]: Leaving directory `/«PKGBUILDDIR»/examples'
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



Reply to: