gcc 4.7+: missing unistd.h includes
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Me TV |
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
| Peter (f-petere) wrote : | #1 |
|
|
#2 |
Portage 2.2.0_alpha149 (default/
=======
System uname: Linux-3.
Timestamp of tree: Sun, 30 Dec 2012 00:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash: 4.2_p39-r1
dev-java/
dev-lang/python: 2.7.3-r3, 3.2.3-r2
dev-util/cmake: 2.8.10.2
dev-util/pkgconfig: 0.27.1
sys-apps/
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.6
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.12.6
sys-devel/binutils: 2.23.1
sys-devel/gcc: 4.7.2
sys-devel/
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/
sys-libs/glibc: 2.17
Repositories: gentoo tbamd64
ACCEPT_
ACCEPT_LICENSE="*"
CBUILD=
CFLAGS="-O2 -pipe -ggdb -march=native -ftracer -frecord-
CHOST="
CONFIG_
CONFIG_
CXXFLAGS="-O2 -pipe -ggdb -march=native -ftracer -frecord-
DISTDIR=
FCFLAGS="-O2 -pipe -ggdb -march=native -frecord-
FEATURES=
FFLAGS="-O2 -pipe -ggdb -march=native -frecord-
GENTOO_MIRRORS="http://
LANG="en_US.utf8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j24"
PKGDIR=
PORTAGE_
PORTAGE_
PORTAGE_
PORTDIR=
PORTDIR_
SYNC="rsync:
USE="3dnow 3dnowex acl amd64 berkdb bzip2 cli cracklib crypt cups cxx doc dri emacs ffmpeg fortran gnutls gpm iconv icu intl introspection ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pax_kernel pcre pdf plasma pppd qt3support readline semantic-desktop session snmp sse sse2 sse3 sse4 ssl ssse3 tcmalloc tcpd udev unicode vhosts zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_
|
|
#3 |
Found an upstream bug:
https:/
| Changed in gentoo: | |
| importance: | Unknown → Medium |
|
|
#4 |
Fixed.
http://
http://
http://
| 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