Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30024 - xosview 1.8 compile fails with gcc-3.x
Summary: xosview 1.8 compile fails with gcc-3.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-30 14:34 UTC by Brian O'Kelley
Modified: 2003-10-28 06:27 UTC (History)
2 users (show)

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


Attachments
Patch that replaces <strstream.h> with <sstream> (bug30024.patch,2.51 KB, patch)
2003-10-02 10:25 UTC, Joshua Kinard
Details | Diff
proposed xosview-1.8.0-gcc3.3 patch (xosview-1.8.0-gcc3.3.patch,4.11 KB, patch)
2003-10-10 17:31 UTC, Brandy Westcott (RETIRED)
Details | Diff
revised xosview-1.8.0-gcc3.3 patch (xosview-1.8.0-gcc3.3.patch,19.92 KB, patch)
2003-10-11 01:03 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian O'Kelley 2003-09-30 14:34:46 UTC
>>> emerge (1 of 1) app-misc/xosview-1.8.0 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/xosview-1.8.0.tar.gz
--17:20:41--  http://gentoo.oregonstate.edu/distfiles/xosview-1.8.0.tar.gz
           => `/usr/portage/distfiles/xosview-1.8.0.tar.gz'
Resolving gentoo.oregonstate.edu... done.
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 170,323 [application/x-tar]
 
100%[====================================>] 170,323      118.55K/s    ETA 00:00
 
17:20:43 (118.55 KB/s) - `/usr/portage/distfiles/xosview-1.8.0.tar.gz' saved
[170323/170323]
 
>>> md5 src_uri ;-) xosview-1.8.0.tar.gz
>>> Unpacking source...
>>> Unpacking xosview-1.8.0.tar.gz to /var/tmp/portage/xosview-1.8.0/work
>>> Source unpacked.
 * You are running 2.6.0-test5
 * Using 2.5/2.6 kernel compatibility patch
 * Applying xosview-kernel-2.5+.diff...                                   [ ok
]creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for c++... g++
checking whether the C++ compiler (g++ -O3 -march=pentium4 -funroll-loops
-fprefetch-loop-arrays -pipe ) works... yes
checking whether the C++ compiler (g++ -O3 -march=pentium4 -funroll-loops
-fprefetch-loop-arrays -pipe ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ accepts -g... yes
checking whether g++ supports bool types... yes
checking whether g++ supports long long types... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for a BSD compatible install... /bin/install -c
checking for gawk... gawk
checking for ranlib... ranlib
disabled automatic dependencies by default
checking for snprintf... yes
checking for X11/xpm.h... yes
checking for XpmCreateImageFromData in -lXpm... yes
enabled  Linux system calls by default
disabled the Linux 2.6 memstat module by default
checking for usleep... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating linux/Makefile
creating Makefile.config
creating Makefile.GNU.autodep
creating Xdefaults
creating linux/memstat/Makefile
cd ./linux && make
make[1]: Entering directory
`/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/linux'
g++ -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -O3
-march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -O4 -pipe
-I/usr/X11R6/include -DXOSVIEW_VERSION=\"1.8.0\"
-I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0
-I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/linux  -DHAVE_BOOL=1
-DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DHAVE_XPM=1 -DGNULIBC=1
-DUSESYSCALLS=1 -DHAVE_USLEEP=1  -O3 -march=pentium4 -funroll-loops
-fprefetch-loop-arrays -pipe -Wall -O4 -pipe -I/usr/X11R6/include
-DXOSVIEW_VERSION=\"1.8.0\" -I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0
-I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/linux  -DHAVE_BOOL=1
-DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DHAVE_XPM=1 -DGNULIBC=1
-DUSESYSCALLS=1 -DHAVE_USLEEP=1  -I.. -c cpumeter.cc -o cpumeter.o
g++ -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -O3
-march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -O4 -pipe
-I/usr/X11R6/include -DXOSVIEW_VERSION=\"1.8.0\"
-I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0
-I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/linux  -DHAVE_BOOL=1
-DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DHAVE_XPM=1 -DGNULIBC=1
-DUSESYSCALLS=1 -DHAVE_USLEEP=1  -O3 -march=pentium4 -funroll-loops
-fprefetch-loop-arrays -pipe -Wall -O4 -pipe -I/usr/X11R6/include
-DXOSVIEW_VERSION=\"1.8.0\" -I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0
-I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/linux  -DHAVE_BOOL=1
-DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DHAVE_XPM=1 -DGNULIBC=1
-DUSESYSCALLS=1 -DHAVE_USLEEP=1  -I.. -c memmeter.cc -o memmeter.o
In file included from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/iostream.h:31,
                 from /var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/xwin.h:12,
                 from
/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/xosview.h:14,
                 from /var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/meter.h:15,
                 from
/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/fieldmetergraph.h:17,
                 from cpumeter.h:12,
                 from cpumeter.cc:9:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
In file included from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/iostream.h:31,
                 from /var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/xwin.h:12,
                 from
/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/xosview.h:14,
                 from /var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/meter.h:15,
                 from
/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/fieldmetergraph.h:17,
                 from memmeter.h:12,
                 from memmeter.cc:8:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
cpumeter.cc:14:23: strstream.h: No such file or directory
cpumeter.cc: In static member function `static const char*
   CPUMeter::cpuStr(int)':
cpumeter.cc:129: error: `ostrstream' undeclared (first use this function)
cpumeter.cc:129: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
cpumeter.cc:129: error: parse error before `(' token
cpumeter.cc:131: error: `str' undeclared (first use this function)
memmeter.cc:11:23: strstream.h: No such file or directory
memmeter.cc: In member function `MemMeter::LineInfo*
   MemMeter::findLines(MemMeter::LineInfo*, int, const char*)':
memmeter.cc:97: error: `istrstream' undeclared (first use this function)
memmeter.cc:97: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
memmeter.cc:97: error: parse error before `(' token
memmeter.cc:104: error: `line' undeclared (first use this function)
memmeter.cc: In member function `void MemMeter::getmemstat(const char*,
   MemMeter::LineInfo*, int)':
memmeter.cc:146: error: parse error before `(' token
make[1]: *** [memmeter.o] Error 1
g++ -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -O3
-march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wall -O4 -pipe
-I/usr/X11R6/include -DXOSVIEW_VERSION=\"1.8.0\"
-I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0
-I/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/linux  -DHAVE_BOOL=1
-DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DHAVE_XPM=1 -DGNULIBC=1
-DUSESYSCALLS=1 -DHAVE_USLEEP=1  -c llist.cc -o llist.o
make[1]: *** Waiting for unfinished jobs....
In file included from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/iostream.h:31,
                 from llist.cc:9:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
make[1]: *** [cpumeter.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/xosview-1.8.0/work/xosview-1.8.0/linux'
make: *** [meterlib] Error 2
make: *** Waiting for unfinished jobs....
 
!!! ERROR: app-misc/xosview-1.8.0 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge xosview
2.
3.




Portage 2.0.49-r5 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.6.0-test5)
=================================================================
System uname: 2.6.0-test5 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt encode foomaticdb gif jpeg kde libg++ libwww mad
mikmod mmx motif mpeg ncurses oggvorbis pdflib png qt quicktime sdl spell svga
truetype xml2 xv zlib gdbm slang readline java gpm tcpd ssl python esd imlib
opengl apache2 -arts berkdb -cups curl doc dvd fbcon X gtk gnome -alsa imap
innodb ipv6 junit lirc mozilla mysql -nls pam perl samba tcltk xmms"
Comment 1 Joshua Kinard gentoo-dev 2003-10-02 10:25:22 UTC
Created attachment 18607 [details, diff]
Patch that replaces <strstream.h> with <sstream>

Does the above patch resolve the compile errors?  If it does, does gcc still
output complaints about deprecated C++ includes?
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-10-10 17:31:49 UTC
Created attachment 19078 [details, diff]
proposed xosview-1.8.0-gcc3.3 patch

We also need to include 'using namespace std' if we are to change
strstream.h to strstream, otherwise errors of the following type are
displayed:


cpumeter.cc: In static member function `static const char*
   CPUMeter::cpuStr(int)':
cpumeter.cc:129: error: `ostrstream' undeclared (first use this function)
cpumeter.cc:129: error: (Each undeclared identifier is reported only once
for
   each function it appears in.)
cpumeter.cc:129: error: parse error before `(' token
cpumeter.cc:131: error: `str' undeclared (first use this function)
make[1]: *** [cpumeter.o] Error 1


This patch will allow xosview to compile but there are still the many
warnings about deprecated headers.
Comment 3 Brandy Westcott (RETIRED) gentoo-dev 2003-10-11 01:03:55 UTC
Created attachment 19086 [details, diff]
revised xosview-1.8.0-gcc3.3 patch

This patch allows xosview to compile without all those annoying 'deprecated
c++
header' warnings.
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-10-28 06:27:35 UTC
added independed. Closing