#26 Le 27/08/2011, à 20:52
- sputnick
Re : [Résolu] /usr/bin/rsync: No such file or directory en tant que root
Essaye de compiler en statique la version recente comme le vieux rsync que tu a trouvé :
CFLAGS=-static ./configure --host=arm-linux --build=i386-pc-linux-gnu CC=arm-linux-gcc
CFLAGS=-static make
(...)
de cette façon, les librairies au lieu d’être partagées sont incorporées dans l’exécutable.
On ne peut pas mettre d'array dans un string!
https://sputnick.fr/
Hors ligne
#27 Le 28/08/2011, à 14:53
- TryphonCosinus
Re : [Résolu] /usr/bin/rsync: No such file or directory en tant que root
Voilà ce que ça me donne:
Depuis le PC Ubuntu:
# CFLAGS=-static ./configure --host=arm-linux --build=i386-pc-linux-gnu CC=arm-linux-gnueabi-gcc
...
rsync 3.0.8 configuration successful
# CFLAGS=-static make
uidlist.o: In function `gid_to_name':
uidlist.c:(.text+0x106): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
util.o: In function `name_to_gid':
util.c:(.text+0xe98): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
util.o: In function `name_to_uid':
util.c:(.text+0xe50): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
uidlist.o: In function `uid_to_name':
uidlist.c:(.text+0xd2): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
socket.o: In function `try_bind_local':
socket.c:(.text+0x444): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
syscall.o: In function `do_mkstemp':
syscall.c:(.text+0x62c): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
Après transfert du programme rsync sur le NAS Intel (ARM):
# rsync --help
Illegal instruction (core dumped)
Comme tu peux le remarquer, j'utilise arm-linux-gnueabi-gcc. On dirait qu'il me manque des éléments pour réussir la commande CFLAGS=-static make.
Asus P7P55D EVO, quadcore i7 2,8 GHz, Gainward Radeon HD4870, Samsung T240HD sur DisplayPort, TV Plasma Samsung sur HDMI, NAS QNAP TS-559
Hors ligne
#28 Le 28/08/2011, à 15:56
- sputnick
Re : [Résolu] /usr/bin/rsync: No such file or directory en tant que root
recherche sur google "in statically linked applications requires at runtime the shared libraries from the glibc version used for linking" ca te donnera surement des pistes
On ne peut pas mettre d'array dans un string!
https://sputnick.fr/
Hors ligne
#29 Le 29/08/2011, à 01:32
- TryphonCosinus
Re : [Résolu] /usr/bin/rsync: No such file or directory en tant que root
Merci, j'ai lu ça et là quelques pistes. C'est un autre univers à apprendre. Je vais en rester là pour ce sujet.
Merci pour l'aide de tout le monde.
Asus P7P55D EVO, quadcore i7 2,8 GHz, Gainward Radeon HD4870, Samsung T240HD sur DisplayPort, TV Plasma Samsung sur HDMI, NAS QNAP TS-559
Hors ligne