Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accesso alle shared library...
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) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
Lucas84
n00b
n00b


Joined: 19 Nov 2005
Posts: 13
Location: Roma

PostPosted: Wed Nov 30, 2005 11:07 am    Post subject: Accesso alle shared library... Reply with quote

Hola!

Devo inserire in una versione minimale di gentoo un programma i cui eseguibili accedono a delle librerie condivise (il configure non prevede opzioni tipo -nosharedlibrary -static eccetra). Come posso fare?

Se copio incollo le librerie necessarie al programma (trovate con un ldd) rispettando i path, il programma in questione vi accede come se fossero normali file oppure devo installare un livello intermedio che gestisca il famigerato accesso alle librerie condivise? Se sì, dove lo posso trovare? (nelle libtool?) :?


Grazie per il prezioso aiuto,

Luca
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Nov 30, 2005 11:33 am    Post subject: Reply with quote

usando LDFLAGS="-static" dovresti essere in grado di creare binari statici
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
Lucas84
n00b
n00b


Joined: 19 Nov 2005
Posts: 13
Location: Roma

PostPosted: Wed Nov 30, 2005 12:05 pm    Post subject: Reply with quote

makoomba wrote:
usando LDFLAGS="-static" dovresti essere in grado di creare binari statici

Ho provato a inserire l'opzione nel make.conf ma non funzia :(

Tra le librerie linkate è presente anche linux-gate.so.1, una libreria virtuale legata al kernel NON COPIABILE in nessuna forma come dicono su http://lists.us.dell.com/pipermail/linux-poweredge/2004-October/016899.html... Ho paura che non rimanga altro che trovare il pacchetto che mi gestisce le shared library... Quale sarà mai? :wink:


Last edited by Lucas84 on Wed Nov 30, 2005 12:16 pm; edited 3 times in total
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Nov 30, 2005 12:08 pm    Post subject: Reply with quote

ma il software è in portage ?
di che pacchetto si tratta ?
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
Lucas84
n00b
n00b


Joined: 19 Nov 2005
Posts: 13
Location: Roma

PostPosted: Wed Nov 30, 2005 12:13 pm    Post subject: Reply with quote

makoomba wrote:
ma il software è in portage ?
di che pacchetto si tratta ?

Non è nel portage, si tratta di Jxta-C (http://jxta-c.jxta.org/) una piattaforma per il peer to peer...
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Nov 30, 2005 12:16 pm    Post subject: Reply with quote

allora il make.conf non viene considerato.
Code:
LDFLAGS="-static" ./configure
LDFLAGS="-static" make

dovrebbe funzionare.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Nov 30, 2005 12:18 pm    Post subject: Reply with quote

Lucas84 wrote:
Non è nel portage, si tratta di Jxta-C (http://jxta-c.jxta.org/) una piattaforma per il peer to peer...


Se non usi emerge per compilare il programma nel make.conf puoi scrivere anche un paio di versi di Dante Alighieri. Tanto non verranno presi in considerazione.

La flag -static dovresti provare a metterla come variabile d'ambiente (ma fai una ricerca per scoprire come si chiama esattamente).

Comunque se copi (rispettando i path) le librerie non dovresti avere problemi.
_________________
Ciao da me!
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Nov 30, 2005 12:20 pm    Post subject: Reply with quote

/me che sospetta un imminente move to -> OT
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Nov 30, 2005 12:42 pm    Post subject: Reply with quote

makoomba wrote:
/me che sospetta un imminente move to -> OT


Sospetti bene... ;-)
_________________
Ciao da me!
Back to top
View user's profile Send private message
Lucas84
n00b
n00b


Joined: 19 Nov 2005
Posts: 13
Location: Roma

PostPosted: Wed Nov 30, 2005 12:51 pm    Post subject: Reply with quote

makoomba wrote:
/me che sospetta un imminente move to -> OT


Mi è venuto il dubbio di essere OT prima di postare, poi mi sono detto che forse gentoo gestisce le shared library in modo diverso o tramite un package non presente nelle altre distro. E ho postato :wink: Anche perchè a me servirebbe il nome del package che in gentoo mi gestisce le librerie condivise! (se esiste)

Quote:

Code:
LDFLAGS="-static" ./configure
LDFLAGS="-static" make


dovrebbe funzionare.

Magari! :roll:

Quote:
Se non usi emerge per compilare il programma nel make.conf puoi scrivere anche un paio di versi di Dante Alighieri. Tanto non verranno presi in considerazione.

Sorrrry è vero!!! 8O

Quote:
Comunque se copi (rispettando i path) le librerie non dovresti avere problemi.

Provo! Magari la linux-gate.so.1 non è completamente necessaria...

Grazie dell'aiuto,

Luca
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Nov 30, 2005 2:13 pm    Post subject: Reply with quote

Lucas84 wrote:
Magari! :roll:

prima di gentoo, i binari statici li usavo spesso e ho sempre fatto così.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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