Bonjour à tous
J'ai un soucis sur un des serveurs de mon boulot. Je n'arrive pas a instalel la commande SUDO.
Nous avons un serveur de TEST ou j'ai réussi sans problème a l'installer à partir des sources.
Donc ./configure, make et make install -> NIKEL !
Les serveurs de tests et d'exploitations sont identique hardwarement :
bash-2.03# uname -a
SunOS ************ 5.8 Generic_117350-41 sun4us sparc **********
Ils sont sous solaris 9.
Le truc, c'est que sur le serveur d'exploitation, le gcc n'est pas installé pour des raisons de sécurités...
Bon passons sur les principes, j'ai voulu installer le gcc a partir des sources : il plante car il ne trouve pas le compilateur gcc
Je l'ai installé en package,(trouvé sur http://www.sunfreeware.com/) c'est passé. Le truc, c'est qu'il s'installe ds /usr/local
Tentative de compilation de SUDO : Donc le ./configure me disait : aucun compilateur C trouvé ds le path... (Au faite, je ne DOIS pas modifer le $PATH)
Alors j'ai fait ca : ./configure --with-libpath='/usr/local/lib/' --with-incpath='/usr/local/bin/' --with-libraries='/usr/local/lib/' CC='/usr/local/bin/gcc'
et c'est passé
Alors je lance le make : bash: make: command not found
J'install le make grace au package(toujour http://www.sunfreeware.com/) et donc lance le make:
bash-2.03# /usr/local/bin/make
/usr/local/bin/gcc -c -I. -I. -I/usr/local/bin/ -D__EXTENSIONS__ -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440 check.c
In file included from sudo.h:28,
from check.c:60:
compat.h:173:1: warning: "SA_ONSTACK" redefined
In file included from /usr/include/signal.h:27,
from check.c:55:
/usr/include/sys/signal.h:125:1: warning: this is the location of the previous definition
In file included from sudo.h:28,
from check.c:60:
compat.h:174:1: warning: "SA_RESTART" redefined
In file included from /usr/include/signal.h:27,
from check.c:55:
/usr/include/sys/signal.h:127:1: warning: this is the location of the previous definition
In file included from sudo.h:28,
from check.c:60:
compat.h:175:1: warning: "SA_RESETHAND" redefined
In file included from /usr/include/signal.h:27,
from check.c:55:
/usr/include/sys/signal.h:126:1: warning: this is the location of the previous definition
In file included from sudo.h:28,
from check.c:60:
compat.h:176:1: warning: "sa_handler" redefined
In file included from /usr/include/signal.h:27,
from check.c:55:
/usr/include/sys/signal.h:95:1: warning: this is the location of the previous definition
In file included from sudo.h:28,
from check.c:60:
compat.h:180: error: conflicting types for 'sigset_t'
/usr/include/sys/signal.h:44: error: previous declaration of 'sigset_t' was here
compat.h:181: error: conflicting types for 'sigaction'
/usr/include/signal.h:58: error: previous declaration of 'sigaction' was here
compat.h:181: error: conflicting types for 'sigaction'
/usr/include/signal.h:58: error: previous declaration of 'sigaction' was here
compat.h:182: error: conflicting types for 'sigemptyset'
/usr/include/signal.h:62: error: previous declaration of 'sigemptyset' was here
compat.h:182: error: conflicting types for 'sigemptyset'
/usr/include/signal.h:62: error: previous declaration of 'sigemptyset' was here
compat.h:183: error: conflicting types for 'sigfillset'
/usr/include/signal.h:63: error: previous declaration of 'sigfillset' was here
compat.h:183: error: conflicting types for 'sigfillset'
/usr/include/signal.h:63: error: previous declaration of 'sigfillset' was here
compat.h:184: error: conflicting types for 'sigaddset'
/usr/include/signal.h:60: error: previous declaration of 'sigaddset' was here
compat.h:184: error: conflicting types for 'sigaddset'
/usr/include/signal.h:60: error: previous declaration of 'sigaddset' was here
compat.h:185: error: conflicting types for 'sigdelset'
/usr/include/signal.h:61: error: previous declaration of 'sigdelset' was here
compat.h:185: error: conflicting types for 'sigdelset'
/usr/include/signal.h:61: error: previous declaration of 'sigdelset' was here
compat.h:186: error: conflicting types for 'sigismember'
/usr/include/signal.h:64: error: previous declaration of 'sigismember' was here
compat.h:186: error: conflicting types for 'sigismember'
/usr/include/signal.h:64: error: previous declaration of 'sigismember' was here
compat.h:187: error: conflicting types for 'sigprocmask'
/usr/include/signal.h:67: error: previous declaration of 'sigprocmask' was here
compat.h:187: error: conflicting types for 'sigprocmask'
/usr/include/signal.h:67: error: previous declaration of 'sigprocmask' was here
make: *** [check.o] Error 1
Alors la je crac
Mais toujour sur le site http://www.sunfreeware.com/, je vois un package : sudo-1.6.8p9-sol9-sparc-local.gz !!! huhu ^^
Alors je l'install, et je le lance :
bash-2.03# /usr/local/bin/sudo
ld.so.1: sudo: fatal: relocation error: file /usr/local/bin/sudo: symbol closefrom: referenced symbol not found
Killed
pour info :
bash-2.03# find / -name ld.so.1
/usr/lib/sparcv9/ld.so.1
/usr/lib/ld.so.1
/usr/local/lib/ld.so.1
Une idée ?
Merci
Message édité par jesusdebethune le 11-01-2007 à 12:12:55