PDA

View Full Version : Compilare e' bello..


Psycotic
17-05-2004, 13:40
Salve come al solito mi metto a compilare...
Stavolta e' il turno di LDAP

checking for cc... cc
checking for ar... no
checking for gar... no
configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR.

sapete cosa sia questo ar?????
grazie

ilsensine
17-05-2004, 13:49
E' il programmino che consente di gestire le librerie statiche (file .a).

Psycotic
17-05-2004, 14:02
Si grazie ho risolto... Gia' era anche installato..

adesso sto guardando perche' mi si e' fermato cosi'

checking for gcc... (cached) cc
checking whether the C compiler (cc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.


dal config.log


configure:2665: checking for cc
configure:2707: checking for ar
configure:2757: checking for Cygwin environment
configure:2773: cc -c conftest.c 1>&5
/usr/ucb/cc: language optional software package not installed
configure: failed program was:
#line 2762 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2789: checking for mingw32 environment
configure:2801: cc -c conftest.c 1>&5
/usr/ucb/cc: language optional software package not installed

Psycotic
17-05-2004, 14:03
il config parla Cygwin.. solo che nn trovo da dove scaricare..
il fatto e' che nn sono manco convinto che e' lui il problema


sto cercando...

kingv
17-05-2004, 14:05
Originariamente inviato da Psycotic

/usr/ucb/cc: language optional software package not installed



ma stai compilando su solaris?

Psycotic
17-05-2004, 14:08
si sto compilando su solaris
Ma a che serve sto cygwin???

# Cygwin is a Linux-like environment for Windows. It consists of two parts: A DLL (cygwin1.dll) which acts as a Linux emulation layer providing substantial Linux API functionality.
# A collection of tools, which provide Linux look and feel.

The Cygwin DLL works with all non-beta, non "release candidate", ix86 32 bit versions of Windows since Windows 98, with the exception of Windows CE.

PER WINDOWS?????????????

kingv
17-05-2004, 14:12
lascia perdere cygwin.



hai installato questi packages?
SUNWscpu
SUNWbtool


se non usi il gcc hai bisogno anche di SPROcc

Psycotic
17-05-2004, 14:18
si sono installati...
credo che sto utilizzando il gcc

mmm ma di quale tool ha bisogno??

kingv
17-05-2004, 14:23
esiste /usr/bin/cc ??

e /usr/ccs/bin/ucbcc ?

Psycotic
17-05-2004, 14:28
ho

/usr/ucb/cc

e come dice lui nel config gli manca un optional package.. che pero' nn so qale'

Ziosilvio
17-05-2004, 14:34
Sotto Solaris, /usr/ucb/cc e' il compilatore C della Sun, che non e' il gcc, e che e' il principale motivo per cui io odio Solaris.

Psycotic
17-05-2004, 14:37
ok ho risolto fino a qui
cosi'

CC=gcc ./configure

adesso ha un altro problema.. vediamo se riesco a risolvere casomai...
RIPOSTO a voi
thanks
:)

kingv
17-05-2004, 14:48
Originariamente inviato da Ziosilvio
Sotto Solaris, /usr/ucb/cc e' il compilatore C della Sun, che non e' il gcc, e che e' il principale motivo per cui io odio Solaris.


no e' uno script di shell che puoi far puntare a quello che vuoi, anche al gcc.

il compilatore di sun e' in /usr/ccs/bin/ucbcc (che e' un link a /opt/SUNWspro/bin/acc ) ;)

Psycotic
17-05-2004, 14:53
Prossimo problema....
Scusate.. Imparero' anche io prima o poi :)

checking for pthread.h... yes
checking POSIX thread version... 6
checking for LinuxThreads pthread.h... no
checking for GNU Pth pthread.h... no
checking for sched.h... yes
checking for pthread_create in default libraries... no
checking for pthread link with -kthread... no
checking for pthread link with -pthread... no
checking for pthread link with -pthreads... no
checking for pthread link with -mthreads... no
checking for pthread link with -thread... no
checking for pthread link with -lpthread -lmach -lexc -lc_r... no
checking for pthread link with -lpthread -lmach -lexc... no
checking for pthread link with -lpthread -Wl,-woff,85... no
checking for pthread link with -lpthread... no
checking for pthread link with -lc_r... no
checking for pthread link with -threads... no
checking for pthread link with -lpthreads -lmach -lexc -lc_r... no
checking for pthread link with -lpthreads -lmach -lexc... no
checking for pthread link with -lpthreads -lexc... no
checking for pthread link with -lpthreads... no
configure: error: could not locate usable POSIX Threads


Che cosa sarebbe POSIX???
Grazie x la vostra disponibilita'

kingv
17-05-2004, 14:59
POSIX e' un insieme di specifiche.

ti manca una libreria, quella dei thread posix.

ti cerco un link per scaricarla...

Psycotic
17-05-2004, 15:34
Non hai trovato??
io neppure

kingv
17-05-2004, 15:36
Originariamente inviato da Psycotic
Non hai trovato??
io neppure



no :stordita:

ho cercato sul sito di GNU ma non li trovo :(

Psycotic
17-05-2004, 15:44
Mmm mi sa che nn riusciro a compilarlo allora...

ilsensine
17-05-2004, 16:04
Originariamente inviato da Psycotic
checking for pthread.h... yes
checking POSIX thread version... 6
checking for LinuxThreads pthread.h... no
checking for GNU Pth pthread.h... no
checking for sched.h... yes
checking for pthread_create in default libraries... no
checking for pthread link with -kthread... no
checking for pthread link with -pthread... no
checking for pthread link with -pthreads... no
checking for pthread link with -mthreads... no
checking for pthread link with -thread... no
checking for pthread link with -lpthread -lmach -lexc -lc_r... no
checking for pthread link with -lpthread -lmach -lexc... no
checking for pthread link with -lpthread -Wl,-woff,85... no
checking for pthread link with -lpthread... no
checking for pthread link with -lc_r... no
checking for pthread link with -threads... no
checking for pthread link with -lpthreads -lmach -lexc -lc_r... no
checking for pthread link with -lpthreads -lmach -lexc... no
checking for pthread link with -lpthreads -lexc... no
checking for pthread link with -lpthreads... no
configure: error: could not locate usable POSIX Threads

'mbhè? Trova pthread.h ma non le librerie?
Credo che anche qui hai una libreria messa in chissà quale directory...

Psycotic
17-05-2004, 16:35
si credo anche io..
dici che devo aggiungere qalche path strano a LD_LIBRARY_PATH??????

ilsensine
17-05-2004, 16:41
Sei tu l'esperto di Solaris, non io ;) :D

Psycotic
17-05-2004, 16:56
l'unica cosa di cui sono esperto....
E' arrostire la salsiccia col vino sulla spiaggia del mio paese..

Psycotic
18-05-2004, 08:06
Niente alla fine nn ce l'ho fatta a risolvere il problema...
Se qualcuno ha qalcosa d'aggiungere....
Grazie cmq a tutti voi
:)