Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

problème de compilation d'application

21 réponses
Avatar
Pascal
Linux, c'est bien mais pour ce qui est de l'installation des programmes,
quelle galère! C'est pas très original comme reflexion je sais bien mais
grrr...;)
Voici mon souci, je veux installer le programme suivant : scid-3.6.1 après
téléchargement et décompression comme il se doit.
1° ./configure : miracle! Tout se passe nickel chrome!j'obtiens ceci :
"configure: Makefile configuration program for Scid

Renaming "Makefile" to "Makefile.bak"
Tcl/Tk version: 8.3
Your operating system is: Linux 2.6.7-10.0.aur.9smp
Location of "tcl.h": /usr/include
Location of "tk.h": /usr/include
Location of Tcl 8.3 library: /usr/lib
Location of Tk 8.3 library: /usr/lib
Location of X11 library: /usr/X11R6/lib
Checking if your system already has zlib installed: yes.
The Makefile configured for your system was written.
Now just type "make" to compile Scid."
Bon, et bien puisque c'est comme ça, allons y franco :
2°make et la j'obtiens :
"root@localhost scid-3.6.1]# make
rm -f ./scid
cat tcl/start.tcl tcl/bitmaps.tcl tcl/language.tcl tcl/utils.tcl
tcl/utils/date.
tcl tcl/utils/font.tcl tcl/utils/graph.tcl tcl/utils/history.tcl
tcl/utils/pane.
tcl tcl/utils/sound.tcl tcl/utils/string.tcl tcl/utils/tooltip.tcl
tcl/utils/val
idate.tcl tcl/utils/win.tcl tcl/misc/misc.tcl tcl/htext.tcl
tcl/contrib/combobox
.tcl tcl/file.tcl tcl/file/finder.tcl tcl/file/bookmark.tcl
tcl/file/recent.tcl
tcl/file/epd.tcl tcl/file/spellchk.tcl tcl/file/maint.tcl tcl/edit.tcl
tcl/game.
tcl tcl/game/browser.tcl tcl/windows.tcl tcl/windows/gamelist.tcl
tcl/windows/pg
n.tcl tcl/windows/comment.tcl tcl/windows/eco.tcl tcl/windows/stats.tcl
tcl/wind
ows/tree.tcl tcl/windows/crosstab.tcl tcl/windows/pfinder.tcl
tcl/windows/tourne
y.tcl tcl/windows/switcher.tcl tcl/search/search.tcl tcl/search/board.tcl
tcl/se
arch/header.tcl tcl/search/material.tcl tcl/contrib/ezsmtp/ezsmtp.tcl
tcl/tools/
email.tcl tcl/tools/import.tcl tcl/tools/optable.tcl tcl/tools/preport.tcl
tcl/t
ools/pinfo.tcl tcl/tools/analysis.tcl tcl/tools/wbdetect.tcl
tcl/tools/reper.tcl
tcl/tools/graphs.tcl tcl/tools/tablebase.tcl tcl/tools/ptracker.tcl
tcl/help/he
lp.tcl tcl/help/tips.tcl tcl/menus.tcl tcl/board.tcl tcl/move.tcl
tcl/main.tcl t
cl/lang/english.tcl tcl/lang/deutsch.tcl tcl/lang/francais.tcl
tcl/lang/italian.
tcl tcl/lang/nederlan.tcl tcl/lang/spanish.tcl tcl/lang/portbr.tcl
tcl/lang/swed
ish.tcl tcl/lang/norsk.tcl tcl/lang/polish.tcl tcl/lang/czech.tcl
tcl/lang/hunga
ry.tcl tcl/lang/serbian.tcl tcl/end.tcl > ./scid
chmod +x scid
cp scripts/sc_addmove.tcl ./sc_addmove
chmod +x sc_addmove
cp scripts/sc_epgn.tcl ./sc_epgn
chmod +x sc_epgn
cp scripts/sc_spell.tcl ./sc_spell
chmod +x sc_spell
cp scripts/sc_eco.tcl ./sc_eco
chmod +x sc_eco
cp scripts/sc_import.tcl ./sc_import
chmod +x sc_import
cp scripts/sc_remote.tk ./sc_remote
chmod +x sc_remote
cp scripts/sc_tree.tcl ./sc_tree
chmod +x sc_tree
cp scripts/scidpgn.tcl ./scidpgn
chmod +x scidpgn
cp scripts/pgnfix.py ./pgnfix
chmod +x pgnfix
cp scripts/spliteco.tcl ./spliteco
chmod +x spliteco
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/pgnscid.o -c
src/pgnscid.cpp
In file included from src/game.h:24,
from src/pgnscid.cpp:20:
src/textbuf.h: Dans member function « void
TextBuffer::ClearTranslation(char)
»:
src/textbuf.h:70: attention : array subscript has type `char'
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/misc.o -c src/misc.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/index.o -c src/index.cpp
In file included from src/game.h:24,
from src/index.cpp:20:
src/textbuf.h: Dans member function « void
TextBuffer::ClearTranslation(char)
»:
src/textbuf.h:70: attention : array subscript has type `char'
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/date.o -c src/date.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/namebase.o -c
src/namebase.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/position.o -c
src/position.cpp
src/position.cpp: Dans member function « errorT
Position::ReadFromLongStr(const
char*) »:
src/position.cpp:2587: attention : array subscript has type `char'
src/position.cpp:2587: attention : array subscript has type `char'
src/position.cpp:2588: attention : array subscript has type `char'
src/position.cpp:2588: attention : array subscript has type `char'
src/position.cpp:2589: attention : array subscript has type `char'
src/position.cpp:2589: attention : array subscript has type `char'
src/position.cpp:2590: attention : array subscript has type `char'
src/position.cpp:2590: attention : array subscript has type `char'
src/position.cpp:2591: attention : array subscript has type `char'
src/position.cpp:2591: attention : array subscript has type `char'
src/position.cpp:2592: attention : array subscript has type `char'
src/position.cpp:2592: attention : array subscript has type `char'
src/position.cpp: Dans member function « errorT Position::ReadFromFEN(const
char*) »:
src/position.cpp:2800: attention : array subscript has type `char'
src/position.cpp:2800: attention : array subscript has type `char'
src/position.cpp:2801: attention : array subscript has type `char'
src/position.cpp:2801: attention : array subscript has type `char'
src/position.cpp:2802: attention : array subscript has type `char'
src/position.cpp:2802: attention : array subscript has type `char'
src/position.cpp:2803: attention : array subscript has type `char'
src/position.cpp:2803: attention : array subscript has type `char'
src/position.cpp:2804: attention : array subscript has type `char'
src/position.cpp:2804: attention : array subscript has type `char'
src/position.cpp:2805: attention : array subscript has type `char'
src/position.cpp:2805: attention : array subscript has type `char'
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/game.o -c src/game.cpp
In file included from src/game.h:24,
from src/game.cpp:18:
src/textbuf.h: Dans member function « void
TextBuffer::ClearTranslation(char)
»:
src/textbuf.h:70: attention : array subscript has type `char'
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/gfile.o -c src/gfile.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/matsig.o -c src/matsig.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/bytebuf.o -c
src/bytebuf.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/textbuf.o -c
src/textbuf.cpp
In file included from src/textbuf.cpp:16:
src/textbuf.h: Dans member function « void
TextBuffer::ClearTranslation(char)
»:
src/textbuf.h:70: attention : array subscript has type `char'
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/myassert.o -c
src/myassert.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/stralloc.o -c
src/stralloc.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/mfile.o -c src/mfile.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/dstring.o -c
src/dstring.cpp
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/pgnparse.o -c
src/pgnparse.cpp
In file included from src/game.h:24,
from src/pgnparse.h:27,
from src/pgnparse.cpp:16:
src/textbuf.h: Dans member function « void
TextBuffer::ClearTranslation(char)
»:
src/textbuf.h:70: attention : array subscript has type `char'
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/stored.o -c src/stored.cpp
In file included from src/game.h:24,
from src/stored.h:18,
from src/stored.cpp:15:
src/textbuf.h: Dans member function « void
TextBuffer::ClearTranslation(char)
»:
src/textbuf.h:70: attention : array subscript has type `char'
g++ -O4 -fno-rtti -fno-exceptions -Wall -o src/movelist.o -c
src/movelist.cpp
g++ -o pgnscid src/pgnscid.o src/misc.o src/index.o src/date.o
src/namebase.o src/position.o src/game.o src/gfile.o src/matsig.o
src/bytebuf.o src/textbuf.o src/myassert.o src/stralloc.o src/mfile.o
src/dstring.o src/pgnparse.o src/stored.o src/movelist.o -lz
/usr/bin/ld: ne peut trouver -lstdc++
collect2: ld a retourné 1 code d'état d'exécution
make: *** [pgnscid] Erreur 1"

En fait, ça commence pas trop mal cette histoire mais malheur :
/usr/bin/ld : ne peut trouver -lstdc++

Sur la page de téléchargement du programmes "scid", on peut lire :
To compile Scid for Linux or other Unix operating systems, you must have
Tcl/Tk (8.3.0 or newer is recommended) and a C++ compiler. You should be
able to compile Scid just by typing ./configure and then make in the
scid-3.6 directory. If that does not work, you may need to edit the
Makefile

Oui, mais comment puis-je savoir où se trouve "-lstdc++" sur mon système
(j'utilise aurox 10.0) que make ne trouve pas ; c'est le préalable à toute
modifiation du fichier "makefile"!
Si vous avez des idées, elles seront bienvenues....

1 réponse

1 2 3
Avatar
Pascal
GERBIER Eric wrote:

Pascal wrote:
wrote:

C'est rpm, mais je te dis que le paquet n'existe pas (ce qui signifie
évidemment que je l'ai cherché sur internet, notamment sur les liens que
tu cites). Il existe un rpm pour Mandrake10.0 mais je sais qu'il faut
éviter d'installer un rpm créer pour une autre distribution. Dans
certains cas, ça ne pose aucun problème, dans d'autres le système peut en
patir.


dans ce cas, plutot que de partir du tar.gz, c'est interessant de partir
du src.rpm trouve sur rpmfind : ca te permettra de contruire un paquet
adapte a ta distribution
Très bien. Merci pour le tuyau.



1 2 3