Newsgroup: it.comp.os.linux.iniziare
Titolo: problemi compilazione daphne su suse (lungo)

Salve a tutti i membri del newsgroup
Sto tentando invano di compilare l'emulatore daphne sotto suse 9.0..
Ho letto l'how-to ed ho eseguito i comandi alla lettera, ma dopo make ecco
l'output d'errore:
cd ldp-out && make
make[1]: Entering directory `/home/mbar/sdq/daphne/src/ldp-out'
g++ -O3 -march=i686 -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer
-fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX
-DLINUX -DNATIVE_CPU_X86 -DMMX_RGB2YUV -Wall -Winline -c ldp-vldp-audio.cpp
-o ldp-vldp-audio.o
ldp-vldp-audio.cpp:45:71: vorbis/codec.h: No such file or directory
ldp-vldp-audio.cpp:46:31: vorbis/vorbisfile.h: No such file or directory
ldp-vldp-audio.cpp:63: error: 'OggVorbis_File' is used as a type, but is not
   defined as a type.
ldp-vldp-audio.cpp: In member function `void
ldp_vldp::close_audio_stream()':
ldp-vldp-audio.cpp:261: error: `s_ogg' undeclared (first use this function)
ldp-vldp-audio.cpp:261: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
ldp-vldp-audio.cpp:261: error: `ov_clear' undeclared (first use this
function)
ldp-vldp-audio.cpp: In member function `bool
ldp_vldp::open_audio_stream(char*)
   ':
ldp-vldp-audio.cpp:269: error: `ov_callbacks' undeclared (first use this
   function)
ldp-vldp-audio.cpp:269: error: parse error before `=' token
ldp-vldp-audio.cpp:268: warning: unused variable `bool result'
ldp-vldp-audio.cpp:275: warning: no return statement in function returning
   non-void
ldp-vldp-audio.cpp: At global scope:
ldp-vldp-audio.cpp:278: error: ISO C++ forbids declaration of `SDL_mutexP'
with
   no type
ldp-vldp-audio.cpp:278: error: `int SDL_mutexP' redeclared as different kind
of
   symbol
/usr/include/SDL/SDL_mutex.h:67: error: previous declaration of `int
   SDL_mutexP(SDL_mutex*)'
ldp-vldp-audio.cpp:278: error: invalid conversion from `SDL_mutex*' to `int'
ldp-vldp-audio.cpp:281: error: parse error before `if'
ldp-vldp-audio.cpp:285: error: ISO C++ forbids declaration of
`g_audio_handle'
   with no type
ldp-vldp-audio.cpp:285: error: conflicting types for `int g_audio_handle'
ldp-vldp-audio.cpp:62: error: previous declaration as `FILE*g_audio_handle'
ldp-vldp-audio.cpp:286: error: parse error before `}' token
ldp-vldp-audio.cpp:290: error: ISO C++ forbids declaration of `mmreset' with
no
   type
ldp-vldp-audio.cpp:290: error: new declaration `int mmreset()'
ldp-vldp-audio.cpp:79: error: ambiguates old declaration `void mmreset()'
ldp-vldp-audio.cpp:292: error: ISO C++ forbids declaration of
`g_audio_handle'
   with no type
ldp-vldp-audio.cpp:292: error: redefinition of `int g_audio_handle'
ldp-vldp-audio.cpp:285: error: `int g_audio_handle' previously defined here
ldp-vldp-audio.cpp:292: error: `filename' was not declared in this scope
ldp-vldp-audio.cpp:293: error: parse error before `if'
ldp-vldp-audio.cpp:300: error: ISO C++ forbids declaration of `g_big_buf'
with
   no type
ldp-vldp-audio.cpp:300: error: conflicting types for `int g_big_buf'
ldp-vldp-audio.cpp:67: error: previous declaration as `Uint8*g_big_buf'
ldp-vldp-audio.cpp:300: error: invalid conversion from `int' to `FILE*'
ldp-vldp-audio.cpp:315: error: parse error before `if'
ldp-vldp-audio.cpp:329: error: ISO C++ forbids declaration of `result' with
no
   type
ldp-vldp-audio.cpp:330: error: parse error before `}' token
ldp-vldp-audio.cpp:334: error: ISO C++ forbids declaration of `printline'
with
   no type
ldp-vldp-audio.cpp:334: error: `int printline' redeclared as different kind
of
   symbol
../io/conout.h:29: error: previous declaration of `unsigned char
   printline(const char*)'
ldp-vldp-audio.cpp:334: error: invalid conversion from `const char*' to
`int'
ldp-vldp-audio.cpp:335: error: `s' was not declared in this scope
ldp-vldp-audio.cpp:335: error: `info' was not declared in this scope
ldp-vldp-audio.cpp:335: error: `info' was not declared in this scope
ldp-vldp-audio.cpp:335: error: ISO C++ forbids declaration of `sprintf' with
no
   type
ldp-vldp-audio.cpp:335: error: `int sprintf' redeclared as different kind of
   symbol
/usr/include/stdio.h:332: error: previous declaration of `int sprintf(char*,
   const char*, ...)'
ldp-vldp-audio.cpp:335: error: initializer list being treated as compound
   expression
ldp-vldp-audio.cpp:336: error: `s' was not declared in this scope
ldp-vldp-audio.cpp:336: error: ISO C++ forbids declaration of `printline'
with
   no type
ldp-vldp-audio.cpp:336: error: redefinition of `int printline'
ldp-vldp-audio.cpp:334: error: `int printline' previously defined here
ldp-vldp-audio.cpp:337: error: ISO C++ forbids declaration of `printline'
with
   no type
ldp-vldp-audio.cpp:337: error: redefinition of `int printline'
ldp-vldp-audio.cpp:336: error: `int printline' previously defined here
ldp-vldp-audio.cpp:337: error: invalid conversion from `const char*' to
`int'
ldp-vldp-audio.cpp:338: error: parse error before `}' token
ldp-vldp-audio.cpp:343: error: `s' was not declared in this scope
ldp-vldp-audio.cpp:343: error: `open_result' was not declared in this scope
ldp-vldp-audio.cpp:343: error: ISO C++ forbids declaration of `sprintf' with
no
   type
ldp-vldp-audio.cpp:343: error: redefinition of `int sprintf'
ldp-vldp-audio.cpp:335: error: `int sprintf' previously defined here
ldp-vldp-audio.cpp:343: error: initializer list being treated as compound
   expression
ldp-vldp-audio.cpp:344: error: `s' was not declared in this scope
ldp-vldp-audio.cpp:344: error: ISO C++ forbids declaration of `printline'
with
   no type
ldp-vldp-audio.cpp:344: error: redefinition of `int printline'
ldp-vldp-audio.cpp:337: error: `int printline' previously defined here
ldp-vldp-audio.cpp:345: error: `s' was not declared in this scope
ldp-vldp-audio.cpp:346: error: `OV_EREAD' was not declared in this scope
ldp-vldp-audio.cpp:346: error: `OV_ENOTVORBIS' was not declared in this
scope
ldp-vldp-audio.cpp:346: error: `OV_EVERSION' was not declared in this scope
ldp-vldp-audio.cpp:346: error: `OV_EBADHEADER' was not declared in this
scope
ldp-vldp-audio.cpp:346: error: `OV_EFAULT' was not declared in this scope
ldp-vldp-audio.cpp:346: error: ISO C++ forbids declaration of `sprintf' with
no
   type
ldp-vldp-audio.cpp:346: error: redefinition of `int sprintf'
ldp-vldp-audio.cpp:343: error: `int sprintf' previously defined here
ldp-vldp-audio.cpp:346: error: initializer list being treated as compound
   expression
ldp-vldp-audio.cpp:347: error: `s' was not declared in this scope
ldp-vldp-audio.cpp:347: error: ISO C++ forbids declaration of `printline'
with
   no type
ldp-vldp-audio.cpp:347: error: redefinition of `int printline'
ldp-vldp-audio.cpp:344: error: `int printline' previously defined here
ldp-vldp-audio.cpp:348: error: parse error before `}' token
ldp-vldp-audio.cpp:364: error: ISO C++ forbids declaration of
`g_audio_handle'
   with no type
ldp-vldp-audio.cpp:364: error: redefinition of `int g_audio_handle'
ldp-vldp-audio.cpp:292: error: `int g_audio_handle' previously defined here
ldp-vldp-audio.cpp:364: warning: initialization to non-pointer type `int'
from
   NULL
ldp-vldp-audio.cpp:364: warning: argument to non-pointer type `int' from
NULL
ldp-vldp-audio.cpp:367: error: parse error before `if'
ldp-vldp-audio.cpp:374: error: ISO C++ forbids declaration of `g_big_buf'
with
   no type
ldp-vldp-audio.cpp:374: error: redefinition of `int g_big_buf'
ldp-vldp-audio.cpp:300: error: `int g_big_buf' previously defined here
ldp-vldp-audio.cpp:374: warning: initialization to non-pointer type `int'
from
   NULL
ldp-vldp-audio.cpp:374: warning: argument to non-pointer type `int' from
NULL
ldp-vldp-audio.cpp:375: error: parse error before `}' token
ldp-vldp-audio.cpp:390: error: ISO C++ forbids declaration of `SDL_mutexV'
with
   no type
ldp-vldp-audio.cpp:390: error: `int SDL_mutexV' redeclared as different kind
of
   symbol
/usr/include/SDL/SDL_mutex.h:74: error: previous declaration of `int
   SDL_mutexV(SDL_mutex*)'
ldp-vldp-audio.cpp:390: error: invalid conversion from `SDL_mutex*' to `int'
ldp-vldp-audio.cpp:392: error: parse error before `return'
ldp-vldp-audio.cpp: In member function `bool ldp_vldp::seek_audio(double)':
ldp-vldp-audio.cpp:401: error: `SDL_mutexP' cannot be used as a function
ldp-vldp-audio.cpp:403: error: `ov_seekable' undeclared (first use this
   function)
ldp-vldp-audio.cpp:405: error: `ov_time_seek' undeclared (first use this
   function)
ldp-vldp-audio.cpp:411: error: `printline' cannot be used as a function
ldp-vldp-audio.cpp:414: error: `SDL_mutexV' cannot be used as a function
ldp-vldp-audio.cpp: In member function `void ldp_vldp::audio_play(unsigned
int)
   ':
ldp-vldp-audio.cpp:422: error: `SDL_mutexP' cannot be used as a function
ldp-vldp-audio.cpp:426: error: `SDL_mutexV' cannot be used as a function
ldp-vldp-audio.cpp: In member function `void ldp_vldp::audio_pause()':
ldp-vldp-audio.cpp:432: error: `SDL_mutexP' cannot be used as a function
ldp-vldp-audio.cpp:434: error: `SDL_mutexV' cannot be used as a function
ldp-vldp-audio.cpp: In function `void ldp_vldp_audio_callback(void*, Uint8*,
   int)':
ldp-vldp-audio.cpp:447: error: `SDL_mutexP' cannot be used as a function
ldp-vldp-audio.cpp:487: error: `ov_read' undeclared (first use this
function)
ldp-vldp-audio.cpp:514: error: `printline' cannot be used as a function
ldp-vldp-audio.cpp:522: error: `printline' cannot be used as a function
ldp-vldp-audio.cpp:627: error: `SDL_mutexV' cannot be used as a function
ldp-vldp-audio.cpp: In function `void
   __static_initialization_and_destruction_0(int, int)':
ldp-vldp-audio.cpp:285: warning: statement with no effect
make[1]: *** [ldp-vldp-audio.o] Error 1
make[1]: Leaving directory `/home/mbar/sdq/daphne/src/ldp-out'
make: *** [sub] Error 2
Ho installato tutti i pacchetti richiesti (sdl, ogg-vorbis, Zlib) ma non
c'e' verso :-(
Grazie a chi mi aiutera'.
--
ciao Mbar
togli le xxx dall'indirizzo per rispondermi

 Grazie a chi mi aiutera'.
Nessuno? Una guida, un howto, una faq qualcosa... quella che ho io e' troppo
striminzita e non mi e' d'aiuto sigh :-(
