Mailing List Archive

stepmania
Hi,
I tried this weekend to install games-arcade/stepmania. It is keyworded
~ppc in the package list.
Unfortunaltely, it do not compile because it need sys/io.h which is not
available for ppc and other arch, except on x86.
This file is needed in order to use ioperm and outb.

Follows, the excerpt from the compilation:

if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/SDL -D_REENTRANT
-finline-limit=300 -O2 -pipe -mtune=7450 -mcpu=7450 -maltivec
-mabi=altivec -fno-strict-aliasing -MT LightsDriver_LinuxParallel.o -MD
-MP -MF ".deps/LightsDriver_LinuxParallel.Tpo" \
-c -o LightsDriver_LinuxParallel.o `test -f
'arch/Lights/LightsDriver_LinuxParallel.cpp' || echo
'./'`arch/Lights/LightsDriver_LinuxParallel.cpp; \
then mv -f ".deps/LightsDriver_LinuxParallel.Tpo"
".deps/LightsDriver_LinuxParallel.Po"; \
else rm -f ".deps/LightsDriver_LinuxParallel.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/SDL -D_REENTRANT
-finline-limit=300 -O2 -pipe -mtune=7450 -mcpu=7450 -maltivec
-mabi=altivec -fno-strict-aliasing -MT MemoryCardDriver.o -MD -MP -MF
".deps/MemoryCardDriver.Tpo" \
-c -o MemoryCardDriver.o `test -f
'arch/MemoryCard/MemoryCardDriver.cpp' || echo
'./'`arch/MemoryCard/MemoryCardDriver.cpp; \
then mv -f ".deps/MemoryCardDriver.Tpo" ".deps/MemoryCardDriver.Po"; \
else rm -f ".deps/MemoryCardDriver.Tpo"; exit 1; \
fi
arch/Lights/LightsDriver_LinuxParallel.cpp:9:20: sys/io.h : Aucun
fichier ou répertoire de ce type
arch/Lights/LightsDriver_LinuxParallel.cpp: In constructor
`LightsDriver_LinuxParallel::LightsDriver_LinuxParallel()':
arch/Lights/LightsDriver_LinuxParallel.cpp:21: erreur: « ioperm » non
déclaré (première utilisation dans cette fonction)
arch/Lights/LightsDriver_LinuxParallel.cpp:21: erreur: (Chaque
identificateur non déclaré est rapporté seulement une seule fois pour la
fonction dans laquelle il apparaît.)
arch/Lights/LightsDriver_LinuxParallel.cpp:22: erreur: « outb » non
déclaré (première utilisation dans cette fonction)
arch/Lights/LightsDriver_LinuxParallel.cpp: In destructor `virtual
LightsDriver_LinuxParallel::~LightsDriver_LinuxParallel()':arch/Lights/LightsDriver_LinuxParallel.cpp:28: erreur: « outb » non déclaré (première utilisation dans cette fonction)
arch/Lights/LightsDriver_LinuxParallel.cpp:29: erreur: « ioperm » non
déclaré (première utilisation dans cette fonction)
arch/Lights/LightsDriver_LinuxParallel.cpp: In member function `virtual
void LightsDriver_LinuxParallel::Set(const LightsState*)':
arch/Lights/LightsDriver_LinuxParallel.cpp:69: erreur: « outb » non
déclaré (première utilisation dans cette fonction)
make[2]: *** [LightsDriver_LinuxParallel.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[2]: Leaving directory
`/var/tmp/portage/stepmania-3.9_rc2/work/StepMania-3.9-rc2a-src/src'
make[1]: *** [all] Erreur 2
make[1]: Leaving directory
`/var/tmp/portage/stepmania-3.9_rc2/work/StepMania-3.9-rc2a-src/src'
make: *** [all-recursive] Erreur 1

Can we bypass this file? (I will try that later.)
Is there a solution to this problem that I did not find on the internet?
Thanks
--
Aymeric Nys
L'histoire de Microsoft :
http://www.euronet.nl/users/frankvw/rants/microsoft/IhateMS.html
S'il vous plaît, évitez de m'envoyer des attachements au format Word.
Voir http://www.fsf.org/philosophy/no-word-attachments.fr.html



--
gentoo-ppc-dev@gentoo.org mailing list
Re: stepmania [ In reply to ]
Le lundi 13 décembre 2004 à 20:02 +0100, Michael Hanselmann a écrit :
> Hello
>
> > This file is needed in order to use ioperm and outb.
>
> Both of those functions are really useless on any architecture beside
> x86 or amd64, because they don't have IO-ports. I have not looked in to
> the program, but is it possible to compile it without using those
> (x86-only) functions?

I will try that this evening (it's 2pm here).
I think just not include the file dealing with io-port should do the
trick, but I will check if more files need to be treated.

> Greets,
> Michael

Greets
--
Aymeric Nys
L'histoire de Microsoft :
http://www.euronet.nl/users/frankvw/rants/microsoft/IhateMS.html
S'il vous plaît, évitez de m'envoyer des attachements au format Word.
Voir http://www.fsf.org/philosophy/no-word-attachments.fr.html


--
gentoo-ppc-dev@gentoo.org mailing list
stepmania [ In reply to ]
Hi,
I had a problem with sys/io.h in stepmania so
I remove the references of the class in some files and compilation
continues for some time. Here are the modifications:
/var/tmp/portage/stepmania-3.9_rc2/work/StepMania-3.9-rc2a-src/src/arch/
comment line 23 from arch_linux.h
#include "Lights/LightsDriver_LinuxParallel.h"

/var/tmp/portage/stepmania-3.9_rc2/work/StepMania-3.9-rc2a-src/src/arch/Lights
comment line 20 from LightsDriver.cpp
if(!driver.CompareNoCase("LinuxParallel")) ret = new
LightsDriver_LinuxParallel;

/var/tmp/portage/stepmania-3.9_rc2/work/StepMania-3.9-rc2a-src/src/
remove from line 54 in Makefile
arch/Lights/LightsDriver_LinuxParallel.cpp
arch/Lights/LightsDriver_LinuxParallel.h
In fact I remove all reference to those file in the Makefile.

So after those modifications the compilation continues but stops on the
crypto module with errors of undeclared variables. I'm reluctant to copy
the errors message here, there are 122 lines. If you want it, I can send
it to you. I will investigate this issues this evening.

Well if someone can give me a hand to make it compile cleanly, it will
be very appreciate. (Note that I can play this game on MacOsX, but I'd
like to have it on gentoo)

Thanks
--
Aymeric Nys
L'histoire de Microsoft :
http://www.euronet.nl/users/frankvw/rants/microsoft/IhateMS.html
S'il vous plaît, évitez de m'envoyer des attachements au format Word.
Voir http://www.fsf.org/philosophy/no-word-attachments.fr.html



--
gentoo-ppc-dev@gentoo.org mailing list