Salut !!
alors j'ai lançé l'installation de gcc (apparement ok)
Puis j'ai voulu faire le make ... et là ...
Qu'est ce c'est ces tests qui sont deprecated ???
Je vais pas m'en sortir 🙁
alors j'ai lançé l'installation de gcc (apparement ok)
[root@localhost ~]# yum install gcc-c++ gcc
Loaded plugins: refresh-packagekit
fedora | 2.8 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
Package gcc-4.3.2-7.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.i386 0:4.3.2-7 set to be updated
--> Processing Dependency: libstdc++-devel = 4.3.2-7 for package: gcc-c++-4.3.2-7.i386
--> Running transaction check
---> Package libstdc++-devel.i386 0:4.3.2-7 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================
Installing:
gcc-c++ i386 4.3.2-7 fedora 3.9 M
Installing for dependencies:
libstdc++-devel i386 4.3.2-7 fedora 3.8 M
Transaction Summary
==============================================================================================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 7.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): gcc-c++-4.3.2-7.i386.rpm | 3.9 MB 00:10
(2/2): libstdc++-devel-4.3.2-7.i386.rpm | 3.8 MB 00:09
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 369 kB/s | 7.7 MB 00:21
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libstdc++-devel-4.3.2-7.i386 1/2
Installing : gcc-c++-4.3.2-7.i386 2/2
Installed:
gcc-c++.i386 0:4.3.2-7
Dependency Installed:
libstdc++-devel.i386 0:4.3.2-7
Complete!
Puis j'ai telechargé le fameux opt et fais ceci (untar, configure ..)[root@localhost html]# tar xvf opt-3.19.tar.gz
opt-3.19/
opt-3.19/Makefile.in
opt-3.19/README
opt-3.19/AUTHORS
opt-3.19/COPYING
opt-3.19/ChangeLog
opt-3.19/INSTALL
opt-3.19/Makefile.am
opt-3.19/NEWS
opt-3.19/aclocal.m4
opt-3.19/configure
opt-3.19/configure.in
opt-3.19/install-sh
opt-3.19/mdate-sh
opt-3.19/missing
opt-3.19/mkinstalldirs
opt-3.19/opt.spec.in
opt-3.19/stamp-vti
opt-3.19/texinfo.tex
opt-3.19/version.texi
opt-3.19/opt.texi
opt-3.19/opt.spec
opt-3.19/COPYING.gpl
opt-3.19/src/
opt-3.19/src/Makefile.in
opt-3.19/src/Makefile.am
opt-3.19/src/opt_util.c
opt-3.19/src/opt_reg.c
opt-3.19/src/opt_regt.c
opt-3.19/src/opt_menu.c
opt-3.19/src/opt_proc.c
opt-3.19/src/ag.c
opt-3.19/src/opt_regcc.cc
opt-3.19/src/opt_num.c
opt-3.19/src/opt.h
opt-3.19/src/opt_sf.h
opt-3.19/src/ag.h
opt-3.19/src/opt_p.h
opt-3.19/src/makeopth.pl
opt-3.19/test/
opt-3.19/test/Makefile.am
opt-3.19/test/Makefile.in
opt-3.19/test/t_num.c
opt-3.19/test/testopt.c
opt-3.19/test/birthday.c
opt-3.19/test/hooktest.c
opt-3.19/test/iloop.c
opt-3.19/test/testmain.c
opt-3.19/test/testtypes.c
opt-3.19/test/tstring.c
opt-3.19/test/tnull.c
opt-3.19/test/manyopts.c
opt-3.19/test/tarray.c
opt-3.19/test/testcc.cc
opt-3.19/test/testlong.c
opt-3.19/test/checkopt
opt-3.19/test/checkoptcc
opt-3.19/ext/
opt-3.19/ext/Makefile.in
opt-3.19/ext/Makefile.am
opt-3.19/ext/Opt.pm
opt-3.19/ext/tkopt
opt-3.19/opt.info
opt-3.19/opt.info-1
opt-3.19/opt.info-2
[root@localhost html]# ls
cisortho-0.9.0 ICeE ICeE_save ICeE.tar ICeE_version_1.5 maqgene opt-3.19 opt-3.19.tar.gz
[root@localhost html]# cd opt-3.19
[root@localhost opt-3.19]# ls
aclocal.m4 configure COPYING.gpl install-sh mdate-sh NEWS opt.info-2 opt.texi stamp-vti version.texi
AUTHORS configure.in ext Makefile.am missing opt.info opt.spec README test
ChangeLog COPYING INSTALL Makefile.in mkinstalldirs opt.info-1 opt.spec.in src texinfo.tex
[root@localhost opt-3.19]# ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... ranlib
checking for strdup... yes
checking for snprintf... yes
checking for longjmp... yes
checking how to run the C preprocessor... gcc -E
checking for signal.h... yes
checking return type of signal handlers... void
updating cache ./config.cache
creating ./config.status
creating test/Makefile
creating src/Makefile
creating ext/Makefile
creating Makefile
creating opt.spec
Jusque là ... ça a l'air ok !Puis j'ai voulu faire le make ... et là ...
[root@localhost opt-3.19]# make
Making all in src
make[1]: Entering directory `/var/www/html/opt-3.19/src'
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -g -O2 -c opt_util.c
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -g -O2 -c opt_reg.c
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -g -O2 -c opt_regt.c
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -g -O2 -c opt_menu.c
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -g -O2 -c opt_proc.c
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -g -O2 -c ag.c
g++ -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -g -O2 -c opt_regcc.cc
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -g -O2 -c opt_num.c
rm -f libopt.a
ar cru libopt.a opt_util.o opt_reg.o opt_regt.o opt_menu.o opt_proc.o ag.o opt_regcc.o opt_num.o
ranlib libopt.a
make[1]: Leaving directory `/var/www/html/opt-3.19/src'
Making all in test
make[1]: Entering directory `/var/www/html/opt-3.19/test'
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c t_num.c
gcc -g -O2 -o t_num t_num.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c testopt.c
gcc -g -O2 -o testopt testopt.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c birthday.c
gcc -g -O2 -o birthday birthday.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c hooktest.c
gcc -g -O2 -o hooktest hooktest.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c iloop.c
gcc -g -O2 -o iloop iloop.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c testmain.c
gcc -g -O2 -o testmain testmain.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c testtypes.c
gcc -g -O2 -o testtypes testtypes.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c tstring.c
gcc -g -O2 -o tstring tstring.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c tnull.c
gcc -g -O2 -o tnull tnull.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c manyopts.c
gcc -g -O2 -o manyopts manyopts.o ../src/libopt.a
gcc -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c tarray.c
gcc -g -O2 -o tarray tarray.o ../src/libopt.a
g++ -DPACKAGE=\"opt\" -DVERSION=\"3.19\" -DHAVE_STRDUP=1 -DHAVE_SNPRINTF=1 -DHAVE_LONGJMP=1 -DHAVE_SIGNAL=1 -DRETSIGTYPE=void -I. -I. -I../src -g -O2 -c testcc.cc
testcc.cc:3:22: error: iostream.h: No such file or directory
testcc.cc: In function 'int go(int, char**)':
testcc.cc:17: error: 'cout' was not declared in this scope
testcc.cc:19: error: 'endl' was not declared in this scope
testcc.cc:23: error: 'cout' was not declared in this scope
testcc.cc:23: error: 'endl' was not declared in this scope
testcc.cc: In function 'int main(int, char**)':
testcc.cc:70: warning: deprecated conversion from string constant to 'char*'
testcc.cc:73: warning: deprecated conversion from string constant to 'char*'
testcc.cc:73: warning: deprecated conversion from string constant to 'char*'
testcc.cc:74: warning: deprecated conversion from string constant to 'char*'
testcc.cc:76: warning: deprecated conversion from string constant to 'char*'
testcc.cc:77: warning: deprecated conversion from string constant to 'char*'
testcc.cc:80: warning: deprecated conversion from string constant to 'char*'
testcc.cc:82: warning: deprecated conversion from string constant to 'char*'
testcc.cc:82: warning: deprecated conversion from string constant to 'char*'
testcc.cc:84: warning: deprecated conversion from string constant to 'char*'
testcc.cc:84: warning: deprecated conversion from string constant to 'char*'
testcc.cc:86: warning: deprecated conversion from string constant to 'char*'
testcc.cc:87: warning: deprecated conversion from string constant to 'char*'
make[1]: *** [testcc.o] Error 1
make[1]: Leaving directory `/var/www/html/opt-3.19/test'
make: *** [all-recursive] Error 1
:-?Qu'est ce c'est ces tests qui sont deprecated ???
Je vais pas m'en sortir 🙁