[openmamba-users-it] autospec problema
riccardo moja
riccardo.moja a gmail.com
Mer 30 Gen 2008 22:45:29 CET
stavo provando a pacchettizzare kxmame (un frontend grafico per xmame).
dopo aver passato tutto il pomeriggio a installare pacchetti -devel
che non avevo (non sarebbe comodo fare una versione per lo sviluppo
senza programmi come openoffice amarok ecc ecc ma con tanti pacchetti
devel già installati?), e alla fine quello che sarebbe il ./configure
va a buon fine.
Si passa quindi al make, solo che dopo un po' mi dice (e copio solo la
parte finale)
/usr/lib/qt3/bin/moc ./kxmamesnaptab.h -o kxmamesnaptab.moc
if i586-openmamba-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/opt/kde3/include -I/usr/lib/qt3/include -I. -DQT_THREAD_SUPPORT
-D_REENTRANT -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O2
-fomit-frame-pointer -pipe -march=i686 -mtune=generic
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DKXMAME -MT
kxmamesnaptab.o -MD -MP -MF ".deps/kxmamesnaptab.Tpo" -c -o
kxmamesnaptab.o kxmamesnaptab.cpp; \
then mv -f ".deps/kxmamesnaptab.Tpo" ".deps/kxmamesnaptab.Po";
else rm -f ".deps/kxmamesnaptab.Tpo"; exit 1; fi
In file included from gxmame.h:25,
from kxmamesnaptab.h:33,
from kxmamesnaptab.cpp:37:
common.h:25:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
from /usr/lib/qt3/include/qcstring.h:46,
from /usr/lib/qt3/include/qstring.h:42,
from /opt/kde3/include/klocale.h:25,
from kxmamesnaptab.cpp:21:
/usr/include/features.h:155:1: warning: this is the location of the
previous definition
/usr/lib/qt3/bin/moc ./kxmame_joy.h -o kxmame_joy.moc
if i586-openmamba-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/opt/kde3/include -I/usr/lib/qt3/include -I. -DQT_THREAD_SUPPORT
-D_REENTRANT -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O2
-fomit-frame-pointer -pipe -march=i686 -mtune=generic
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DKXMAME -MT
kxmame_joy.o -MD -MP -MF ".deps/kxmame_joy.Tpo" -c -o kxmame_joy.o
kxmame_joy.cpp; \
then mv -f ".deps/kxmame_joy.Tpo" ".deps/kxmame_joy.Po"; else
rm -f ".deps/kxmame_joy.Tpo"; exit 1; fi
In file included from kxmame_joy.cpp:29:
common.h:25:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
from /usr/lib/qt3/include/qcstring.h:46,
from /usr/lib/qt3/include/qstring.h:42,
from /usr/lib/qt3/include/qwindowdefs.h:44,
from /usr/lib/qt3/include/qobject.h:43,
from /usr/lib/qt3/include/qsocketnotifier.h:42,
from kxmame_joy.cpp:23:
/usr/include/features.h:155:1: warning: this is the location of the
previous definition
In file included from kxmame_joy.cpp:44:
/usr/include/linux/joystick.h:131: error: '__s64' does not name a type
/usr/include/linux/joystick.h:132: error: '__s64' does not name a type
kxmame_joy.cpp: In function 'const char* get_joy_dev()':
kxmame_joy.cpp:76: warning: deprecated conversion from string constant
to 'char*'
kxmame_joy.cpp:76: warning: deprecated conversion from string constant
to 'char*'
kxmame_joy.cpp:76: warning: deprecated conversion from string constant
to 'char*'
make[2]: *** [kxmame_joy.o] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/kxmame-1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/kxmame-1.2'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.72869 (%build)
ora io sono andato un po' a ritroso, ma non capisco bene, qui mi dice
che c'è l'errore:
/usr/include/linux/joystick.h:132: error: '__s64' does not name a type
OK, e io ora che devo fare? non penso che devo andare a cambiare il
codice. Non so se devo mettere qualche altro pacchetto, da qui non
riesco a capirlo.
Ho anche provato a compilare da zero xfce4.4.2 (o una cosa simile,
comunque la vers successiva a quella nei repository, dato che non mi
funziona), e mentre alcuni pacchetti sono riuscito a farli, ora non mi
ricordo a quale, mi da lo stesso problema che ho qui, cioè arriva al
make, e poi mi da un errore nel codice, e lì non so che fare.
Maggiori informazioni sulla lista
openmamba-users-it