wie installier ich gcc-2.96 oder 3.3 auf suse 10.1

Bash, Shell, PHP, Python, Perl, CGI
rey
Posts: 8
Joined: 2007-09-14 21:55

wie installier ich gcc-2.96 oder 3.3 auf suse 10.1

Post by rey »

hi,
weis nicht wo ich das sonst posten könnte
habe folgendes problemich habe den gcc 4.2.1 compiler brauche aber den 2.96er oder 3.3
wie kann ich den am besten installieren?ich habe suse 10.1
habe folgendes gefunden
ftp://ftp.gwdg.de/pub/misc/gcc/old-releases/gcc-2
aber das kann ich leider nicht als installationsquelle hinzufügen.

warum brauche ich einen niedrigeren?

deshalb
Matchup.o
make[1]: Leaving directory `/root/repasm/BWTools'
make[1]: Entering directory `/root/repasm/StormLib'
cc -fpic -c pklib/crc32.c -o pklib/crc32.o
cc -fpic -c pklib/explode.c -o pklib/explode.o
cc -fpic -c pklib/implode.c -o pklib/implode.o
g++ -fpic -c wave/wave.cpp -o wave/wave.o
g++ -fpic -c huffman/huffman.cpp -o huffman/huffman.o
huffman/huffman.cpp:1454:3: warning: no newline at end of file
g++ -fpic -c StormPortLinux.cpp -o StormPortLinux.o
StormPortLinux.cpp: In function 'char* ErrString(int)':
StormPortLinux.cpp:44: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:46: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:48: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:50: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:52: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:54: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:56: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:58: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:60: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:62: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:64: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:66: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:68: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp: In function 'bool CloseHandle(void*)':
StormPortLinux.cpp:88: error: cast from 'void*' to 'int' loses precision
StormPortLinux.cpp: In function 'DWORD GetFileSize(void*, DWORD*)':
StormPortLinux.cpp:97: error: cast from 'void*' to 'int' loses precision
StormPortLinux.cpp: In function 'DWORD SetFilePointer(void*, LONG, LONG*, DWORD)':
StormPortLinux.cpp:104: error: cast from 'void*' to 'int' loses precision
StormPortLinux.cpp: In function 'bool SetEndOfFile(void*)':
StormPortLinux.cpp:109: error: cast from 'void*' to 'int' loses precision
StormPortLinux.cpp:109: error: cast from 'void*' to 'int' loses precision
StormPortLinux.cpp: In function 'bool ReadFile(void*, void*, DWORD, DWORD*, void*)':
StormPortLinux.cpp:115: error: cast from 'void*' to 'int' loses precision
StormPortLinux.cpp: In function 'bool WriteFile(void*, const void*, DWORD, DWORD*, void*)':
StormPortLinux.cpp:126: error: cast from 'void*' to 'int' loses precision
make[1]: *** [StormPortLinux.o] Error 1
make[1]: Leaving directory `/root/repasm/StormLib'
make: *** [repasm.so] Error 2
User avatar
Joe User
Project Manager
Project Manager
Posts: 11173
Joined: 2003-02-27 01:00
Location: Hamburg

Re: wie installier ich gcc-2.96 oder 3.3 auf suse 10.1

Post by Joe User »

ftp://ftp.gwdg.de/pub/linux/suse/ftp.su ... cc/gcc_old
ftp://ftp.gwdg.de/pub/linux/suse/ftp.su ... ME.gcc_old
Ob die Compiler auch unter 10.x noch ordnungsgemäss funktionieren, weiss ich allerdings nicht...
rey
Posts: 8
Joined: 2007-09-14 21:55

Re: wie installier ich gcc-2.96 oder 3.3 auf suse 10.1

Post by rey »

hab eben versucht dies als installationsquelle hinzuzufügen geht leider nicht

und mit
rpm -i auch nicht
# rpm -i ftp://ftp.gwdg.de/pub/linux/suse/ftp.su ... cc_old.rpm
error: Failed dependencies:
compat is needed by gcc_old-2.95.3-92.i586
außerdem ist dies leider 2.95 und nicht 2.96 :/
User avatar
Joe User
Project Manager
Project Manager
Posts: 11173
Joined: 2003-02-27 01:00
Location: Hamburg

Re: wie installier ich gcc-2.96 oder 3.3 auf suse 10.1

Post by Joe User »

Dann musst Du die entsprechende Version selbst nach /opt installieren:

Code: Select all

wget ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-3.3.6/gcc-3.3.6.tar.bz2
tar xjf gcc-3.3.6.tar.bz2
mkdir gcc-build && cd gcc-build
../gcc-3.3.6/configure --prefix=/opt/gcc336 
    --enable-shared --enable-threads=posix 
    --enable-__cxa_atexit --enable-clocale=gnu 
    --enable-languages=c,c++
make && make install
rey
Posts: 8
Joined: 2007-09-14 21:55

Re: wie installier ich gcc-2.96 oder 3.3 auf suse 10.1

Post by rey »

ich habe es jetzt über rpm packete gemacht

aber es kommt wenn ich das wofür ich den niedern compiler benötge folgendes

Code: Select all

....

repasm.cpp:855: error: redefinition of `int add_property_long'
repasm.cpp:845: error: `int add_property_long' previously defined here
repasm.cpp:855: error: initializer list being treated as compound expression
repasm.cpp:856: error: `return_value' was not declared in this scope
repasm.cpp:856: error: ISO C++ forbids declaration of `addString' with no type
repasm.cpp:856: error: redefinition of `int addString'
repasm.cpp:850: error: `int addString' previously defined here
repasm.cpp:856: error: initializer list being treated as compound expression
repasm.cpp:857: error: syntax error before `}' token
repasm.cpp:860: error: `php_bw_get_actions' was not declared in this scope
repasm.cpp:861: error: ISO C++ forbids declaration of `ZEND_FUNCTION' with no
   type
repasm.cpp:861: error: redefinition of `int ZEND_FUNCTION'
repasm.cpp:819: error: `int ZEND_FUNCTION' previously defined here
repasm.cpp:861: error: syntax error before `{' token
repasm.cpp:864: error: `int actionType' used prior to declaration
repasm.cpp:867: error: syntax error before `if'
repasm.cpp:870: error: `return_value' was not declared in this scope
repasm.cpp:870: error: ISO C++ forbids declaration of `object_init' with no
   type
repasm.cpp:870: error: redefinition of `int object_init'
repasm.cpp:840: error: `int object_init' previously defined here
repasm.cpp:872: error: `return_value' was not declared in this scope
repasm.cpp:872: error: ISO C++ forbids declaration of `getActions' with no type
repasm.cpp:872: error: `int getActions' redeclared as different kind of symbol
repasm.cpp:496: error: previous declaration of `void getActions(...)'
repasm.cpp:872: error: initializer list being treated as compound expression
repasm.cpp:874: error: syntax error before `}' token
repasm.cpp:876: error: `php_bw_extract_map' was not declared in this scope
repasm.cpp:877: error: ISO C++ forbids declaration of `ZEND_FUNCTION' with no
   type
repasm.cpp:877: error: redefinition of `int ZEND_FUNCTION'
repasm.cpp:861: error: `int ZEND_FUNCTION' previously defined here
repasm.cpp:877: error: syntax error before `{' token
repasm.cpp:879: error: redefinition of `int destLen'
repasm.cpp:821: error: `int destLen' previously declared here
repasm.cpp:881: error: syntax error before `if'
repasm.cpp:884: error: `return_value' was not declared in this scope
repasm.cpp:884: error: ISO C++ forbids declaration of `object_init' with no
   type
repasm.cpp:884: error: redefinition of `int object_init'
repasm.cpp:870: error: `int object_init' previously defined here
repasm.cpp:886: error: `int res' used prior to declaration
repasm.cpp:886: error: `repPath' was not declared in this scope
repasm.cpp:886: error: `destPath' was not declared in this scope
repasm.cpp:887: error: `return_value' was not declared in this scope
repasm.cpp:887: error: ISO C++ forbids declaration of `addErrorInfo' with no
   type
repasm.cpp:887: error: `int addErrorInfo' redeclared as different kind of
   symbol
repasm.cpp:315: error: previous declaration of `void addErrorInfo(...)'
repasm.cpp:887: error: initializer list being treated as compound expression
repasm.cpp:888: error: syntax error before `}' token
make[1]: *** [repasm.o] Error 1
make[1]: Leaving directory `/root/repasm/repasm'
make: *** [repasm.so] Error 2
es sind noch ein paar zeilen mehr habe die habe ich mit ... abgekürzt