Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[virtualbox] errore compilazione [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
drumpaul
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2006
Posts: 107

PostPosted: Mon Feb 26, 2007 5:35 pm    Post subject: [virtualbox] errore compilazione [RISOLTO] Reply with quote

Questo � l'errore che riporta l'emerge quando fallisce la compilazione di virtualbox:

Code:
SDL not found at -lSDL -lSDLmain -I/usr/include/SDL or SDL headers not found
  Check the file configure.log for detailed error information


ditemi se avete bisogno anche del configure.log (...vi avverto ke sono circa 1000 linee di codice...)

a tal proposito so che virtualbox necessita del pacchetto libsdl che peraltro ho installato:

Code:
[ebuild   R   ] media-libs/libsdl-1.2.11  USE="X alsa arts esd ggi libcaca svga xv -aalib -dga -directfb -fbcon -nas -noaudio -noflagstrip -nojoystick -novideo -opengl -oss -xinerama" 0 kB


magari ho mancato qualche use... ma dalle indicazioni dell'emerge non riesco a capire come risolvere, inoltre non sono pratico di sdl, so a mala pena a cosa serve. Potete aiutarmi?
Grazie

Ciao


Last edited by drumpaul on Wed Feb 28, 2007 7:41 am; edited 1 time in total
Back to top
View user's profile Send private message
Elbryan
Guru
Guru


Joined: 13 Nov 2006
Posts: 523
Location: Rovereto (TN)

PostPosted: Mon Feb 26, 2007 5:42 pm    Post subject: Reply with quote

l'hai installato tramite svn o portage?

Perché leggendo QUESTA guida parla di svn e poi di vari make..
Back to top
View user's profile Send private message
drumpaul
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2006
Posts: 107

PostPosted: Mon Feb 26, 2007 5:45 pm    Post subject: Reply with quote

Di solito come regola uso portage a meno di richieste particolari del software e in questo caso non ho fatto eccezzione. HO dato semplicemente:
Code:
emerge virtualbox

previo smascheramento dello stesso e delle dipendenze ovviamente.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Feb 26, 2007 7:28 pm    Post subject: Re: [virtualbox] errore compilazione Reply with quote

drumpaul wrote:
ditemi se avete bisogno anche del configure.log (...vi avverto ke sono circa 1000 linee di codice...)

Non occorre postare TUTTO il log, penso bastino le ultime righe, dove dovrebbe comparire la causa del problema.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Mon Feb 26, 2007 7:30 pm    Post subject: Re: [virtualbox] errore compilazione Reply with quote

Scen wrote:
drumpaul wrote:
ditemi se avete bisogno anche del configure.log (...vi avverto ke sono circa 1000 linee di codice...)

Non occorre postare TUTTO il log, penso bastino le ultime righe, dove dovrebbe comparire la causa del problema.


solitamente le ultime 20righe... :wink:
Back to top
View user's profile Send private message
drumpaul
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2006
Posts: 107

PostPosted: Mon Feb 26, 2007 7:44 pm    Post subject: Reply with quote

Bene,ecco il log:

Code:
***** Checking SDL *****
compiling the following source file:

#include <cstdio>
#include <SDL/SDL.h>
#include <SDL/SDL_main.h>
extern "C" int main(void)
{
  printf("found version %d.%d.%d",
         SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
#if SDL_VERSION_ATLEAST(1,2,7)
  printf(", OK.\n");
  return 0;
#else
  printf(", expected version 1.2.7 or higher\n");
  return 1;
#endif
}

using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-lSDL -lSDLmain -I/usr/include/SDL"
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libSDL.so: undefined reference to `caca_end'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libSDL.so: undefined reference to `caca_refresh'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libSDL.so: undefined reference to `caca_get_width'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libSDL.so: undefined reference to `caca_draw_bitmap'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libSDL.so: undefined reference to `caca_init'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libSDL.so: undefined reference to `caca_get_height'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libSDL.so: undefined reference to `caca_create_bitma$
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libSDL.so: undefined reference to `caca_free_bitmap'
collect2: ld returned 1 exit status
distcc[21314] ERROR: compile .tmp_src.cc on localhost failed


sono stato un po' più generoso, così ho postato tutto ciò che riguarda il checking di SDL.

Spero vi sia d'aiuto.

Ciao
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Feb 26, 2007 7:46 pm    Post subject: Reply with quote

Code:

distcc[21314] ERROR: compile .tmp_src.cc on localhost failed

Stai utilizzando distcc per compilare? Disattivalo (aggiungendo -distcc a FEATURES in /etc/make.conf), e riprova.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
drumpaul
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2006
Posts: 107

PostPosted: Mon Feb 26, 2007 8:00 pm    Post subject: Reply with quote

Non penso sia quello, comunque anche provando stesso identico errore senza ovviamente quello relativo a distcc.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Feb 26, 2007 8:10 pm    Post subject: Reply with quote

Quegli "undefined reference to 'caca ecc ecc.'" mi fanno pensare che al configure di virtualbox non piacciano le librerie SDL compilate con la USE "libcaca" attiva (o forse c'è qualche libreria "spezzata", hai provato a vedere con revdep-rebuild?). Prova a disabilitarla per libsdl, ricompila questo pacchetto, e riprova con virtualbox.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Mon Feb 26, 2007 10:30 pm    Post subject: Reply with quote

Stai provando con la1.3.4-r1 o con la 9999 ?
Non hai preso in considerazione la -bin ?
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
drizztbsd
Retired Dev
Retired Dev


Joined: 21 Nov 2004
Posts: 278
Location: Cesano Maderno

PostPosted: Tue Feb 27, 2007 10:27 am    Post subject: Reply with quote

Sì ricompila libsdl (revdep-rebuild dovrebbe farlo lui) oppure reinstalla libcaca
_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
drumpaul
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2006
Posts: 107

PostPosted: Tue Feb 27, 2007 3:34 pm    Post subject: Reply with quote

Risolto ricompilando libsdl senza la USE libcaca, grazie @Scen.

@kernel78: per principio compilo sempre i sorgenti a meno che i pacchetti siano abominevoli come openoffice o simili, poi è questione di gusti... :-)

Grazie per il supporto
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum