Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7399 - nload-0.4.0 src_compile() fails with GCC 3.2
Summary: nload-0.4.0 src_compile() fails with GCC 3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-03 00:45 UTC by Lisa Seelye (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lisa Seelye (RETIRED) gentoo-dev 2002-09-03 00:45:10 UTC
Background: I've installed the Gentoo 1.4 .bz2 from stage 1. This is not an updated GCC 3.2 
installation.

==============================================================
lisa 
root # emerge nload
Calculating dependencies ...done!
>>> emerge net-analyzer/nload-0.4.0 
to /
>>> md5 ;-) nload-0.4.0.tar.gz
>>> Unpacking source...
>>> Unpacking nload-
0.4.0.tar.gz
>>> Source unpacked.
creating cache ./config.cache
checking host system 
type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build 
system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -
c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... 
yes
checking for working aclocal... found
checking for working autoconf... 
found
checking for working automake... found
checking for working autoheader... 
found
checking for working makeinfo... found
checking for c++... c++
checking whether 
the C++ compiler (c++ -march=i686 -O3 -pipe ) works... yes
checking whether the C++ compiler (c++ -
march=i686 -O3 -pipe ) is a cross-compiler... no
checking whether we are using GNU C++... 
yes
checking whether c++ accepts -g... yes
checking for gcc... gcc
checking whether the C 
compiler (gcc -march=i686 -O3 -pipe ) works... yes
checking whether the C compiler (gcc -
march=i686 -O3 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... 
yes
checking whether gcc accepts -g... yes
checking for initscr in -lncurses... 
yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... 
yes
checking for limits.h... yes
checking for sys/time.h... yes
checking for working 
const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be 
included... yes
checking for gettimeofday... yes
updating cache 
./config.cache
creating ./config.status
creating Makefile
creating 
docs/Makefile
creating docs/nload.1
creating nload.spec
creating 
src/Makefile
creating config.h
make  all-recursive
make[1]: Entering directory 
`/var/tmp/portage/nload-0.4.0/work/nload-0.4.0'
Making all in docs
make[2]: Entering 
directory `/var/tmp/portage/nload-0.4.0/work/nload-0.4.0/docs'
make[2]: Nothing to be 
done for `all'.
make[2]: Leaving directory `/var/tmp/portage/nload-0.4.0/work/nload-
0.4.0/docs'
Making all in src
make[2]: Entering directory `/var/tmp/portage/nload-
0.4.0/work/nload-0.4.0/src'
c++ -DHAVE_CONFIG_H -I. -I. -I..     -march=i686 -O3 -pipe -Wall -c 
dev.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I..     -march=i686 -O3 -pipe -Wall -c graph.cpp
In file included 
from /usr/include/g++-v32/backward/iostream.h:31,
                 from dev.h:21,
                 from 
dev.cpp:18:
/usr/include/g++-v32/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-depr
ecated.
In file included from 
/usr/include/g++-v32/backward/iostream.h:31,
                 from graph.h:21,
                 from 
graph.cpp:18:
/usr/include/g++-v32/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-depr
ecated.
In file 
included from dev.h:25,
                 from dev.cpp:18:
graph.h:46: 'list' is used as a type, but is not 
defined as a type.
make[2]: *** [dev.o] Error 1
make[2]: *** Waiting for unfinished 
jobs....
In file included from graph.cpp:18:
graph.h:46: 'list' is used as a type, but is not 
defined as a type.
graph.cpp: In member function `void 
Graph::setNumOfBars(int)':
graph.cpp:37: `m_values' undeclared (first use this 
function)
graph.cpp:37: (Each undeclared identifier is reported only once for each
   
function it appears in.)
graph.cpp: In member function `void Graph::print(int, 
int)':
graph.cpp:85: `list' undeclared (first use this function)
graph.cpp:85: parse 
error before `>' token
graph.cpp:85: `r' undeclared (first use this function)
make[2]: *** 
[graph.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/nload-0.4.0/work/nload-
0.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/nload-0.4.0/work/nload-0.4.0'
make: *** [all-recursive-am] Error 
2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 7, 
Exitcode 2
!!! compile failed

====
lisa root # gcc -v
Reading specs from /usr/lib/gcc-
lib/i686-pc-linux-gnu/3.2/specs
Configured with: /var/tmp/portage/gcc-3.2-r1/work/gcc-
3.2/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --ena
ble-shared --
host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-
languages=c,c++,ada,
f77,objc --enable-threads=posix --enable-long-long --disable-checking --
enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexi
t --enable-version-specific-
runtime-libs --with-gxx-include-dir=/usr/include/g++-v32 --with-local-prefix=/usr/local --enable-
shared --ena
ble-nls --without-included-gettext
Thread model: posix
gcc version 3.2
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2002-09-03 00:50:11 UTC
Sorry for the goofy formatting. A better version is 
at:
http://thedoh.dyndns.org/linux/gentoo/bugs/7399/

Thanks.
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-03 03:36:05 UTC
thanks for the bug report!

I bumped the version to 0.5.0 and fixed it for gcc3.2. let me know if you
encounter any other problems.

Matt