[Pkg-ime-devel] Bug#667385: sunpinyin: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:12:43 UTC 2012


Package: sunpinyin
Version: 2.0.3-5
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.

src/lexicon/genPYT.cpp:117:50: error: 'getopt' 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/sunpinyin_2.0.3-5_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.

[...]
g++ -o src/ime-core/imi_view_classic.os -c -O2 -g -pipe -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/lib/sunpinyin/data"' -fPIC -I. -Isrc -Isrc/pinyin -Isrc/ime-core -Isrc/lexicon -Isrc/slm -Isrc/slm/tslmendian -Isrc/slm/slmprune -Isrc/slm/slmbuild -Isrc/slm/thread -Isrc/slm/slmseg -Isrc/slm/getWordFreq -Isrc/slm/slminfo -Isrc/slm/tslmpack -Isrc/slm/tslminfo -Isrc/slm/tools -Isrc/slm/mmseg -Isrc/slm/ids2ngram src/ime-core/imi_view_classic.cpp
g++ -o src/ime-core/imi_winHandler.os -c -O2 -g -pipe -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/lib/sunpinyin/data"' -fPIC -I. -Isrc -Isrc/pinyin -Isrc/ime-core -Isrc/lexicon -Isrc/slm -Isrc/slm/tslmendian -Isrc/slm/slmprune -Isrc/slm/slmbuild -Isrc/slm/thread -Isrc/slm/slmseg -Isrc/slm/getWordFreq -Isrc/slm/slminfo -Isrc/slm/tslmpack -Isrc/slm/tslminfo -Isrc/slm/tools -Isrc/slm/mmseg -Isrc/slm/ids2ngram src/ime-core/imi_winHandler.cpp
g++ -o src/ime-core/ic_history.os -c -O2 -g -pipe -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/lib/sunpinyin/data"' -fPIC -I. -Isrc -Isrc/pinyin -Isrc/ime-core -Isrc/lexicon -Isrc/slm -Isrc/slm/tslmendian -Isrc/slm/slmprune -Isrc/slm/slmbuild -Isrc/slm/thread -Isrc/slm/slmseg -Isrc/slm/getWordFreq -Isrc/slm/slminfo -Isrc/slm/tslmpack -Isrc/slm/tslminfo -Isrc/slm/tools -Isrc/slm/mmseg -Isrc/slm/ids2ngram src/ime-core/ic_history.cpp
src/ime-core/ic_history.cpp: In member function 'bool CBigramHistory::loadFromFile(const char*)':
src/ime-core/ic_history.cpp:186:36: error: 'read' was not declared in this scope
src/ime-core/ic_history.cpp:190:14: error: 'close' was not declared in this scope
scons: *** [src/ime-core/ic_history.os] Error 1
scons: building terminated because of errors.
make: [install-stamp] Error 2 (ignored)
for p in genpyt idngram_merge slminfo slmseg tslminfo getWordFreq ids2ngram mmseg slmbuild slmprune slmthread tslmendian tslmpack; do install -D -m 0755 build/$p /«PKGBUILDDIR»/debian/tmp/usr/bin/$p; done
install: cannot stat `build/genpyt': No such file or directory
install: cannot stat `build/idngram_merge': No such file or directory
install: cannot stat `build/slminfo': No such file or directory
install: cannot stat `build/slmseg': No such file or directory
install: cannot stat `build/tslminfo': No such file or directory
install: cannot stat `build/getWordFreq': No such file or directory
install: cannot stat `build/ids2ngram': No such file or directory
install: cannot stat `build/mmseg': No such file or directory
install: cannot stat `build/slmbuild': No such file or directory
install: cannot stat `build/slmprune': No such file or directory
install: cannot stat `build/slmthread': No such file or directory
install: cannot stat `build/tslmendian': No such file or directory
install: cannot stat `build/tslmpack': No such file or directory
make: [install-stamp] Error 1 (ignored)
mkdir -p /«PKGBUILDDIR»/debian/tmp/usr/share/sunpinyin/
cp -r python /«PKGBUILDDIR»/debian/tmp/usr/share/sunpinyin/
dh_install --sourcedir=debian/tmp --fail-missing
dh_install: libsunpinyin-dev missing files (usr/include/*), aborting
make: *** [install-stamp] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2





More information about the Pkg-ime-devel mailing list