[Pkg-octave-devel] Bug#667305: octave-sockets: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:11:18 UTC 2012


Package: octave-sockets
Version: 1.0.7-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.

sockets.cc:311:2: error: '::close' has not been declared

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/octave-sockets_1.0.7-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.

[...]
dh_installdirs -poctave-sockets 
Checking the Octave version... ok
mkdir -p /«PKGBUILDDIR»/debian/octave-sockets/usr/share/octave/packages	\
		 /«PKGBUILDDIR»/debian/octave-sockets/usr/lib/x86_64-linux-gnu/octave/packages
[ -e PKG_ADD ] && mv PKG_ADD PKG_ADD.bak
make: [install-pkg] Error 1 (ignored)
/usr/bin/octave --no-history --silent --no-init-file --eval				\
		 "pkg ('prefix', [pwd(),'/debian/octave-sockets/usr/share/octave/packages'],		\
		      [pwd(),'/debian/octave-sockets/usr/lib/x86_64-linux-gnu/octave/packages']);			\
		 pkg ('local_list', [pwd(),'/local-list']);		\
		 pkg ('global_list', [pwd(),'/global-list']);	\
		 if (exist ('PKG_ADD.bak') == 2),			\
		     movefile ('PKG_ADD.bak', 'PKG_ADD');		\
		 endif;							\
		 pkg -verbose -nodeps install ."
warning: X11 DISPLAY environment variable not set
mkdir (/tmp/oct-LfYHSL)
Copying directory (., /tmp/oct-LfYHSL)
sockets.cc: In member function 'void octave_socket::remove_sock_fd()':
sockets.cc:311:2: error: '::close' has not been declared
make[1]: *** [sockets.oct] Error 1
'make' returned the following error: make[1]: Entering directory `/tmp/oct-LfYHSL/src'
mkoctfile -DMAJORVERSION=3  -DMINORVERSION=6 -DMICROVERSION=1 -s sockets.cc
make[1]: Leaving directory `/tmp/oct-LfYHSL/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.1/m/pkg/pkg.m near line 1391, column 9
error: called from:
error:   /usr/share/octave/3.6.1/m/pkg/pkg.m at line 834, column 5
error:   /usr/share/octave/3.6.1/m/pkg/pkg.m at line 383, column 9
make: *** [install-pkg] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2





More information about the Pkg-octave-devel mailing list