Web server for Android
Hallo, this is a real web server like most real unix web servers. Web server contain Apache2 2.4.6, PHP 5.5.1, Mysql 5.1.* , Perl 5.16.3, bind-9.4.1, expat-2.1.0, fontconfig-2.10.2, freetype-2.5.0.1, gettext-0.18.3, gmp-5.1.2, imap-2007f, inadyn, jpeg-8d, libgd-2.1.0, libiconv-1.14, libmbfl-1.2.0, libmcrypt-2.5.8, libpng-1.6.3, libxml, mhash-0.9.9.9, ncurses-5.7, Openssl 1.0.1e, pcre-8.33, readline-6.2, termcap-1.3.1, tiff-4.0.3, zlib.
Everything is compiled from source code using Android NDK for platform 14, gcc version 4.6 + PHP compiled with Crystax toolchain.
Download link - Alpha 1:
- http://d-h.st/5hc
Download link - Alpha 2:
- http://d-h.st/LAa
Download final version:
- http://d-h.st/Att
Guide for installation is here -> http://forum.xda-developers.com/showpost.php?p=44346524&postcount=74!
great idea munjeni like always This is really needed
Munjeni Miss u so much
Thanks a lot!!
Another awesome work by you munjeni as always... Please let us know what we can do to help....
Sent from my MT27i using Tapatalk 4 Beta
Alpha build is out! Curently only Apache Mysql and OpenSSL is compiled + static libraries needed for compilation...etc, will try to improve these things and make Androidserver full working. Allso will compile PHP and Perl soon + Apache modules mod: PHP, Mysql...etc.
--prefix is "/androidserver" so you need to extract them in "/" or your choice with making symlinkings, PATH, LD LIBRARY PATH...etc
You need allso to make /bin dir and symlink /system/bin/sh to the /bin/sh to get scripts working because all scripts have "#!/bin/sh" ... Enjoy!
If you make something configured and working go here and write your things...!
Progress: Apache is working now, new version soon (after holiday) with PHP (working hard to get them compiled with all modules needed for Apache)
Unable to compile Perl, hope will get them "static" in Debian runing on my phone...
Perl sucesfully compiled
/data/androidserver/bin # ./perl -V
./perl -V
Summary of my perl5 (revision undef version 16 subversion 3) configuration:
Platform:
osname=linux, osvers=current, archname=arm-androideabi
uname='arm-linux-androideabi'
config_args='--target=arm-linux-androideabi --sysroot=/root/Downloads/androi
d-ndk-r8e/platforms/android-14/arch-arm --prefix=/androidserver --disable-mod=ex
t/Errno --keeplog --mode=target --target=arm-linux-androideabi --targetarch=arm-
linux-androideabi'
hint=default, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='arm-linux-androideabi-gcc', ccflags ='--sysroot=/root/Downloads/android-
ndk-r8e/platforms/android-14/arch-arm ',
optimize='',
cppflags=''
ccversion='', gccversion='4.6 20120106 (prerelease)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize
=4
alignbytes=8, prototype=define
Linker and Libraries:
ld='arm-linux-androideabi-gcc', ldflags ='--sysroot=/root/Downloads/android-
ndk-r8e/platforms/android-14/arch-arm '
libpth=/lib /usr/lib /usr/local/lib
libs= -lm -ldl -lc
perllibs=-lm -ldl
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared '
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_LARGE_FILES
USE_LOCALE USE_PERLIO USE_PERL_ATOF
Built under linux
Compiled at Jul 16 2013 14:12:24
@INC:
/androidserver/lib/perl5/site_perl/5.16.3/arm-androideabi
/androidserver/lib/perl5/site_perl/5.16.3
/androidserver/lib/perl5/5.16.3/arm-androideabi
/androidserver/lib/perl5
.
/data/androidserver/bin #
Click to expand...
Click to collapse
Bye, will continue after 10 days...:good:
happy holidays master munjeni
Master we missed you a lot and in frustration I stopped using Sola
Welcome back
Hoping to have some good news soon Linux is beyond my head
Sorry for spamming
Sent from my HTC Vision using xda premium
munjeni said:
Perl sucesfully compiled
Bye, will continue after 10 days...:good:
Click to expand...
Click to collapse
THE GREATEST NEWS EVER
I'm really interested about this one
let me know if any help is needed
Sorry for this maybe stupid question but can somebody tell me what this is? I don't understand what the work of munjeni is about..
lol98lol98 said:
Sorry for this maybe stupid question but can somebody tell me what this is? I don't understand what the work of munjeni is about..
Click to expand...
Click to collapse
This will enable you to run a Web server from your phone.
etch04 said:
This will enable you to run a Web server from your phone.
Click to expand...
Click to collapse
So (just for example) I can run this web server on my phone and upload smth onto it and other people can the download it then from there?
lol98lol98 said:
So (just for example) I can run this web server on my phone and upload smth onto it and other people can the download it then from there?
Click to expand...
Click to collapse
A stupid example...you could create a minecraft server and other player could play in your phone...
Sent from my MT27i using Tapatalk 4 Beta
A stupid example...you could create a minecraft server and other player could play in your phone...
Click to expand...
Click to collapse
No. Minecraft is another thing. This project is for a WEB server. It should allow the phone to run a fully featured website or a forum or a download server for others to connect to.
Of course a smartphone/tablet won't really manage a lot of connections like a real server. It's probably going to run between 10 and 100 users at the same time, depending on SoC. More cores should help a lot, in theory.
Still, stuff is getting more and more powerful, so yeah, it's nice to have this.
Google for LAMP and read to get more insight of this awesome work from munjeni.....
Sent from my MT27i using Tapatalk 4 Beta
sijav said:
THE GREATEST NEWS EVER
I'm really interested about this one
let me know if any help is needed
Click to expand...
Click to collapse
Thanks man, I will post soon perl build, help will be rguired only for testing or for possible improvements or configuration, hope everything will be ok with perl.
Need help for PHP ! Unable to solve problem. Configuration was:
CC=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc RANLIB=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-ranlib AR=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-ar LD=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-ld STRIP=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-strip CXX=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-c++ ASCPP=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-as CC_FOR_BUILD=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc- ./configure --prefix=/androidserver --target=arm --host=arm --with-apxs2=/androidserver/bin/apxs --with-fpm-user=system --with-fpm-group=system --enable-debug --enable-sigchild --with-libxml-dir==/androidserver --with-openssl=/androidserver --with-pcre-regex=/androidserver --with-zlib --with-zlib-dir=/androidserver/lib --enable-bcmath --enable-mbstring --with-libmbfl=/androidserver --with-mcrypt=/androidserver --with-mysql=/androidserver --with-libexpat-dir=/androidserver --with-readline=/androidserver --with-iconv=/androidserver --with-pcre-dir=/androidserver --enable-opcache=no program_prefix="" CFLAGS="-I/androidserver/bind/include -I/androidserver/include -Iinclude" ac_cv_php_xml2_config_path=/androidserver/bin/xml2-config
Click to expand...
Click to collapse
and error is:
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthread
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/sqlite3/libsqlite/sqlite3.o: in function full_fsync:/compilation/php-5.5.1/ext/sqlite3/libsqlite/sqlite3.c:27702: error: undefined reference to 'fdatasync'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function zm_startup_basic:/compilation/php-5.5.1/ext/standard/basic_functions.c:3647: error: undefined reference to 'zm_startup_password'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function php_inet_ntop:/compilation/php-5.5.1/ext/standard/basic_functions.c:3889: error: undefined reference to '__inet_ntop'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function php_inet_pton:/compilation/php-5.5.1/ext/standard/basic_functions.c:3925: error: undefined reference to '__inet_pton'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function zif_ip2long:/compilation/php-5.5.1/ext/standard/basic_functions.c:3954: error: undefined reference to '__inet_pton'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function zif_long2ip:/compilation/php-5.5.1/ext/standard/basic_functions.c:3996: error: undefined reference to '__inet_ntop'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function basic_functions:basic_functions.c(.data.rel.ro+0xb30): error: undefined reference to 'zif_password_hash'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function basic_functions:basic_functions.c(.data.rel.ro+0xb44): error: undefined reference to 'zif_password_get_info'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function basic_functions:basic_functions.c(.data.rel.ro+0xb58): error: undefined reference to 'zif_password_needs_rehash'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/basic_functions.o: in function basic_functions:basic_functions.c(.data.rel.ro+0xb6c): error: undefined reference to 'zif_password_verify'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/dns.o: in function php_gethostbyaddr:/compilation/php-5.5.1/ext/standard/dns.c:188: error: undefined reference to '__inet_pton'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/dns.o: in function php_gethostbyaddr:/compilation/php-5.5.1/ext/standard/dns.c:190: error: undefined reference to '__inet_pton'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/dns.o: in function zif_gethostbynamel:/compilation/php-5.5.1/ext/standard/dns.c:254: error: undefined reference to '__inet_ntoa'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/dns.o: in function php_gethostbyname:/compilation/php-5.5.1/ext/standard/dns.c:273: error: undefined reference to '__inet_ntoa'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/dns.o: in function php_parserr:/compilation/php-5.5.1/ext/standard/dns.c:428: error: undefined reference to '__dn_expand'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/dns.o: in function php_parserr:/compilation/php-5.5.1/ext/standard/dns.c:488: error: undefined reference to '__dn_expand'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/dns.o: in function php_parserr:/compilation/php-5.5.1/ext/standard/dns.c:533: error: undefined reference to '__dn_expand'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/dns.o: in function php_parserr:/compilation/php-5.5.1/ext/standard/dns.c:539: error: undefined reference to '__dn_expand'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/formatted_print.o: in function php_sprintf_appenddouble:/compilation/php-5.5.1/ext/standard/formatted_print.c:249: error: undefined reference to 'localeconv'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ext/standard/formatted_print.o: in function php_sprintf_appenddouble:/compilation/php-5.5.1/ext/standard/formatted_print.c:273: error: undefined reference to 'localeconv'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: main/snprintf.o: in function format_converter:/compilation/php-5.5.1/main/snprintf.c:1002: error: undefined reference to 'localeconv'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: main/snprintf.o: in function format_converter:/compilation/php-5.5.1/main/snprintf.c:1059: error: undefined reference to 'localeconv'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: main/network.o: in function php_network_getaddresses:/compilation/php-5.5.1/main/network.c:247: error: undefined reference to '__inet_aton'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: main/network.o: in function php_network_parse_network_address_with_port:/compilation/php-5.5.1/main/network.c:544: error: undefined reference to '__inet_aton'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: main/network.o: in function php_network_populate_name_from_sockaddr:/compilation/php-5.5.1/main/network.c:614: error: undefined reference to '__inet_ntoa'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: main/network.o: in function php_network_populate_name_from_sockaddr:/compilation/php-5.5.1/main/network.c:624: error: undefined reference to '__inet_ntop'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: main/network.o: in function php_network_connect_socket_to_host:/compilation/php-5.5.1/main/network.c:846: error: undefined reference to '__inet_aton'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlIconvWrapper:encoding.c:1805: error: undefined reference to 'iconv'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlIconvWrapper:encoding.c:1810: error: undefined reference to '__errno_location'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlGetEncodingAlias:encoding.c:1010: error: undefined reference to '__ctype_toupper_loc'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlAddEncodingAlias:encoding.c:1048: error: undefined reference to '__ctype_toupper_loc'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlParseCharEncoding:encoding.c:1141: error: undefined reference to '__ctype_toupper_loc'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlNewCharEncodingHandler:encoding.c:1309: error: undefined reference to '__ctype_toupper_loc'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlFindCharEncodingHandler:encoding.c:1682: error: undefined reference to 'iconv_open'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlFindCharEncodingHandler:encoding.c:1683: error: undefined reference to 'iconv_open'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlFindCharEncodingHandler:encoding.c:1688: error: undefined reference to 'iconv_open'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlFindCharEncodingHandler:encoding.c:1685: error: undefined reference to 'iconv_open'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlFindCharEncodingHandler:encoding.c:1694: error: undefined reference to 'iconv_close'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlFindCharEncodingHandler:encoding.c:1695: error: undefined reference to 'iconv_close'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlCharEncCloseFunc:encoding.c:2864: error: undefined reference to 'iconv_close'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(encoding.o): in function xmlCharEncCloseFunc:encoding.c:2869: error: undefined reference to 'iconv_close'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(error.o): in function xmlGenericErrorDefaultFunc:error.c:75: error: undefined reference to 'stderr'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(parserInternals.o): in function xmlCheckVersionarserInternals.c:87: error: undefined reference to 'stderr'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(tree.o): in function xmlBufferDump:tree.c:7292: error: undefined reference to 'stdout'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function __xmlIOErr:xmlIO.c:274: error: undefined reference to '__errno_location'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function xmlFileOpenW:xmlIO.c:1004: error: undefined reference to 'fopen64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function xmlFileOpenW:xmlIO.c:1007: error: undefined reference to 'stdout'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function xmlFileClose:xmlIO.c:1078: error: undefined reference to 'stdout'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function xmlFileClose:xmlIO.c:1078: error: undefined reference to 'stderr'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function xmlFileClose:xmlIO.c:1078: error: undefined reference to 'stdin'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function xmlCheckFilename:/root/arm-none-linux-gnueabi/arm-2011.03/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/stat.h:457: error: undefined reference to '__xstat64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function xmlFileOpen_real:xmlIO.c:931: error: undefined reference to 'fopen64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlI): in function xmlFileOpen_real:xmlIO.c:933: error: undefined reference to 'stdin'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlmemory.o): in function xmlMemDisplayLast:xmlmemory.c:658: error: undefined reference to 'fopen64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlmemory.o): in function xmlMemDisplay:xmlmemory.c:731: error: undefined reference to 'fopen64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlmemory.o): in function xmlInitMemory:xmlmemory.c:944: error: undefined reference to '__isoc99_sscanf'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xmlmemory.o): in function xmlInitMemory:xmlmemory.c:950: error: undefined reference to '__isoc99_sscanf'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(xpath.o): in function libxml_domnode_tim_sort_merge:timsort.h:383: error: undefined reference to 'stderr'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(nanohttp.o): in function xmlNanoHTTPRecv:nanohttp.c:187: error: undefined reference to '__errno_location'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(nanohttp.o): in function xmlNanoHTTPRecv:nanohttp.c:605: error: undefined reference to '__errno_location'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(nanohttp.o): in function xmlNanoHTTPConnectHost:nanohttp.c:1135: error: undefined reference to '__h_errno_location'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(nanohttp.o): in function xmlNanoHTTPFetch:nanohttp.c:1636: error: undefined reference to 'open64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(nanohttp.o): in function xmlNanoHTTPSave:nanohttp.c:1682: error: undefined reference to 'open64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(nanoftp.o): in function xmlNanoFTPGetConnection:nanoftp.c:1451: error: undefined reference to '__isoc99_sscanf'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(nanoftp.o): in function xmlNanoFTPGetConnection:nanoftp.c:1437: error: undefined reference to '__isoc99_sscanf'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(catalog.o): in function xmlLoadFileContent:/root/arm-none-linux-gnueabi/arm-2011.03/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/stat.h:457: error: undefined reference to '__xstat64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(catalog.o): in function xmlLoadFileContent:catalog.c:979: error: undefined reference to 'open64'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(buf.o): in function xmlBufDump:buf.c:556: error: undefined reference to 'stdout'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(dict.o): in function __xmlInitializeDict:dict.c:186: error: undefined reference to 'rand_r'
/root/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /androidserver/lib/libxml2.a(dict.o): in function __xmlRandom:dict.c:205: error: undefined reference to 'rand_r'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Click to expand...
Click to collapse
Ideas?
PHP solved :fingers-crossed:
munjeni said:
PHP solved :fingers-crossed:
Click to expand...
Click to collapse
great job let us know if any success happened on the server
Related
Edit 2:
I think I finally fixed this. The author needs to clean up this mess though. There is no reason to have to play a guessing game to compile something. Here are the fixes:
error: android_filesystem_config.h: No such file or directory
fix:
copy ~SOURCE_DIRECTORY/system/core/include/cutils
copy ~SOURCE_DIRECTORY/system/core/include/private
error: redefinition of 'struct iovec'
fix: remove body of source version of uio.h (there is an ndk and source version)
struct iovec {
const void* iov_base;
size_t iov_len;
};
extern int readv( int fd, struct iovec* vecs, int count );
extern int writev( int fd, const struct iovec* vecs, int count );
error: undefined reference to '__android_log_print'
fix: after LOCAL_STATIC_LIBRARIES add...
LOCAL_LDLIBS := -llog
Edit:
I have worked around this problem by using another version of the su/superuser source that I had downloaded previously.
A few changes were necessary to get superuser to compile:
add build.xml, add project.properties, add local.properties
r.java (remove line):
package koushikdutta.superuser;
strings.xml (change line):
remove " ' " from "phone's"
To compile su:
./agcc su.c -o su -I~/WORKING_DIRECTORY/external/sqlite/dist/ -I~/WORKING_DIRECTORY/bionic/libc/include/ -lsqlite
You can find the original source and my source link with all changes premade attached to this post or at this thread:
http://forum.xda-developers.com/showthread.php?t=1392593
I have tried to compile ChainDD's tar.gz from Github both with the NDK and with agcc. I am running 64 bit Debian Squeeze with the latest Android sources compiled and the NDK and SDK installed.
This line or variants:
agcc ~/bin/external/sqlite/dist/ -lsqlite su.c -o su -ldiskconfig -lcutils
gives:
undefined reference to 'send_intent'
ndk-build was not so good either. I had to do a lot of stuff to Android.mk to get it to continue further but still was not able to fully compile with it.
I have been able to compile another version of su I have found with agcc but it is only 10.5 Kb so I am not sure if it will work. I was also able to compile Zergrush with agcc.
I will reference these threads which show people having the same trouble as I am.
http://forum.xda-developers.com/showthread.php?t=1062551
http://stackoverflow.com/questions/5153355/compile-su-for-android
https://github.com/ChainsDD/su-binary/issues/1
Anyone out there that can help? I have not done much cross compiling before now. Thanks.
Is there anyone out there who can help with this?
agcc Compiler
Command:
./agcc activity.cpp su.h su.c -o su -I/home/jason/WORKING_DIRECTORY/external/sqlite/dist/ -lsqlite
Error:
su.h:41: error: expected specifier-qualifier-list before 'pid_t'
CodeSourcery Toolchain Compiler
Command:
arm-none-linux-gnueabi-gcc -o su -static su.c su.h activity.cpp -I/home/jason/WORKING_DIRECTORY/system/core/include/ -I/home/jason/WORKING_DIRECTORY/frameworks/base/include/ -I/home/jason/WORKING_DIRECTORY/external/sqlite/dist/
Error:
In file included from /home/jason/WORKING_DIRECTORY/system/core/include/cutils/log.h:40:0,
from su.c:40:
/home/jason/WORKING_DIRECTORY/system/core/include/cutils/uio.h:33:8: error: redefinition of 'struct iovec'
/home/jason/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/bits/uio.h:44:8: note: originally defined here
/home/jason/WORKING_DIRECTORY/system/core/include/cutils/uio.h:38:13: error: conflicting types for 'readv'
/home/jason/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/uio.h:40:16: note: previous declaration of 'readv' was here
/home/jason/WORKING_DIRECTORY/system/core/include/cutils/uio.h:39:13: error: conflicting types for 'writev'
/home/jason/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/uio.h:51:16: note: previous declaration of 'writev' was here
su.h:41:5: error: expected specifier-qualifier-list before 'pid_t'
In file included from activity.cpp:27:0:
su.h:43:14: error: 'PATH_MAX' was not declared in this scope
activity.cpp: In function 'int send_intent(su_initiator*, su_request*, const char*, int, int)':
activity.cpp:93:47: error: 'struct su_initiator' has no member named 'bin'
Maybe the OpenMoko Toolchain is needed to compile?
There must be someone somewhere out there (ChainsDD?) who has compiled this.
So I decided to make changes to get it to compile further.
su.h old:
struct su_initiator {
pid_t pid;
unsigned uid;
char bin[PATH_MAX];
char args[4096];
};
su.h new:
struct su_initiator{
unsigned pid_t;
unsigned pid;
unsigned uid;
char bin[PATH_MAX];
char args[4096];
};
That gets past the first error.
Then I get:
error: 'PATH_MAX' undeclared here (not in a function)
su.h old:
struct su_initiator{
unsigned pid_t;
unsigned pid;
unsigned uid;
char bin[PATH_MAX];
char args[4096];
};
su.h new:
struct su_initiator{
unsigned pid_t;
unsigned pid;
unsigned uid;
char bin[4096];
char args[4096];
};
Now I get a linker error:
Code:
/tmp/cckee4ip.o: In function `socket_create_temp':
su.c:(.text.socket_create_temp+0x114): warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
/tmp/cciiLW0A.o: In function `send_intent':
activity.cpp:(.text.send_intent+0xb8): undefined reference to `android::defaultServiceManager()'
activity.cpp:(.text.send_intent+0x12c): undefined reference to `android::Parcel::Parcel()'
activity.cpp:(.text.send_intent+0x138): undefined reference to `android::Parcel::Parcel()'
activity.cpp:(.text.send_intent+0x168): undefined reference to `android::Parcel::writeInterfaceToken(android::String16 const&)'
activity.cpp:(.text.send_intent+0x1a4): undefined reference to `android::Parcel::writeStrongBinder(android::sp<android::IBinder> const&)'
activity.cpp:(.text.send_intent+0x1f8): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x238): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x254): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x268): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x278): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x298): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x2ac): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x2bc): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x2d8): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x2e8): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x2f4): undefined reference to `android::Parcel::dataPosition() const'
activity.cpp:(.text.send_intent+0x30c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x31c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x32c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x35c): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x378): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x394): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x3a4): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x3d4): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x3f0): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x41c): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x438): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x468): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x484): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x4a0): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x4b0): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x4e0): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x4fc): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x528): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x544): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x574): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x590): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x5b4): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x5d0): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x600): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x61c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x62c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x63c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x66c): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x688): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x698): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x6a4): undefined reference to `android::Parcel::dataPosition() const'
activity.cpp:(.text.send_intent+0x6c8): undefined reference to `android::Parcel::setDataPosition(unsigned int) const'
activity.cpp:(.text.send_intent+0x6e4): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x6f8): undefined reference to `android::Parcel::setDataPosition(unsigned int) const'
activity.cpp:(.text.send_intent+0x70c): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x71c): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x74c): undefined reference to `android::Parcel::writeStrongBinder(android::sp<android::IBinder> const&)'
activity.cpp:(.text.send_intent+0x774): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x788): undefined reference to `android::Parcel::writeString16(unsigned short const*, unsigned int)'
activity.cpp:(.text.send_intent+0x798): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x7c8): undefined reference to `android::Parcel::writeString16(android::String16 const&)'
activity.cpp:(.text.send_intent+0x7e4): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x7f4): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x804): undefined reference to `android::Parcel::writeInt32(int)'
activity.cpp:(.text.send_intent+0x888): undefined reference to `android::Parcel::~Parcel()'
activity.cpp:(.text.send_intent+0x894): undefined reference to `android::Parcel::~Parcel()'
collect2: ld returned 1 exit status
I have tried editing the includes in activity.cpp but still with the same errors. Where to go from here?
I keep running into the same error when compiling cm7 and stock kernels:
Does anyone know of a fix?
Those are not sad faces they are ":" "(" without quotes
arch/arm/mach-msm/built-in.o: In function `parse_tag_msm_partition':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/nand_partitions.c:126: undefined reference to `msm_nand_data'
arch/arm/mach-msm/built-in.o: In function `sapphire_init':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1186: undefined reference to `msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o: In function `sapphire_map_io':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1282: undefined reference to `msm_num_clocks_7x01a'
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1282: undefined reference to `msm_clocks_7x01a'
arch/arm/mach-msm/built-in.o: In function `sapphire_init_panel':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-panel.c:1268: undefined reference to `msm_device_mdp'
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-panel.c:1268: undefined reference to `msm_device_mddi0'
arch/arm/mach-msm/built-in.o: In function `sapphire_init_mmc':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-mmc.c:352: undefined reference to `msm_add_sdcc'
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-mmc.c:355: undefined reference to `msm_add_sdcc'
arch/arm/mach-msm/built-in.o: In function `msm_add_usb_devices':
/home/anthony/android/kernel/cm-kernel/arch/arm/mach-msm/devices_htc.c:206: undefined reference to `msm_device_hsusb'
arch/arm/mach-msm/built-in.o.init.data+0xa0): undefined reference to `msm_device_smd'
arch/arm/mach-msm/built-in.o.init.data+0xa4): undefined reference to `msm_device_nand'
arch/arm/mach-msm/built-in.o.init.data+0xa8): undefined reference to `msm_device_i2c'
arch/arm/mach-msm/built-in.o.init.data+0xac): undefined reference to `msm_device_uart1'
arch/arm/mach-msm/built-in.o.init.data+0xb0): undefined reference to `msm_device_uart3'
arch/arm/mach-msm/built-in.o.init.data+0xb4): undefined reference to `msm_device_uart_dm1'
drivers/built-in.o: In function `msm_i2c_recover_bus_busy':
/home/anthony/android/kernel/cm-kernel/drivers/i2c/busses/i2c-msm.c:276: undefined reference to `msm_set_i2c_mux'
/home/anthony/android/kernel/cm-kernel/drivers/i2c/busses/i2c-msm.c:314: undefined reference to `msm_set_i2c_mux'
drivers/built-in.o: In function `msm_i2c_probe':
/home/anthony/android/kernel/cm-kernel/drivers/i2c/busses/i2c-msm.c:492: undefined reference to `msm_set_i2c_mux'
make: *** [.tmp_vmlinux1] Error 1
Have someone done it?
I'm doing something wrong
Code:
/tmp/ccZLbjr3.o: In function `read_safe':
hydra.c:(.text+0x2e4): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `hydra_debug':
hydra.c:(.text+0x10c8): undefined reference to `hydra_address2string'
hydra.c:(.text+0x13ec): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `hydra_restore_write':
hydra.c:(.text+0x1cc8): undefined reference to `debug'
hydra.c:(.text+0x1cd8): undefined reference to `bf_options'
/tmp/ccZLbjr3.o: In function `hydra_restore_read':
hydra.c:(.text+0x28e8): undefined reference to `bf_options'
hydra.c:(.text+0x28f0): undefined reference to `verbose'
hydra.c:(.text+0x28f4): undefined reference to `waittime'
hydra.c:(.text+0x28fc): undefined reference to `port'
hydra.c:(.text+0x2918): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `killed_childs_report':
hydra.c:(.text+0x34e0): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `kill_children':
hydra.c:(.text+0x3690): undefined reference to `verbose'
/tmp/ccZLbjr3.o: In function `hydra_service_init':
hydra.c:(.text+0x3b14): undefined reference to `service_cisco_enable_init'
hydra.c:(.text+0x3b8c): undefined reference to `service_cvs_init'
hydra.c:(.text+0x3c04): undefined reference to `service_cisco_init'
hydra.c:(.text+0x3c9c): undefined reference to `service_ftp_init'
hydra.c:(.text+0x3d54): undefined reference to `service_http_form_init'
hydra.c:(.text+0x3dcc): undefined reference to `service_http_proxy_init'
hydra.c:(.text+0x3e44): undefined reference to `service_http_proxy_urlenum_init'
hydra.c:(.text+0x3ebc): undefined reference to `service_icq_init'
hydra.c:(.text+0x3f34): undefined reference to `service_imap_init'
hydra.c:(.text+0x3fb0): undefined reference to `service_ldap_init'
hydra.c:(.text+0x4028): undefined reference to `service_mssql_init'
hydra.c:(.text+0x40a0): undefined reference to `service_nntp_init'
hydra.c:(.text+0x4118): undefined reference to `service_pcanywhere_init'
hydra.c:(.text+0x4190): undefined reference to `service_pcnfs_init'
hydra.c:(.text+0x4208): undefined reference to `service_pop3_init'
hydra.c:(.text+0x4280): undefined reference to `service_rexec_init'
hydra.c:(.text+0x42f8): undefined reference to `service_rlogin_init'
hydra.c:(.text+0x4370): undefined reference to `service_rsh_init'
hydra.c:(.text+0x43e8): undefined reference to `service_smtp_init'
hydra.c:(.text+0x4460): undefined reference to `service_smtp_enum_init'
hydra.c:(.text+0x44d8): undefined reference to `service_snmp_init'
hydra.c:(.text+0x4550): undefined reference to `service_socks5_init'
hydra.c:(.text+0x45c8): undefined reference to `service_teamspeak_init'
hydra.c:(.text+0x4640): undefined reference to `service_telnet_init'
hydra.c:(.text+0x46b8): undefined reference to `service_vmauthd_init'
hydra.c:(.text+0x4730): undefined reference to `service_vnc_init'
hydra.c:(.text+0x47a8): undefined reference to `service_xmpp_init'
hydra.c:(.text+0x47e0): undefined reference to `port'
/tmp/ccZLbjr3.o: In function `hydra_spawn_head':
hydra.c:(.text+0x4a44): undefined reference to `cmdlinetarget'
hydra.c:(.text+0x4a5c): undefined reference to `debug'
hydra.c:(.text+0x4ae0): undefined reference to `port'
hydra.c:(.text+0x4c60): undefined reference to `service_telnet'
hydra.c:(.text+0x4ce8): undefined reference to `service_ftp'
hydra.c:(.text+0x4d70): undefined reference to `service_ftps'
hydra.c:(.text+0x4df8): undefined reference to `service_pop3'
hydra.c:(.text+0x4e80): undefined reference to `service_imap'
hydra.c:(.text+0x4f08): undefined reference to `service_vmauthd'
hydra.c:(.text+0x4f90): undefined reference to `service_ldap2'
hydra.c:(.text+0x5018): undefined reference to `service_ldap3'
hydra.c:(.text+0x50a0): undefined reference to `service_http_head'
hydra.c:(.text+0x5128): undefined reference to `service_ldap3_cram_md5'
hydra.c:(.text+0x51b0): undefined reference to `service_ldap3_digest_md5'
hydra.c:(.text+0x5238): undefined reference to `service_http_get'
hydra.c:(.text+0x52c0): undefined reference to `service_http_get_form'
hydra.c:(.text+0x5348): undefined reference to `service_http_post_form'
hydra.c:(.text+0x53d0): undefined reference to `service_http_proxy'
hydra.c:(.text+0x5458): undefined reference to `service_http_proxy_urlenum'
hydra.c:(.text+0x54e0): undefined reference to `service_cisco'
hydra.c:(.text+0x5568): undefined reference to `service_cisco_enable'
hydra.c:(.text+0x55f0): undefined reference to `service_socks5'
hydra.c:(.text+0x5678): undefined reference to `service_vnc'
hydra.c:(.text+0x5700): undefined reference to `service_rexec'
hydra.c:(.text+0x5788): undefined reference to `service_rlogin'
hydra.c:(.text+0x5810): undefined reference to `service_rsh'
hydra.c:(.text+0x5898): undefined reference to `service_nntp'
hydra.c:(.text+0x5920): undefined reference to `service_icq'
hydra.c:(.text+0x59a8): undefined reference to `service_pcnfs'
hydra.c:(.text+0x5a30): undefined reference to `service_mssql'
hydra.c:(.text+0x5ab8): undefined reference to `service_pcanywhere'
hydra.c:(.text+0x5b40): undefined reference to `service_cvs'
hydra.c:(.text+0x5bc8): undefined reference to `service_snmp'
hydra.c:(.text+0x5c50): undefined reference to `service_smtp'
hydra.c:(.text+0x5cd8): undefined reference to `service_smtp_enum'
hydra.c:(.text+0x5d60): undefined reference to `service_teamspeak'
hydra.c:(.text+0x5e08): undefined reference to `service_xmpp'
hydra.c:(.text+0x5e90): undefined reference to `service_irc'
hydra.c:(.text+0x6124): undefined reference to `port'
hydra.c:(.text+0x6150): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `hydra_increase_fail_count':
hydra.c:(.text+0x6fac): undefined reference to `debug'
hydra.c:(.text+0x6fd0): undefined reference to `port'
hydra.c:(.text+0x6fd8): undefined reference to `verbose'
/tmp/ccZLbjr3.o: In function `hydra_send_next_pair':
hydra.c:(.text+0x80a8): undefined reference to `verbose'
hydra.c:(.text+0x80e4): undefined reference to `HYDRA_EXIT'
hydra.c:(.text+0x80fc): undefined reference to `debug'
hydra.c:(.text+0x978c): undefined reference to `debug'
hydra.c:(.text+0x979c): undefined reference to `verbose'
/tmp/ccZLbjr3.o: In function `hydra_skip_user':
hydra.c:(.text+0x9bf4): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `hydra_check_for_exit_condition':
hydra.c:(.text+0x9d44): undefined reference to `debug'
/tmp/ccZLbjr3.o: In function `main':
hydra.c:(.text+0x9f74): undefined reference to `hydra_string_replace'
hydra.c:(.text+0x9fd0): undefined reference to `hydra_string_replace'
hydra.c:(.text+0xa02c): undefined reference to `hydra_string_replace'
hydra.c:(.text+0xa088): undefined reference to `hydra_string_replace'
hydra.c:(.text+0xa0e4): undefined reference to `hydra_string_replace'
/tmp/ccZLbjr3.o:hydra.c:(.text+0xa140): more undefined references to `hydra_string_replace' follow
/tmp/ccZLbjr3.o: In function `main':
hydra.c:(.text+0xaec8): undefined reference to `verbose'
hydra.c:(.text+0xaecc): undefined reference to `found'
hydra.c:(.text+0xaed0): undefined reference to `proxy_string_ip'
hydra.c:(.text+0xaed4): undefined reference to `proxy_string_port'
hydra.c:(.text+0xaed8): undefined reference to `proxy_string_type'
hydra.c:(.text+0xaee0): undefined reference to `proxy_authentication'
hydra.c:(.text+0xaee4): undefined reference to `waittime'
hydra.c:(.text+0xaef8): undefined reference to `colored_output'
hydra.c:(.text+0xaf44): undefined reference to `use_proxy'
hydra.c:(.text+0xaf84): undefined reference to `port'
hydra.c:(.text+0xaf90): undefined reference to `debug'
hydra.c:(.text+0xaf98): undefined reference to `cmdlinetarget'
hydra.c:(.text+0xcefc): undefined reference to `port'
hydra.c:(.text+0xd008): undefined reference to `use_proxy'
hydra.c:(.text+0xf054): undefined reference to `proxy_string_ip'
hydra.c:(.text+0xf058): undefined reference to `proxy_string_ip'
hydra.c:(.text+0xf05c): undefined reference to `proxy_string_ip'
hydra.c:(.text+0xf064): undefined reference to `proxy_string_port'
hydra.c:(.text+0xf074): undefined reference to `proxy_string_type'
hydra.c:(.text+0xf07c): undefined reference to `proxy_authentication'
hydra.c:(.text+0xf0bc): undefined reference to `port'
hydra.c:(.text+0xf0ec): undefined reference to `debug'
hydra.c:(.text+0xf0f4): undefined reference to `use_proxy'
hydra.c:(.text+0xf10c): undefined reference to `fe80'
hydra.c:(.text+0xf124): undefined reference to `verbose'
hydra.c:(.text+0xf19c): undefined reference to `hydra_strcasestr'
hydra.c:(.text+0xf1ec): undefined reference to `hydra_tobase64'
hydra.c:(.text+0x10f5c): undefined reference to `verbose'
hydra.c:(.text+0x10f64): undefined reference to `waittime'
hydra.c:(.text+0x10f88): undefined reference to `debug'
collect2: error: ld returned 1 exit status
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
Where did you find THC-Hydra v.7.4.2 for android? And if it ported by you, how did you port THC-Hydra v.7.4.2 to android?
Exuse me for my English, because I'm from Russia.
GUI
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
Hello fann95!
Porting THChydra with a GUI is maybe not a good idea, because THChydra is much more powerful with command lines. I will test the Android version that you've linked, to see if the help is included in the app. The help in command lines is, i think, enough to use THChydra. It is my opinion as Linux purist.
But yes, i saw the difference on Linux, with and without GUI, and the speed is highly increased without the GUI to find the website's login/pass pairs.
Maybe my answer will not help you so much. It is just an opinion.
Kind regards,
Saladin.
All is written.
Crazy_Jlox said:
Where did you find THC-Hydra v.7.4.2 for android? And if it ported by you, how did you port THC-Hydra v.7.4.2 to android?
Exuse me for my English, because I'm from Russia.
Click to expand...
Click to collapse
Hi!
All is written: he's working on it.
Hydra
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
Thanks for the download, it worked great!
A gui would be fun but it is really not that hard to run hydra --help first and learn how to type in the command line arguments.
Need help
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
Could you explain to me step by step on how to install Hydra on Android? Thanks
Could you explain to me step by step on how to install Hydra on Android? Thanks
How to flash these tools?
How to flash these tools?
I connect with my phone. When I open install.bat, it automatically reboot.
And nothing installed. Please fix this problem.
Thanks...
Hello
i want to know how to port hydra to android with c4droid
thanks
I was also searching for installing hydra THC on android .could ani one help me
Sent from my X1 Grand using XDA Free mobile app
fann95 said:
THC-HYDRA v.7.4.2 for Android.
You can make a hydra with C4droid+gcc
Maybe someone will want to make GUI?
Click to expand...
Click to collapse
After dl zips and extracting cant seem to get this going in t.e ?
Sent from my LG-D855 using XDA-Developers mobile app
THC-HYDRA 8.4 android binary download
took me less than 5 minutes to port.
thc-hydra-8.4 android binary
s000.tinyupload.com/?file_id=20379290594400353120
Your welcome,
happy hacking
~ Magizian
Hey is there someone who knows how the use Thc Hydra on a Website I forgot my Passwort for something but sadly I don't know how to use thc hydra :/
hi guys i need to post here my question because i can't figure it out by myself.. i have already search my problem if there is another person who also struggling in this kind of chaos
did someone know where i did wrong in compiling my android..
kindly check the few part of the error while compiling..
er_mulps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:145: undefined reference to `helper_mulss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:145: undefined reference to `helper_mulpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:145: undefined reference to `helper_mulsd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:146: undefined reference to `helper_divps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:146: undefined reference to `helper_divss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:146: undefined reference to `helper_divpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:146: undefined reference to `helper_divsd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:147: undefined reference to `helper_minps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:147: undefined reference to `helper_minss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:147: undefined reference to `helper_minpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:147: undefined reference to `helper_minsd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:148: undefined reference to `helper_maxps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:148: undefined reference to `helper_maxss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:148: undefined reference to `helper_maxpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:148: undefined reference to `helper_maxsd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:149: undefined reference to `helper_sqrtps'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:149: undefined reference to `helper_sqrtss'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:149: undefined reference to `helper_sqrtpd'
/root/qrd/external/qemu/target-i386/ops_sse_header.h:149: undefined reference to `helper_sqrtsd'
/root/qrd/external/qemu/tcg/tcg-op.h:392: undefined reference to `helper_debug'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `cpu_x86_exec':
/root/qrd/external/qemu/cpu-exec.c:708: undefined reference to `helper_cc_compute_all'
/root/qrd/external/qemu/cpu-exec.c:340: undefined reference to `do_interrupt'
/root/qrd/external/qemu/cpu-exec.c:613: undefined reference to `helper_cc_compute_all'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `svm_check_intercept':
/root/qrd/external/qemu/target-i386/exec.h:83: undefined reference to `helper_svm_check_intercept_param'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `cpu_x86_exec':
/root/qrd/external/qemu/cpu-exec.c:450: undefined reference to `do_interrupt'
/root/qrd/external/qemu/cpu-exec.c:428: undefined reference to `do_interrupt'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `svm_check_intercept':
/root/qrd/external/qemu/target-i386/exec.h:83: undefined reference to `helper_svm_check_intercept_param'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `cpu_x86_exec':
/root/qrd/external/qemu/cpu-exec.c:463: undefined reference to `do_interrupt'
/root/qrd/external/qemu/cpu-exec.c:432: undefined reference to `do_interrupt'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `svm_check_intercept':
/root/qrd/external/qemu/target-i386/exec.h:83: undefined reference to `helper_svm_check_intercept_param'
/root/qrd/external/qemu/target-i386/exec.h:83: undefined reference to `helper_svm_check_intercept_param'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(cpu-exec.o): In function `cpu_x86_exec':
/root/qrd/external/qemu/cpu-exec.c:422: undefined reference to `do_smm_enter'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(exec.o): In function `__ldb_cmmu':
/root/qrd/external/qemu/softmmu_template.h:184: undefined reference to `tlb_fill'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(exec.o): In function `slow_ldq_cmmu':
/root/qrd/external/qemu/softmmu_header.h:141: undefined reference to `__stl_mmu'
/root/qrd/external/qemu/softmmu_header.h:141: undefined reference to `__stl_mmu'
/root/qrd/external/qemu/softmmu_header.h:141: undefined reference to `__stl_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3dc0): undefined reference to `__stb_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3dc8): undefined reference to `__stw_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3dd0): undefined reference to `__stl_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3dd8): undefined reference to `__stq_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3de0): undefined reference to `__ldb_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3de8): undefined reference to `__ldw_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3df0): undefined reference to `__ldl_mmu'
out/host/linux-x86/obj/STATIC_LIBRARIES/emulator64-target-i386_intermediates/emulator64-target-i386.a(tcg.o).rodata+0x3df8): undefined reference to `__ldq_mmu'
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator64-x86_intermediates/emulator64-x86] Error 1
Click to expand...
Click to collapse
i already have all the requirements in compiling android.. but i dont know why i still facing that problem..
i am using Linux-3.2.6-x86_64-with-Ubuntu-10.04-lucid
i just want to know what can i do to make does error away..
Hi, im tryng to buld cyanogenmod recovery from source, but im getting this error when i try "make recoveryimage":
-------------------------------------------------------------------------------------------------------
host Executable: clang (/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/cc1_main.o: In function `ForcePassLinking':
/home/diogo/android/system/external/llvm/include/llvm/LinkAllPasses.h:116: undefined reference to `llvm::createProfileMetadataLoaderPass()'
/home/diogo/android/system/external/llvm/include/llvm/LinkAllPasses.h:147: undefined reference to `llvm::createPostDomTree()'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(ProfileVerifierPass.o): In function `ReadOrAssert':
/home/diogo/android/system/external/llvm/lib/Analysis/ProfileVerifierPass.cpp:204: undefined reference to `llvm:perator<<(llvm::raw_ostream&, std:air<llvm::BasicBlock const*, llvm::BasicBlock const*>)'
/home/diogo/android/system/external/llvm/lib/Analysis/ProfileVerifierPass.cpp:210: undefined reference to `llvm:perator<<(llvm::raw_ostream&, std:air<llvm::BasicBlock const*, llvm::BasicBlock const*>)'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `addRequired<llvm:ostDominatorTree>':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `initializeRegionInfoPassOnce':
/home/diogo/android/system/external/llvm/lib/Analysis/RegionInfo.cpp:853: undefined reference to `llvm::initializePostDominatorTreePass(llvm:assRegistry&)'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `llvm::AnalysisResolver::findImplPass(void const*)':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:134: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(RegionInfo.o): In function `llvm:ostDominatorTree& llvm:ass::getAnalysis<llvm:ostDominatorTree>() const':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:132: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(DomPrinter.o): In function `addRequired<llvm:ostDominatorTree>':
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: undefined reference to `llvm:ostDominatorTree::ID'
/home/diogo/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a(DomPrinter.o):/home/diogo/android/system/external/llvm/include/llvm/PassAnalysisSupport.h:56: more undefined references to `llvm:ostDominatorTree::ID' follow
collect2: ld returned 1 exit status
build/core/host_executable.mk:31: recipe for target '/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang' failed
make: *** [/home/diogo/android/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] Error 1
-----------------------------------------------------------------------------------------------------------
What this means? How to solve it?
Never had this error before :S