Instalando o WhatsApp no computador

Publicado por maxshu (última atualização em 24/10/2014)

[ Hits: 24.634 ]

Homepage: programacaocomputador.blogspot.com.br

Download zapzap.zip




Resolvi escrever um script para automatização da instalação do WhatsApp no Debian/Ubuntu. Neste script as linhas de comando não foram criadas por mim.

Quem for executar o script deve baixar o arquivo "zip", descompactar e executar o arquivo "whattsapp.sh" dentro da pasta que estão os arquivos.

$ sudo ./whattsapp.sh

Fonte:

http://www.sempreupdate.com.br/2014/04/como-configurar-e-usar-o-whatsapp-no.html

  



Esconder código-fonte

#!/bin/bash
#+-----------------------------------+
#| Autor: Francisco Iago Lira Passos |
#| Data: 23 de outubro de 2014        |
#| S.O.: Debian/Ubuntu...        |
#+-----------------------------------+

#Adicionando os pacotes necessários
read -p 'Os seguintes arquivos ja estÃo instalados? (sim(1)/nao(0))' sn
echo 'git pidgin python2.7 python-dateutil python-argparse libglib2.0.0 libglib2.0-dev libpurple-dev git g++'
if [[ $sn==0 ]]; then
apt-get update
apt-get install git pidgin python2.7 python-dateutil python-argparse libglib2.0.0 libglib2.0-dev libpurple-dev git g++
apt-get upgrade
fi
echo ""
#baixando outros arquivos
git clone https://github.com/davidgfnet/whatsapp-purple
git clone https://github.com/tgalal/yowsup

#Entrando no diretório
cd whatsapp-purple

#compilando
make
cp -rf libwhatsapp.so /usr/lib/pidgin/

#Saindo
cd ..
chmod 777 yowsup/src/yowsup-cli

#Automatizando
read -p 'Digite o código do país:' cc 
read -p 'Digite o código+DDD+numero(Ex: 558694896734):' phone
read -p 'Digite o IMEI do celular:' imei
read -p 'Digite uma senha(opcional):' passwd

echo ""

echo "" > whatsapp_config.txt
echo 'cc='$cc > whatsapp_config.txt
echo 'phone='$phone >> whatsapp_config.txt
echo 'id='$imei >> whatsapp_config.txt #imei
echo 'passwd='$passwd >> whatsapp_config.txt #passwd

mv whatsapp_config.txt yowsup/src/

#Entrando no diretório
cd yowsup/src/ 
./yowsup-cli -c whatsapp_config.txt --requestcode sms

#Finalizando
read -p 'Digite o código recebido:' cod
./yowsup-cli -c whatsapp_config.txt --register $cod

Scripts recomendados

Monitorar status de transferência das interfaces de rede

TCPDump do Dia

Bloqueia MAC Adress salvos na lista

Adicionar máquinas em lote no SAMBA

Configuração de failover de links de internet


  

Comentários
[1] Comentário enviado por Thihup em 24/10/2014 - 08:43h

Amigo , seu script está bom , mas já encontrei um com apenas 3 linhas e funcionou também (era uma ppa)

E uma coisa , acho que vc não deveria pedir p/ o usuario se ele já tem esses aplicativos e apenas informar que irá instalar (sugestão minha).

Proximo passo : Interface grafica

[]'s

T+

[2] Comentário enviado por schrodinger em 24/10/2014 - 23:28h

rsrsrs vdd Thihup, mas neste este script esqueci de comentar algumas linhas, mas é só comentar as linhas...

[3] Comentário enviado por schrodinger em 24/10/2014 - 23:34h

Usar o whattsapp no linux com interface gráfica eu recomendo usar o genymotion. O genymotion é emulador de android excelente, inclusive eu uso ele...

[4] Comentário enviado por Thihup em 25/10/2014 - 10:51h


[3] Comentário enviado por iagolira em 24/10/2014 - 23:34h:

Usar o whattsapp no linux com interface gráfica eu recomendo usar o genymotion. O genymotion é emulador de android excelente, inclusive eu uso ele...


Eu to falando interface grafica p/ Shell , criar um instalador + bonito , entendes?

[]'s

T+

[5] Comentário enviado por schrodinger em 25/10/2014 - 23:25h

rsrsrs... Eu sou do tipo q não gosta de interface gráfica... prefiro texto puro...

[6] Comentário enviado por marcio035 em 05/12/2014 - 18:22h

Cara executei o script mais ele deu erro não achou o diretório "chmod: cannot access `yowsup/src/yowsup-cli': No such file or directory" , "mv: cannot move `whatsapp_config.txt' to `yowsup/src/': Not a directory", "./marcio.sh: line 49: cd: yowsup/src/: No such file or directory". vir que no arquivo que foi feito download não tem src nem no site https://github.com/tgalal/yowsup. O que devo fazer ?

[7] Comentário enviado por souzarte em 01/01/2015 - 18:23h

Olha só, comigo também está ocorrendo o mesmo erro acima, ou seja, a pasta "SRC" não é criada / clonada quando é baixada / clonada do git utilizando o seguinte comando; "git clone https://github.com/tgalal/yowsup.git", logo quado se tenta aplicar a permissão de execução ("chmod +x yowsup/src/yowsup-cli") é mostrada uma mensagem informando que este diretório ("SRC") não existe ou não é válido.
Alguém pode me dizer o que ocorreu de errado, pois estava seguindo este tutorial http://blog.desdelinux.net/como-usar-whatsapp-en-linux-con-pidgin/ , o que resumidamente o script faz, porém me esbarro neste erro.
Quero e preciso muito utilizar o WhatssApp no micro, pois ainda não tenho um Smartphone e sei que há outras opções como o Genymotion, porém ele consume muita memória, para quem tem um dual core e 4gb memória fica complicado utilizá-lo, acredito que utilizando o Pidgin, este consuma menos memória, me permitindo trabalhar no micro sem muitos travamentos.

Obrigado à todos que poderem ajudar de alguma forma.

[8] Comentário enviado por baixarwhatsapp em 06/04/2015 - 20:15h

o script me deu erro, mas troquei um parâmetro e eu trabalhei sem problemas
eu começo a usar o whatsapp sem problemas.
muito obrigado por essa contribuição
http://www.whatsappear.com.br

[9] Comentário enviado por pablovaldivia em 18/06/2015 - 14:03h

eu ja falei sobre isto, o melhor é baixar bluestacks e instalar o whatsapp no emulador
http://www.baixarwhatsapp.com.br

[10] Comentário enviado por illuminarch em 20/11/2015 - 21:21h


Prezados, o link acima do SempreUPdate foi alterado para http://sempreupdate.org/gnulinux/2014/como-configurar-e-usar-o-whatsapp-no-pidgin-confira-e-veja-o-n...

Obrigado desde já.

[11] Comentário enviado por crfjunior em 25/08/2016 - 15:54h

Parabens muito bem bolado o script...
Amigo segui os passos, mas na hora da compilação ta dando um erro... vc pode me ajudar:
root@SRV-:/opt# cd whatsapp-purple
root@SRV-:/opt/whatsapp-purple# make
make[1]: Entering directory `/opt/whatsapp-purple/libaxolotl-cpp/libcurve25519'
gcc -o src/curve25519-donna.o -c src/curve25519-donna.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_neg.o -c src/ed25519/fe_neg.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p1p1_to_p2.o -c src/ed25519/ge_p1p1_to_p2.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_cmov.o -c src/ed25519/fe_cmov.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_dbl.o -c src/ed25519/ge_p3_dbl.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_0.o -c src/ed25519/ge_p3_0.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_pow22523.o -c src/ed25519/fe_pow22523.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_copy.o -c src/ed25519/fe_copy.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_msub.o -c src/ed25519/ge_msub.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_1.o -c src/ed25519/fe_1.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_frombytes.o -c src/ed25519/fe_frombytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_sub.o -c src/ed25519/ge_sub.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_tobytes.o -c src/ed25519/ge_tobytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_add.o -c src/ed25519/ge_add.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/open.o -c src/ed25519/open.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p1p1_to_p3.o -c src/ed25519/ge_p1p1_to_p3.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_invert.o -c src/ed25519/fe_invert.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_add.o -c src/ed25519/fe_add.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_mul.o -c src/ed25519/fe_mul.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/sc_muladd.o -c src/ed25519/sc_muladd.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_frombytes.o -c src/ed25519/ge_frombytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_sub.o -c src/ed25519/fe_sub.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_to_cached.o -c src/ed25519/ge_p3_to_cached.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p2_dbl.o -c src/ed25519/ge_p2_dbl.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_scalarmult_base.o -c src/ed25519/ge_scalarmult_base.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_madd.o -c src/ed25519/ge_madd.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_sq2.o -c src/ed25519/fe_sq2.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/additions/sign_modified.o -c src/ed25519/additions/sign_modified.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/additions/zeroize.o -c src/ed25519/additions/zeroize.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/additions/compare.o -c src/ed25519/additions/compare.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/additions/curve_sigs.o -c src/ed25519/additions/curve_sigs.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
src/ed25519/additions/curve_sigs.c: In function âcurve25519_signâ:
src/ed25519/additions/curve_sigs.c:46:3: warning: implicit declaration of function âmallocâ [-Wimplicit-function-declaration]
if ((sigbuf = malloc(msg_len + 128)) == 0) {
^
src/ed25519/additions/curve_sigs.c:46:17: warning: incompatible implicit declaration of built-in function âmallocâ [enabled by default]
if ((sigbuf = malloc(msg_len + 128)) == 0) {
^
src/ed25519/additions/curve_sigs.c:65:4: warning: implicit declaration of function âfreeâ [-Wimplicit-function-declaration]
free(sigbuf);
^
src/ed25519/additions/curve_sigs.c:65:4: warning: incompatible implicit declaration of built-in function âfreeâ [enabled by default]
src/ed25519/additions/curve_sigs.c: In function âcurve25519_verifyâ:
src/ed25519/additions/curve_sigs.c:82:20: warning: incompatible implicit declaration of built-in function âmallocâ [enabled by default]
if ((verifybuf = malloc(msg_len + 64)) == 0) {
^
src/ed25519/additions/curve_sigs.c:87:21: warning: incompatible implicit declaration of built-in function âmallocâ [enabled by default]
if ((verifybuf2 = malloc(msg_len + 64)) == 0) {
^
src/ed25519/additions/curve_sigs.c:129:5: warning: incompatible implicit declaration of built-in function âfreeâ [enabled by default]
free(verifybuf);
^
src/ed25519/additions/curve_sigs.c:133:5: warning: incompatible implicit declaration of built-in function âfreeâ [enabled by default]
free(verifybuf2);
^
gcc -o src/ed25519/fe_tobytes.o -c src/ed25519/fe_tobytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_precomp_0.o -c src/ed25519/ge_precomp_0.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_isnonzero.o -c src/ed25519/fe_isnonzero.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p2_0.o -c src/ed25519/ge_p2_0.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_isnegative.o -c src/ed25519/fe_isnegative.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/nacl_sha512/blocks.o -c src/ed25519/nacl_sha512/blocks.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/nacl_sha512/hash.o -c src/ed25519/nacl_sha512/hash.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_0.o -c src/ed25519/fe_0.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_tobytes.o -c src/ed25519/ge_p3_tobytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/sign.o -c src/ed25519/sign.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_double_scalarmult.o -c src/ed25519/ge_double_scalarmult.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/sc_reduce.o -c src/ed25519/sc_reduce.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_to_p2.o -c src/ed25519/ge_p3_to_p2.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_sq.o -c src/ed25519/fe_sq.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
g++ -o curve.o -c curve.cpp -DLIBCURVE25519_LIBRARY -O2 -fPIC
ar rcs libcurve25519.a src/curve25519-donna.o src/ed25519/fe_neg.o src/ed25519/ge_p1p1_to_p2.o src/ed25519/fe_cmov.o src/ed25519/ge_p3_dbl.o src/ed25519/ge_p3_0.o src/ed25519/fe_pow22523.o src/ed25519/fe_copy.o src/ed25519/ge_msub.o src/ed25519/fe_1.o src/ed25519/fe_frombytes.o src/ed25519/ge_sub.o src/ed25519/ge_tobytes.o src/ed25519/ge_add.o src/ed25519/open.o src/ed25519/ge_p1p1_to_p3.o src/ed25519/fe_invert.o src/ed25519/fe_add.o src/ed25519/fe_mul.o src/ed25519/sc_muladd.o src/ed25519/ge_frombytes.o src/ed25519/fe_sub.o src/ed25519/ge_p3_to_cached.o src/ed25519/ge_p2_dbl.o src/ed25519/ge_scalarmult_base.o src/ed25519/ge_madd.o src/ed25519/fe_sq2.o src/ed25519/additions/sign_modified.o src/ed25519/additions/zeroize.o src/ed25519/additions/compare.o src/ed25519/additions/curve_sigs.o src/ed25519/fe_tobytes.o src/ed25519/ge_precomp_0.o src/ed25519/fe_isnonzero.o src/ed25519/ge_p2_0.o src/ed25519/fe_isnegative.o src/ed25519/nacl_sha512/blocks.o src/ed25519/nacl_sha512/hash.o src/ed25519/fe_0.o src/ed25519/ge_p3_tobytes.o src/ed25519/sign.o src/ed25519/ge_double_scalarmult.o src/ed25519/sc_reduce.o src/ed25519/ge_p3_to_p2.o src/ed25519/fe_sq.o curve.o
make[1]: Leaving directory `/opt/whatsapp-purple/libaxolotl-cpp/libcurve25519'
make -C libaxolotl-cpp
make[1]: Entering directory `/opt/whatsapp-purple/libaxolotl-cpp'
protoc --cpp_out=state protobuf/LocalStorageProtocol.proto
make[1]: protoc: Command not found
make[1]: *** [state/LocalStorageProtocol.pb.h] Error 127
make[1]: Leaving directory `/opt/whatsapp-purple/libaxolotl-cpp'
make: *** [libaxolotl-cpp/libaxolotl.a] Error 2

[12] Comentário enviado por schrodinger em 22/11/2016 - 21:14h


[11] Comentário enviado por crfjunior em 25/08/2016 - 15:54h

Parabens muito bem bolado o script...
Amigo segui os passos, mas na hora da compilação ta dando um erro... vc pode me ajudar:
root@SRV-:/opt# cd whatsapp-purple
root@SRV-:/opt/whatsapp-purple# make
make[1]: Entering directory `/opt/whatsapp-purple/libaxolotl-cpp/libcurve25519'
gcc -o src/curve25519-donna.o -c src/curve25519-donna.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_neg.o -c src/ed25519/fe_neg.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p1p1_to_p2.o -c src/ed25519/ge_p1p1_to_p2.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_cmov.o -c src/ed25519/fe_cmov.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_dbl.o -c src/ed25519/ge_p3_dbl.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_0.o -c src/ed25519/ge_p3_0.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_pow22523.o -c src/ed25519/fe_pow22523.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_copy.o -c src/ed25519/fe_copy.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_msub.o -c src/ed25519/ge_msub.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_1.o -c src/ed25519/fe_1.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_frombytes.o -c src/ed25519/fe_frombytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_sub.o -c src/ed25519/ge_sub.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_tobytes.o -c src/ed25519/ge_tobytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_add.o -c src/ed25519/ge_add.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/open.o -c src/ed25519/open.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p1p1_to_p3.o -c src/ed25519/ge_p1p1_to_p3.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_invert.o -c src/ed25519/fe_invert.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_add.o -c src/ed25519/fe_add.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_mul.o -c src/ed25519/fe_mul.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/sc_muladd.o -c src/ed25519/sc_muladd.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_frombytes.o -c src/ed25519/ge_frombytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_sub.o -c src/ed25519/fe_sub.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_to_cached.o -c src/ed25519/ge_p3_to_cached.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p2_dbl.o -c src/ed25519/ge_p2_dbl.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_scalarmult_base.o -c src/ed25519/ge_scalarmult_base.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_madd.o -c src/ed25519/ge_madd.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_sq2.o -c src/ed25519/fe_sq2.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/additions/sign_modified.o -c src/ed25519/additions/sign_modified.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/additions/zeroize.o -c src/ed25519/additions/zeroize.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/additions/compare.o -c src/ed25519/additions/compare.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/additions/curve_sigs.o -c src/ed25519/additions/curve_sigs.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
src/ed25519/additions/curve_sigs.c: In function âcurve25519_signâ:
src/ed25519/additions/curve_sigs.c:46:3: warning: implicit declaration of function âmallocâ [-Wimplicit-function-declaration]
if ((sigbuf = malloc(msg_len + 128)) == 0) {
^
src/ed25519/additions/curve_sigs.c:46:17: warning: incompatible implicit declaration of built-in function âmallocâ [enabled by default]
if ((sigbuf = malloc(msg_len + 128)) == 0) {
^
src/ed25519/additions/curve_sigs.c:65:4: warning: implicit declaration of function âfreeâ [-Wimplicit-function-declaration]
free(sigbuf);
^
src/ed25519/additions/curve_sigs.c:65:4: warning: incompatible implicit declaration of built-in function âfreeâ [enabled by default]
src/ed25519/additions/curve_sigs.c: In function âcurve25519_verifyâ:
src/ed25519/additions/curve_sigs.c:82:20: warning: incompatible implicit declaration of built-in function âmallocâ [enabled by default]
if ((verifybuf = malloc(msg_len + 64)) == 0) {
^
src/ed25519/additions/curve_sigs.c:87:21: warning: incompatible implicit declaration of built-in function âmallocâ [enabled by default]
if ((verifybuf2 = malloc(msg_len + 64)) == 0) {
^
src/ed25519/additions/curve_sigs.c:129:5: warning: incompatible implicit declaration of built-in function âfreeâ [enabled by default]
free(verifybuf);
^
src/ed25519/additions/curve_sigs.c:133:5: warning: incompatible implicit declaration of built-in function âfreeâ [enabled by default]
free(verifybuf2);
^
gcc -o src/ed25519/fe_tobytes.o -c src/ed25519/fe_tobytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_precomp_0.o -c src/ed25519/ge_precomp_0.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_isnonzero.o -c src/ed25519/fe_isnonzero.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p2_0.o -c src/ed25519/ge_p2_0.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_isnegative.o -c src/ed25519/fe_isnegative.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/nacl_sha512/blocks.o -c src/ed25519/nacl_sha512/blocks.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/nacl_sha512/hash.o -c src/ed25519/nacl_sha512/hash.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_0.o -c src/ed25519/fe_0.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_tobytes.o -c src/ed25519/ge_p3_tobytes.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/sign.o -c src/ed25519/sign.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_double_scalarmult.o -c src/ed25519/ge_double_scalarmult.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/sc_reduce.o -c src/ed25519/sc_reduce.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/ge_p3_to_p2.o -c src/ed25519/ge_p3_to_p2.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
gcc -o src/ed25519/fe_sq.o -c src/ed25519/fe_sq.c -DLIBCURVE25519_LIBRARY -O2 -fPIC -std=c99
g++ -o curve.o -c curve.cpp -DLIBCURVE25519_LIBRARY -O2 -fPIC
ar rcs libcurve25519.a src/curve25519-donna.o src/ed25519/fe_neg.o src/ed25519/ge_p1p1_to_p2.o src/ed25519/fe_cmov.o src/ed25519/ge_p3_dbl.o src/ed25519/ge_p3_0.o src/ed25519/fe_pow22523.o src/ed25519/fe_copy.o src/ed25519/ge_msub.o src/ed25519/fe_1.o src/ed25519/fe_frombytes.o src/ed25519/ge_sub.o src/ed25519/ge_tobytes.o src/ed25519/ge_add.o src/ed25519/open.o src/ed25519/ge_p1p1_to_p3.o src/ed25519/fe_invert.o src/ed25519/fe_add.o src/ed25519/fe_mul.o src/ed25519/sc_muladd.o src/ed25519/ge_frombytes.o src/ed25519/fe_sub.o src/ed25519/ge_p3_to_cached.o src/ed25519/ge_p2_dbl.o src/ed25519/ge_scalarmult_base.o src/ed25519/ge_madd.o src/ed25519/fe_sq2.o src/ed25519/additions/sign_modified.o src/ed25519/additions/zeroize.o src/ed25519/additions/compare.o src/ed25519/additions/curve_sigs.o src/ed25519/fe_tobytes.o src/ed25519/ge_precomp_0.o src/ed25519/fe_isnonzero.o src/ed25519/ge_p2_0.o src/ed25519/fe_isnegative.o src/ed25519/nacl_sha512/blocks.o src/ed25519/nacl_sha512/hash.o src/ed25519/fe_0.o src/ed25519/ge_p3_tobytes.o src/ed25519/sign.o src/ed25519/ge_double_scalarmult.o src/ed25519/sc_reduce.o src/ed25519/ge_p3_to_p2.o src/ed25519/fe_sq.o curve.o
make[1]: Leaving directory `/opt/whatsapp-purple/libaxolotl-cpp/libcurve25519'
make -C libaxolotl-cpp
make[1]: Entering directory `/opt/whatsapp-purple/libaxolotl-cpp'
protoc --cpp_out=state protobuf/LocalStorageProtocol.proto
make[1]: protoc: Command not found
make[1]: *** [state/LocalStorageProtocol.pb.h] Error 127
make[1]: Leaving directory `/opt/whatsapp-purple/libaxolotl-cpp'
make: *** [libaxolotl-cpp/libaxolotl.a] Error 2


Já existe um novo script, pois o aplicativo foi atualizado junto com o whatsapp.


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts