Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144932 - kcron & kgamma both die with error: strstream.h: No such file
Summary: kcron & kgamma both die with error: strstream.h: No such file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-23 21:41 UTC by Hiel Van Campen
Modified: 2006-08-27 07:22 UTC (History)
0 users

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


Attachments
Change <strsteam.h> to <strsteam> (strstream_fix_patch,1.02 KB, patch)
2006-08-26 10:14 UTC, Hiel Van Campen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiel Van Campen 2006-08-23 21:41:07 UTC
For kgamma-3.5.4:
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -Os -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o xf86configpath.lo xf86configpath.cpp
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -Os -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o xvidextwrap.lo xvidextwrap.cpp
xvidextwrap.cpp:34:23: error: strstream.h: No such file or directory
xvidextwrap.cpp: In member function 'int XVidExtWrap::_ScreenCount()':
xvidextwrap.cpp:81: error: 'istrstream' was not declared in this scope
xvidextwrap.cpp:81: error: expected `;' before 'ss'
xvidextwrap.cpp:82: error: 'ss' was not declared in this scope
make[4]: *** [xvidextwrap.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/kgamma-3.5.4/work/kgamma-3.5.4/kgamma/kcmkgamma'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kgamma-3.5.4/work/kgamma-3.5.4/kgamma/kcmkgamma'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kgamma-3.5.4/work/kgamma-3.5.4/kgamma'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kgamma-3.5.4/work/kgamma-3.5.4'
make: *** [all] Error 2
#######################################################

for kcron-3.5.4
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -Os -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o ktapp.o ktapp.cpp
/usr/qt/3/bin/moc ./ktview.h -o ktview.moc
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -Os -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o ktview.o ktview.cpp
ktview.cpp:22:23: error: strstream.h: No such file or directory
ktview.cpp: In member function 'void KTView::pageFooter(KTListItem*, KTPrint&) const':
ktview.cpp:296: error: 'ostrstream' was not declared in this scope
ktview.cpp:296: error: expected `;' before 'oss'
ktview.cpp:299: error: 'oss' was not declared in this scope
ktview.cpp:295: warning: unused variable 'buffer'
make[2]: *** [ktview.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/kcron-3.5.4/work/kcron-3.5.4/kcron'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kcron-3.5.4/work/kcron-3.5.4'
make: *** [all] Error 2

 emerge --info 
Portage 2.1.1_pre5-r3 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17.5 i686)
=================================================================
System uname: 2.6.17.5 i686 AMD Sempron(tm) Processor 2800+
Gentoo Base System version 1.12.4
Last Sync: Thu, 24 Aug 2006 04:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -pipe "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -Os -pipe  "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg confcache distlocks metadata-transfer sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://mirror.datapipe.net/pub/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LINGUAS=""
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/include/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apache2 async avi berkdb bitmap-fonts bzip2 cairo chroot cli cpdflib crypt cups dba dillo dlloader doc dri eds elibc_glibc emboss encode esd examples fastcgi fbdev foomaticdb fpx gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jpeg kde kernel_linux libg++ libwww live lynxkeymap lzw mad mikmod mmx mmxext mono motif mozilla mp3 mpeg mysql ncurses network nptl nptlonly nsplugin ogg opengl openssh oss pam pango pcre pdflib perl php player png ppds pppd python qt3 qt4 quicktime readline real reflection rtc ruby samba sdl session spell spl sse sse2 ssl tcl tcpd tk truetype truetype-fonts type1 type1-fonts udev userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia vim vorbis win32codecs xml xmms xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-24 07:06:14 UTC
Probably your gcc isn't configured correctly or otherwise screwed up. What is really wanted is the sstream header file.

Does sstream exist in `gcc-config -X`?
Comment 2 Hiel Van Campen 2006-08-25 07:47:08 UTC
Thanks for takeing the time. 
 gcc-config -X
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4

and from "locate sstream" There were a  total of 34 hits
/usr/include/wx-2.6/wx/sstream.h
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/bits/sstream.tcc
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/sstream
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/sstream.tcc
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/sstream
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-26 08:09:48 UTC
What's the ouput of `gcc -v` respective `grep -o  includedir=.*/include  config.log  | uniq` in one of those ebuilds workdirs?
Comment 4 Hiel Van Campen 2006-08-26 10:14:41 UTC
Created attachment 95144 [details, diff]
Change <strsteam.h> to <strsteam>

Description says it all
Comment 5 Hiel Van Campen 2006-08-26 10:15:57 UTC
I did this in kcron
 kcron-3.5.4 # grep -o  includedir=.*/include config.log  | uniq
includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include
includedir='${prefix}/include
includedir='/usr/include

and

 gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1)

I was able to get kgamma to build and install after changing strstream.h to strstream in two files. This might just be hiding the prob on my system I'll attach the patch any way.
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-27 06:31:45 UTC
(In reply to comment #4)
> Description says it all

You fixed the symptom. The strstream header is deprecated and sstream should be used. The question is why autoconf does not find sstream.


Please disable confcache and try to build again. Confcache is broken with mixed compiler usage respective updates and therefore hard masked since a while.
Comment 7 Hiel Van Campen 2006-08-27 07:22:27 UTC
emerge -C confcache and emerge kcron and kgamma worked. So it was confcache.
Thanks Hiel