gcc 4.7+: missing unistd.h includes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Me TV |
Won't Fix
|
Undecided
|
Unassigned | ||
Gentoo Linux |
Fix Released
|
Medium
|
Bug Description
Using gcc 4.7, compilation fails due to missing includes in common/common.cc, server/thread.cc.
See http://
Making all in common
make[2]: Entering directory `/build/
g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/
g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/
common.cc: In function 'void write_string(int, const Glib::ustring&)':
common.cc:106:17: error: '::write' has not been declared
common.cc: In function 'Glib::ustring read_string(int)':
common.cc:125:24: error: '::read' has not been declared
Changed in gentoo: | |
importance: | Unknown → Medium |
Changed in gentoo: | |
status: | Unknown → Fix Released |
Changed in me-tv: | |
status: | New → Won't Fix |
3.2.0-4-amd64 #1 SMP Debian 3.2.32-1 x86_64 GNU/Linux
gcc 4:4.7.2-1
me-tv-1.4.0.10
$aclocal ....... .....: gcc brother/ Develop/ src/me- tv-1.4. 0.10' src/me- tv-1.4. 0.10/common' include/ glibmm- 2.4 -I/usr/ lib/x86_ 64-linux- gnu/glibmm- 2.4/include -I/usr/ include/ sigc++- 2.0 -I/usr/ lib/x86_ 64-linux- gnu/sigc+ +-2.0/include -I/usr/ include/ glib-2. 0 -I/usr/ lib/x86_ 64-linux- gnu/glib- 2.0/include -I/usr/ include/ giomm-2. 4 -I/usr/ lib/x86_ 64-linux- gnu/giomm- 2.4/include -I/usr/ include/ libxml2 -I/usr/ include/ libxml+ +-2.6 -I/usr/ lib/libxml+ +-2.6/include -g -O2 -MT common.o -MD -MP -MF .deps/common.Tpo -c -o common.o common.cc src/me- tv-1.4. 0.10/common' src/me- tv-1.4. 0.10'
$autoheader
$ automake
configure.ac:6: required file `./install-sh' not found
configure.ac:6: `automake --add-missing' can install `install-sh'
configure.ac:6: required file `./missing' not found
configure.ac:6: `automake --add-missing' can install `missing'
client/Makefile.am: required file `./depcomp' not found
client/Makefile.am: `automake --add-missing' can install `depcomp'
$automake --add-missing
$autoconf
$./configure
Configure summary:
Source code location .......: .
Compiler .......
Compiler flags .............: -g -O2
Enable compile warnings ....: minimum
Enable more warnings .......: no
Extra Compiler Warnings ....: -g -O2 -Wall -Wno-unused
Debug support ..............: no
Installing into prefix .....: /usr/local
Type make to build Me TV 1.4.0.10
$ make
make all-recursive
make[1]: Entering directory `/home/
Making all in common
make[2]: Entering directory `/build/
g++ -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/
common.cc: In function ‘void write_string(int, const Glib::ustring&)’:
common.cc:106:23: error: ‘::write’ has not been declared
common.cc: In function ‘Glib::ustring read_string(int)’:
common.cc:125:27: error: ‘::read’ has not been declared
make[2]: *** [common.o] Error 1
make[2]: Leaving directory `/build/
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/
make: *** [all] Error 2