Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235003 - sys-libs/db-3.2.9_p2 fails to compile
Summary: sys-libs/db-3.2.9_p2 fails to compile
Status: RESOLVED DUPLICATE of bug 218469
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2008-08-17 11:07 UTC by Nikolay S. Rybaloff
Modified: 2008-08-17 19:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay S. Rybaloff 2008-08-17 11:07:35 UTC
sys-libs/db-3.2.9_p2 fails to compile with the following errors:

c++ -c -I. -I/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../include -D_REENTRANT  -fexceptions -march=core2 -msse4.1 -O2 -pipe -fstack-protector /var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp
In file included from /var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:18:
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../include/db_cxx.h:52:22: error: iostream.h: Нет такого файла или каталога
In file included from /var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:18:
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../include/db_cxx.h:397: ошибка: ‘ostream’ не был декларирован
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../include/db_cxx.h:480: ошибка: ISO C++ запрещает декларации ‘ostream’ без типа
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../include/db_cxx.h:480: ошибка: expected ‘;’ before ‘*’ token
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../include/db_cxx.h:545: ошибка: ‘ostream’ не был декларирован
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../include/db_cxx.h:549: ошибка: ‘ostream’ не был декларирован
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:41: ошибка: expected constructor, destructor, or type conversion before ‘*’ token
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp: In static member function ‘static void DbEnv::_destroy_check(const char*, int)’:
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:51: ошибка: нет декларации ‘ostream’ в этой области видимости
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:51: ошибка: нет декларации ‘out’ в этой области видимости
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:53: ошибка: нет декларации ‘error_stream_’ в этой области видимости
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:55: ошибка: нет декларации ‘cerr’ в этой области видимости
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp: In static member function ‘static void DbEnv::_stream_error_function(const char*, char*)’:
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:284: ошибка: нет декларации ‘error_stream_’ в этой области видимости
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp: At global scope:
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:300: ошибка: переменная или поле ‘set_error_stream’ объявлено void
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:300: ошибка: нет декларации ‘ostream’ в этой области видимости
/var/tmp/portage/sys-libs/db-3.2.9_p2/work/db-3.2.9/dist/../cxx/cxx_app.cpp:300: ошибка: нет декларации ‘stream’ в этой области видимости
make: *** [cxx_app.o] Ошибка 1

in english:
file "iostream.h: No such file or directory
error: ‘ostream’ was not declared
and so on

Adding "using namespace std;" in the include/db_cxx.h at line 54 (right after #include <stdarg.h>) and changing <iostream.h> to <iostream> fixes the problem.

emerge --info:
Portage 2.2_rc8 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64)
System uname: Linux-2.6.26-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7200_@_2.53GHz-with-glibc2.2.5
Timestamp of tree: Sat, 16 Aug 2008 22:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-devel/autoconf:  2.62-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=core2 -msse4.1 -O2 -pipe -fstack-protector"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -msse4.1 -O2 -pipe -fstack-protector"
FEATURES="ccache distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
LINGUAS="ru en"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/webapps-experimental /usr/local/portage/mine"
USE="acl amd64 bash-completion berkdb bzip2 caps cli cracklib crypt ctype dovecot-sasl dri exiscan-acl fam fastcgi fontconfig ftp gd gdbm gpm iconv imap ipv6 isdnlog jpeg lm_sensors logrotate midi mmx mudflap multilib mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl php png pppd python readline reflection samba session snmp spl sse sse2 ssl subversion svg sysfs tcpd threads truetype unicode xml xorg 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_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"

Reproducible: Always

Steps to Reproduce:
1. emerge
2. Wait for error
3. Enjoy
Comment 1 Michal Kurgan (RETIRED) gentoo-dev 2008-08-17 19:09:39 UTC
Please use English locale so our devs wouldn't have problems with understanding the error messages.

It looks like gcc-4.3 porting issue that should be already solved.
Please sync for newer version sys-libs/db-db-3.2.9_p2.

If this is still issue please reopen and attach 'build.log' in English locale.

*** This bug has been marked as a duplicate of bug 218469 ***