Yesterday, I have installed gnome-games-2.18.2.1.
The problem I will describe was found by me in attempts of building some other
packages, so, please do not think that it is irrelevant, because found when
compiling games.
Although using fluxbox, several gnome dependencies to gnucash are from gnome,
thus, most dependencies for the games are installed in this system already.
It was not without problems, "make" stopped due to errors several times. The
first one was duplicity in definition of some variables already appearing in
system routines; just needed to rename them, in two routines of the source code
of games, and chess compiled. However, had to build without blackjack, because
of an error:
game.cpp:63: warning: deprecated conversion from string constant to
'gchar*'
game.cpp: In function 'const char* extension_pointer(const char*)':
game.cpp:136: error: invalid conversion from 'const char*' to 'char*'
game.cpp:140: error: invalid conversion from 'const char*' to 'char*'
make[3]: ** [game.o] Erro 1
make[3]: Saindo do diretório
`/sourcesbsvn/gnome/gnome-games-2.18.2.1/blackjack/src'
make[2]: ** [all-recursive] Erro 1
make[2]: Saindo do diretório
`/sourcesbsvn/gnome/gnome-games-2.18.2.1/blackjack'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/sourcesbsvn/gnome/gnome-games-2.18.2.1'
make: ** [all] Erro 2
"saindo do diretório" means "leaving directory".
The section of code is
{
char * s, * t;
g_return_val_if_fail (path != NULL, NULL);
/* get the dot in the last element of the path */
t = strrchr (path, G_DIR_SEPARATOR); /* -------------this is line 136 */
if (t != NULL)
s = strrchr (t, '.');
else
s = strrchr (path, '.'); /* -------------this is line 140 */
if (s == NULL)
return path + strlen (path); /* There is no extension. */
else {
++s; /* pass the . */
return s;
}
the warning is about line 63:
gchar *game_file = "";
I do not intend to use blackjack soon, actually only use AisleRiot Klondike,
after lunch or during long compilations, or so, but it bothers not being able
to solve this recurring problem. Other software I tried to install showed the
same problem, and I gave up. (I did not try to solve other problems of my LFS
system, because first, I needed to find if would be capable of building a
system suitable to my needs. Soon will start trying to correct the parts not
working perfectly.)
I searched during great part of yesterday in the Internet about this problem.
It is frequent, run into pages known to me from other compilations problems,
but the solutions needed me to be a real C and C++ programmer, and I only use
knowledge of other languages and just studied a little about C programming long
ago, more than twenty years. I believe that a small change in the definition of
the variables or a flag in the configuration could solve. Have tried something
about "no string writing" and disabling warnings (don't remember exactly,
anymore), the former was not accepted by the compiler, the latter did nothing
to solve the problem.
I would be grateful to anyone helping me with this.
[]s,
Fernando Oliveira
Natal, RN, BRAZIL
____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page