#171 link faild in Ubuntu 8.04

closed-invalid
None
5
2009-03-23
2008-10-15
Anonymous
No

make[3]: Entering directory `/home/jerry/Desktop/oprofile-0.9.4/libutil++'
source='op_bfd.cpp' object='op_bfd.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I.. -I ../libutil -I ../libop -I ../libpp -I../include -c -o op_bfd.o op_bfd.cpp
In file included from /usr/include/c++/4.2/backward/iostream.h:31,
from ../include/sstream:31,
from op_bfd.cpp:26:
/usr/include/c++/4.2/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 <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from op_bfd.cpp:26:
../include/sstream:37: error: using typedef-name ‘std::stringbuf’ after ‘class’
/usr/include/c++/4.2/iosfwd:140: error: ‘std::stringbuf’ has a previous declaration here
../include/sstream:230: error: using typedef-name ‘std::istringstream’ after ‘class’
/usr/include/c++/4.2/iosfwd:141: error: ‘std::istringstream’ has a previous declaration here
../include/sstream:267: error: using typedef-name ‘std::ostringstream’ after ‘class’
/usr/include/c++/4.2/iosfwd:142: error: ‘std::ostringstream’ has a previous declaration here
../include/sstream:304: error: using typedef-name ‘std::stringstream’ after ‘class’
/usr/include/c++/4.2/iosfwd:143: error: ‘std::stringstream’ has a previous declaration here
make[3]: *** [op_bfd.o] Error 1
make[3]: Leaving directory `/home/jerry/Desktop/oprofile-0.9.4/libutil++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jerry/Desktop/oprofile-0.9.4/libutil++'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jerry/Desktop/oprofile-0.9.4'
make: *** [all] Error 2

Discussion

    • assigned_to: nobody --> maynardj
     
  • These errors look to me like your toolchain environment is messed up. The errors are all for C++ header files, not OProfile files. Try writing a little C++ program that includes <sstream> and see if it compiles.

     
    • status: open --> closed-invalid
     
  • Since there's been no response concerning this bug, I'm assuming we can close it now. If this is not the case, please contact us.