GithubHelp home page GithubHelp logo

c4droid-shell's Issues

Code uses libcurl,compile errors

After that I tried compiling sample curl code, its giving the following error. Please help.

/storage/.../../C4droid_EXT $ gcc -o connect simple_curl.c -lcurl -I include -L lib
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/4.9.1/../../../../arm-linux-androideabi/bin/ld: warning: libz.so, needed by lib/libcurl.so, not found (try using -rpath or -rpath-link)
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/4.9.1/../../../../arm-linux-androideabi/bin/ld: warning: libcrypto.so.5, needed by lib/libcurl.so, not found (try using -rpath or -rpath-link)
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/4.9.1/../../../../arm-linux-androideabi/bin/ld: warning: libssl.so.5, needed by lib/libcurl.so, not found (try using -rpath or -rpath-link)
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/4.9.1/../../../../arm-linux-androideabi/bin/ld: warning: libssh2.so.1, needed by lib/libcurl.so, not found (try using -rpath or -rpath-link)
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/arm-linux-androideabi/4.9.1/../../../../arm-linux-androideabi/bin/ld: warning: libm.so, needed by lib/libcurl.so, not found (try using -rpath or -rpath-link)
lib/libcurl.so: undefined reference to `RAND_load_file'
lib/libcurl.so: undefined reference to `UI_method_set_closer'
lib/libcurl.so: undefined reference to `libssh2_knownhost_free'
lib/libcurl.so: undefined reference to `libssh2_knownhost_add'
lib/libcurl.so: undefined reference to `SSL_CTX_use_certificate'
lib/libcurl.so: undefined reference to `UI_method_get_reader'
lib/libcurl.so: undefined reference to `X509_load_crl_file'
lib/libcurl.so: undefined reference to `ENGINE_load_private_key'
lib/libcurl.so: undefined reference to `libssh2_knownhost_writefile'
lib/libcurl.so: undefined reference to `libssh2_sftp_close_handle'
lib/libcurl.so: undefined reference to `SSL_set_fd'
lib/libcurl.so: undefined reference to `libssh2_session_free'
lib/libcurl.so: undefined reference to `SSL_set_connect_state'
lib/libcurl.so: undefined reference to `SSL_CTX_free'
lib/libcurl.so: undefined reference to `ENGINE_get_first'
lib/libcurl.so: undefined reference to `UI_method_set_opener'
lib/libcurl.so: undefined reference to `X509_free'
lib/libcurl.so: undefined reference to `SSL_shutdown'
lib/libcurl.so: undefined reference to `zlibVersion'
lib/libcurl.so: undefined reference to `ENGINE_finish'
lib/libcurl.so: undefined reference to `BN_bin2bn'
lib/libcurl.so: undefined reference to `SSL_CTX_callback_ctrl'
lib/libcurl.so: undefined reference to `libssh2_sftp_stat_ex'
lib/libcurl.so: undefined reference to `ERR_error_string_n'
lib/libcurl.so: undefined reference to `ENGINE_set_default'
lib/libcurl.so: undefined reference to `ENGINE_free'
lib/libcurl.so: undefined reference to `SSL_CTX_set_default_verify_paths'
lib/libcurl.so: undefined reference to `BN_CTX_new'
lib/libcurl.so: undefined reference to `BN_value_one'
lib/libcurl.so: undefined reference to `SSL_get_error'
lib/libcurl.so: undefined reference to `libssh2_scp_send64'
lib/libcurl.so: undefined reference to `DES_set_odd_parity'
lib/libcurl.so: undefined reference to `libssh2_sftp_write'
lib/libcurl.so: undefined reference to `inflate'
lib/libcurl.so: undefined reference to `BN_bn2bin'
lib/libcurl.so: undefined reference to `RAND_add'
lib/libcurl.so: undefined reference to `UI_method_get_opener'
lib/libcurl.so: undefined reference to `sk_num'
lib/libcurl.so: undefined reference to `SSL_get_session'
lib/libcurl.so: undefined reference to `SSL_peek'
lib/libcurl.so: undefined reference to `SSL_get_shutdown'
lib/libcurl.so: undefined reference to `HMAC_Final'
lib/libcurl.so: undefined reference to `SSL_read'
lib/libcurl.so: undefined reference to `HMAC_Init_ex'
lib/libcurl.so: undefined reference to `libssh2_sftp_mkdir_ex'
lib/libcurl.so: undefined reference to `SSL_new'
lib/libcurl.so: undefined reference to `SSL_CTX_new'
lib/libcurl.so: undefined reference to `libssh2_sftp_open_ex'
lib/libcurl.so: undefined reference to `libssh2_sftp_shutdown'
lib/libcurl.so: undefined reference to `ENGINE_ctrl_cmd'
lib/libcurl.so: undefined reference to `UI_OpenSSL'
lib/libcurl.so: undefined reference to `SSL_library_init'
lib/libcurl.so: undefined reference to `UI_set_result'
lib/libcurl.so: undefined reference to `ENGINE_cleanup'
lib/libcurl.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'
lib/libcurl.so: undefined reference to `SSL_CTX_set_default_passwd_cb'
lib/libcurl.so: undefined reference to `RC4_set_key'
lib/libcurl.so: undefined reference to `libssh2_session_startup'
lib/libcurl.so: undefined reference to `libssh2_session_block_directions'
lib/libcurl.so: undefined reference to `ERR_peek_error'
lib/libcurl.so: undefined reference to `libssh2_agent_userauth'
lib/libcurl.so: undefined reference to `libssh2_channel_send_eof'
lib/libcurl.so: undefined reference to `PKCS12_free'
lib/libcurl.so: undefined reference to `X509_get_pubkey'
lib/libcurl.so: undefined reference to `DH_generate_key'
lib/libcurl.so: undefined reference to `SSL_CTX_load_verify_locations'
lib/libcurl.so: undefined reference to `BN_mod_exp'
lib/libcurl.so: undefined reference to `BN_hex2bn'
lib/libcurl.so: undefined reference to `SSL_pending'
lib/libcurl.so: undefined reference to `sk_pop_free'
lib/libcurl.so: undefined reference to `SSL_CTX_set_verify'
lib/libcurl.so: undefined reference to `sk_pop'
lib/libcurl.so: undefined reference to `libssh2_session_last_errno'
lib/libcurl.so: undefined reference to `UI_get_input_flags'
lib/libcurl.so: undefined reference to `PKCS12_parse'
lib/libcurl.so: undefined reference to `BN_set_word'
lib/libcurl.so: undefined reference to `X509_verify_cert_error_string'
lib/libcurl.so: undefined reference to `BN_num_bits'
lib/libcurl.so: undefined reference to `SSL_get_privatekey'
lib/libcurl.so: undefined reference to `libssh2_session_last_error'
lib/libcurl.so: undefined reference to `libssh2_session_hostkey'
lib/libcurl.so: undefined reference to `ENGINE_load_builtin_engines'
lib/libcurl.so: undefined reference to `OpenSSL_add_all_digests'
lib/libcurl.so: undefined reference to `MD4_Update'
lib/libcurl.so: undefined reference to `BIO_free'
lib/libcurl.so: undefined reference to `inflateInit_'
lib/libcurl.so: undefined reference to `X509_NAME_print_ex'
lib/libcurl.so: undefined reference to `DH_new'
lib/libcurl.so: undefined reference to `SSLeay'
lib/libcurl.so: undefined reference to `RC4'
lib/libcurl.so: undefined reference to `libssh2_agent_free'
lib/libcurl.so: undefined reference to `DH_compute_key'
lib/libcurl.so: undefined reference to `BIO_ctrl'
lib/libcurl.so: undefined reference to `RAND_egd'
lib/libcurl.so: undefined reference to `libssh2_sftp_unlink_ex'
lib/libcurl.so: undefined reference to `SSL_CTX_set_srp_username'
lib/libcurl.so: undefined reference to `SSL_SESSION_free'
lib/libcurl.so: undefined reference to `CRYPTO_free'
lib/libcurl.so: undefined reference to `BN_sub_word'
lib/libcurl.so: undefined reference to `ENGINE_init'
lib/libcurl.so: undefined reference to `SSL_load_error_strings'
lib/libcurl.so: undefined reference to `SSL_get_certificate'
lib/libcurl.so: undefined reference to `RAND_file_name'
lib/libcurl.so: undefined reference to `i2t_ASN1_OBJECT'
lib/libcurl.so: undefined reference to `libssh2_agent_disconnect'
lib/libcurl.so: undefined reference to `ASN1_STRING_print'
lib/libcurl.so: undefined reference to `SSL_CTX_set_cipher_list'
lib/libcurl.so: undefined reference to `MD4_Final'
lib/libcurl.so: undefined reference to `libssh2_sftp_rename_ex'
lib/libcurl.so: undefined reference to `SSL_CIPHER_get_name'
lib/libcurl.so: undefined reference to `libssh2_userauth_password_ex'
lib/libcurl.so: undefined reference to `BIO_new'
lib/libcurl.so: undefined reference to `SSLv23_client_method'
lib/libcurl.so: undefined reference to `libssh2_sftp_symlink_ex'
lib/libcurl.so: undefined reference to `sk_value'
lib/libcurl.so: undefined reference to `X509_EXTENSION_get_critical'
lib/libcurl.so: undefined reference to `X509_NAME_get_index_by_NID'
lib/libcurl.so: undefined reference to `RAND_status'
lib/libcurl.so: undefined reference to `libssh2_sftp_read'
lib/libcurl.so: undefined reference to `CRYPTO_cleanup_all_ex_data'
lib/libcurl.so: undefined reference to `EVP_PKEY_copy_parameters'
lib/libcurl.so: undefined reference to `X509_get_subject_name'
lib/libcurl.so: undefined reference to `libssh2_channel_wait_eof'
lib/libcurl.so: undefined reference to `libssh2_hostkey_hash'
lib/libcurl.so: undefined reference to `ENGI

failed to copy

While i'm try to compile. It always said "failed to copy". Please check again.

How to install C4droid-Shell for noooobs (root required)

Here is the step-by-step procedure to install that worked for me:

  1. If you've been trying to install and been having problems and have rooted your device, uninstall and reinstall C4droid; if your device is not rooted - it won't work, you must have root. Also, do note that the only rooted device I have runs Android 4.4.2.
  2. Open C4droid and if you haven't already, go to menu | preferences | install GCC, and pick what you want but be sure to pick ' install examples to sdcard ' . Choose 'Internal memory' cause that's the only one that will work.
  3. Back out of preferences, and go to menu | open, or the open button, whichever your device shows
  4. Navigate to your SDcard's main folder, typically /storage/emulated/0. Then go into the C4droid_examples/Console/multifile folder.
  5. choose new git folder..., and enter the following git address in the resulting top line:
    https://github.com/fann95/C4droid-Shell.git
    then enter any name you want in the bottom line. Choose OK, and go get something to eat as it will take awhile.
  6. NOW continue with Step 1 of fann95's instructions. If at the end it says, 'copy failed', continue with fann95's step 2 anyway - I did, and it worked for me :)

Cannot compile on Note 4

Tried to compile as instructed on step 1. But the process fails with the following errors. Please help.

export PATH=/busybox-virtual:/data/data/com.n0n3m4.droidc/files/:/data/data/com.n0n3m4.droidc/files/gcc/bin:/data/data/com.n0n3m4.droidc/files/gcc/arm-linux-androideabi/bin/:$PATH
export CC="arm-linux-androideabi-gcc  -I/data/data/com.n0n3m4.droidc/files/gcc/arm-linux-androideabi/include/ncurses"
export CXX="arm-linux-androideabi-g++  -I/data/data/com.n0n3m4.droidc/files/gcc/arm-linux-androideabi/include/ncurses"
export SHELL="/data/data/com.n0n3m4.droidc/files/busybox sh"
cd "/storage/emulated/0/C4droid_examples/C4droid-Shell-master/"
make CC="$CC" CXX="$CXX" SHELL="$SHELL"
echo "errorcode:$?"
echo "exit""term"
exit
/ $ export PATH=/busybox-virtual:/data/data/com.n0n3m4.droidc/files/:/data/data/com.n0n3m4.droidc/files/gcc/bin:/data/data/com.n0n3m4.droidc/files/gcc/arm-linux-androideabi/bin/:$PATH
/ $ export CC="arm-linux-androideabi-gcc  -I/data/data/com.n0n3m4.droidc/files/gcc/arm-linux-androideabi/include/ncurses"
/ $ export CXX="arm-linux-androideabi-g++  -I/data/data/com.n0n3m4.droidc/files/gcc/arm-linux-androideabi/include/ncurses"
/ $ export SHELL="/data/data/com.n0n3m4.droidc/files/busybox sh"
/ $ cd "/storage/emulated/0/C4droid_examples/C4droid-Shell-master/"
/storage/emulated/0/C4droid_examples/C4droid-Shell-master $ make CC="$CC" CXX="$CXX" SHELL="$SHELL"
if ! [ -f /data/data/com.n0n3m4.droidc/`md5sum /storage/emulated/0/C4droid_examples/C4droid-Shell-master/Makefile | cut -d' ' -f1`.install ];then rm -rf /data/data/com.n0n3m4.droidc/usr /data/data/com.n0n3m4.droidc/tmp /mnt/sdcard/C4droid_EXT;find /data/data/com.n0n3m4.droidc -maxdepth 1 -type f -name *.install -exec rm -r {} \; && touch /data/data/com.n0n3m4.droidc/`md5sum /storage/emulated/0/C4droid_examples/C4droid-Shell-master/Makefile | cut -d' ' -f1`.install;fi;
sh: md5sum: Permission denied
sh: cut: Permission denied
sh: find: Permission denied
make: *** [clean_install] Error 127
/storage/emulated/0/C4droid_examples/C4droid-Shell-master $ echo "errorcode:$?"
errorcode:2
/storage/emulated/0/C4droid_examples/C4droid-Shell-master $ echo "exit""term"
exitterm

Compile seems to be missing readline and history

I am trying to compile C4droid-Shell on the latest version of c4droid on Android 4.4 but am running into not being able to find readline and history, is this a known issue?

Thanks:

/ $ export PATH=/data/local/bin:$PATH
/ $ export PATH=/busybox-virtual:/data/data/com.n0n3m4.droidc/files/:/data/data/com.n0n3m4.droidc/files/gcc/bin:/data/data/com.n0n3m4.droidc/files/gcc/i686-linux-android/bin/:$PATH
/ $ export CFLAGS="-Os -s "
/ $ export CXXFLAGS="-Os -s "
/ $ export SHELL="/data/data/com.n0n3m4.droidc/files/busybox sh"
/ $ export CONFIG_SHELL="sh"
/ $ export PKG_CONFIG_PATH=/data/data/com.n0n3m4.droidc/files/gcc/i686-linux-android/lib/pkgconfig
/ $ cd "/storage/emulated/0/Code/C4droid-Shell-master"
/storage/emulated/0/Code/C4droid-Shell-master $ make
if ! [ -f /data/data/com.n0n3m4.droidc/md5sum /storage/emulated/0/Code/C4droid-Shell-master/Makefile | cut -d' ' -f1.install ];then rm -rf /data/data/com.n0n3m4.droidc/usr /data/data/com.n0n3m4.droidc/tmp /mnt/sdcard/C4droid_EXT;find /data/data/com.n0n3m4.droidc -maxdepth 1 -type f -name .install -exec rm -r {} ; && touch /data/data/com.n0n3m4.droidc/md5sum /storage/emulated/0/Code/C4droid-Shell-master/Makefile | cut -d' ' -f1.install;fi;
if ! [ -f /mnt/sdcard/C4droid_EXT/lib/libreadline.a ]; then cd /mnt/sdcard && tar -mzxf /storage/emulated/0/Code/C4droid-Shell-master/App/libreadline6.3/C4droid_EXT.tar.gz;fi;
cc c4dsh.o -o c4dsh -L/mnt/sdcard/C4droid_EXT/lib -lreadline -lhistory -lncurses
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/i686-linux-android/4.9.1/../../../../i686-linux-android/bin/ld: skipping incompatible /mnt/sdcard/C4droid_EXT/lib/libreadline.a when searching for -lreadline
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/i686-linux-android/4.9.1/../../../../i686-linux-android/bin/ld: cannot find -lreadline
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/i686-linux-android/4.9.1/../../../../i686-linux-android/bin/ld: skipping incompatible /mnt/sdcard/C4droid_EXT/lib/libhistory.a when searching for -lhistory
/data/data/com.n0n3m4.droidc/files/gcc/bin/../lib/gcc/i686-linux-android/4.9.1/../../../../i686-linux-android/bin/ld: cannot find -lhistory
collect2: error: ld returned 1 exit status
make: *
* [c4dsh] Error 1
/storage/emulated/0/Code/C4droid-Shell-master $

Failed to copy

I'm still getting this error while trying to compile. I use HTC Droid DNA so i dont have an external sdcard. So the gcc has already installed on internal sdcard. But i got C4Droid_EXT dir in internal sdcard after compile makefile. And could you please provide some samples? To make sure we are got some problem or not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.