adri3d
(usa Arch Linux)
Enviado em 11/11/2011 - 13:09h
falha minha sobre o 64, na verdade só deu um alerta na compilação, achei que tivesse dado erro
adriano@desktop:~/temp/shc-3.8.7$ make
cc -Wall -O6 shc.c -o shc
*** �Do you want to probe shc with a test script?
*** Please try... make test
adriano@desktop:~/temp/shc-3.8.7$ make test
*** Compiling script "match"
CFLAGS="-Wall -O6 " ./shc -v -f match
shc: WARNING!!
Scripts of length near to (or higher than) the current System limit on
"maximum size of arguments to EXEC", could comprise its binary execution.
In the current System the call sysconf(_SC_ARG_MAX) returns -1 bytes
and your script "match" is 336 bytes length.
shc shll=sh
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc -Wall -O6 match.x.c -o match.x
shc: strip match.x
shc: chmod go-r match.x
*** Running a compiled test script!
*** It must show files with substring "sh" in your PATH...
./match.x sh
./match.x: Operation not permitted
make: *** [make_the_test] Morto
e na hora de usar ocore o mesmo erro do colega lucasdona
adriano@desktop:~$ temp/shc-3.8.7/shc -rvf /home/adriano/01.sh
shc shll=bash
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc /home/adriano/01.sh.x.c -o /home/adriano/01.sh.x
shc: strip /home/adriano/01.sh.x
shc: chmod go-r /home/adriano/01.sh.x
adriano@desktop:~$ ./01.sh.x
./01.sh.x: Operation not permitted
Morto
compilar o 01.sh.x.c manualmente tambem não resolveu
o meu script é
#!/bin/bash
#01.sh
echo "aki"