Partimage-0.7.2 can not be compiled under redhat 9.0.

Everything about the installation and compilation

Moderator: feffer

Post Reply
wang_z_g
Posts: 2
Joined: Thu Mar 04, 2004 6:53 am

Partimage-0.7.2 can not be compiled under redhat 9.0.

Post by wang_z_g » Thu Mar 04, 2004 8:25 am

I download Partimage-0.7.2 and try to complile it under redhat 9.0. I installed packages it need, and configure pass . But when I run make , it complains that my c++ library code errors.
g++ --version: g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
error message:

In file included from /usr/include/c++/3.2.2/string:57,
from /usr/include/c++/3.2.2/bits/localefwd.h:49,
from /usr/include/c++/3.2.2/ios:48,
from /usr/include/c++/3.2.2/ostream:45,
from /usr/include/c++/3.2.2/iostream:45,
from /usr/include/c++/3.2.2/backward/iostream.h:32,
from ../../../src/shared/network/net.h:31,
from ../../../src/shared/network/netclient.h:27,
from interface_net.h:22,
from gui.h:29,
from gui.cpp:29:
/usr/include/c++/3.2.2/bits/basic_string.tcc: In member function
`_Alloc::size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind(const
_CharT*, _Alloc::size_type, _Alloc::size_type) const':
/usr/include/c++/3.2.2/bits/basic_string.tcc:712: parse error before `(' tokenIn file included from /usr/include/c++/3.2.2/bits/locale_facets.tcc:43,
from /usr/include/c++/3.2.2/locale:46,
from /usr/include/c++/3.2.2/bits/ostream.tcc:37,
from /usr/include/c++/3.2.2/ostream:275,
from /usr/include/c++/3.2.2/iostream:45,
from /usr/include/c++/3.2.2/backward/iostream.h:32,
from ../../../src/shared/network/net.h:31,
from ../../../src/shared/network/netclient.h:27,
from interface_net.h:22,
from gui.h:29,
from gui.cpp:29:
/usr/include/c++/3.2.2/limits:942:22: macro "min" requires 2 arguments, but only 1 given
In file included from /usr/include/c++/3.2.2/bits/locale_facets.tcc:43,
from /usr/include/c++/3.2.2/locale:46,
from /usr/include/c++/3.2.2/bits/ostream.tcc:37,
from /usr/include/c++/3.2.2/ostream:275,
from /usr/include/c++/3.2.2/iostream:45,
from /usr/include/c++/3.2.2/backward/iostream.h:32,
from ../../../src/shared/network/net.h:31,
from ../../../src/shared/network/netclient.h:27,
from interface_net.h:22,
from gui.h:29,
from gui.cpp:29:
/usr/include/c++/3.2.2/limits: At global scope:
/usr/include/c++/3.2.2/limits:942: parse error before `throw'
/usr/include/c++/3.2.2/limits:943:22: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/3.2.2/limits:943: ISO C++ forbids defining types within return
type
/usr/include/c++/3.2.2/limits:943: syntax error before `throw'
/usr/include/c++/3.2.2/limits:943: syntax error before `throw'
/usr/include/c++/3.2.2/limits:944: syntax error before `(' token
/usr/include/c++/3.2.2/limits:945: syntax error before `(' token
/usr/include/c++/3.2.2/limits:946: syntax error before `(' token
/usr/include/c++/3.2.2/limits:947: syntax error before `(' token
/usr/include/c++/3.2.2/limits:948: syntax error before `(' token
/usr/include/c++/3.2.2/limits:949: syntax error before `(' token
/usr/include/c++/3.2.2/limits:956: `numeric_limits' is not a template
/usr/include/c++/3.2.2/limits:957: confused by earlier errors, bailing out
make[4]: *** [gui.o] Error 1
make[4]: Leaving directory `/wzg/partimage-cvs-0.7.2/src/gui-client/shared'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/wzg/partimage-cvs-0.7.2/src/gui-client'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/wzg/partimage-cvs-0.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/wzg/partimage-cvs-0.7.2'
make: *** [all] Error 2

I want to know what system environment you are using to compile it ?
Please give some help. Or show me some clues to port partimage compiling to gcc-3.2.2. Thank you .

Hugh

Same error with gcc 3.3.3 under Gentoo

Post by Hugh » Thu Apr 22, 2004 7:51 pm

I have exactly the same errors here under Gentoo, compiling other packages works fine... (has to, under Gentoo;)

Any ideas would be welcome - I'm desperate to try out the new GUI...:)
Also wondering if BeFS-support is refined in 0.7.2?

Lastly, isn't partimage actively developed anymore? I read the changelog and 0.7.2 was out last July/August, 2003 - or is the date wrong?

My environment:

Code: Select all

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.6-rc1)
=================================================================
System uname: 2.6.6-rc1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
Excpert of the interesting errors:

Code: Select all

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/bits/basic_string.tcc:1052: error: parse
   error before `(' token
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/bits/locale_facets
.tcc:43,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/locale:47,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/bits/ostream.tcc:3
7,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/ostream:535,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/iostream:45,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/backward/iostream.
h:32,
                 from ../../../src/shared/network/net.h:31,
                 from ../../../src/shared/network/netclient.h:27,
                 from interface_net.h:22,
                 from gui.h:29,
                 from gui.cpp:29:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3/limits:205:22: macro "min" requires 2 ar
guments, but only 1 given

DW

Post by DW » Thu Apr 22, 2004 10:05 pm

I *think* I read somewhere about problems when compiling partimage with gcc 3.x (or was that only partimage 0.6.x ?)
If you have an older version of gcc (say 2.96) try that.

CC=gcc-2.96
CPP=cpp-2.96
CXX=g++-2.96
./configure

stephan_c

Post by stephan_c » Tue Jul 27, 2004 1:25 pm

Had the same problem with my red hat 9 box :-(

harry

Partimage-0.7.2 can not be compiled (partly fixed for gcc 3)

Post by harry » Wed Sep 08, 2004 10:11 pm

Same problem her under Knoppix gcc 3.3.

Partly fixed:
#include <iostream.h> in both gui.cpp and interface_newt.cpp
as first include file

No I have only ONE error left:

>>>> gui.cpp:77: error: cannot convert `__gnu_cxx::__normal_iterator<SPartInfo*,
std::vector<SPartInfo, std::allocator<SPartInfo> > >' to `SPartInfo*' in return

from gui.cpp
SPartInfo *CGui::getPartInfo(int nDisk, int nPart)
{
vector<SPartInfo>::iterator it2;
vector<SDrives>::iterator it = m_Drives->begin();
it2 = (it+nDisk)->piInfo.begin();
------> return (it2+nPart);
#warning fix that function !!!
// return 0;

}

if i write simply return 0 the make and make install goes o.k. and i can start piguicnewt. I am a c++ newbie and i dont understand in the moment to fix that error

Has someone a idea to fix that last bug ?

btw there are lots of deprecated warnings. somenone should replace lots of header files from <string.h> to <string> and so on :?

Post Reply