i suppose this is a ant build.xml problem, because i was able to go into log4cxx/lib/apr1.2.2 then log4cxx/lib/aprutil-1.2.2 to run ./configure, make, make install.
however, i don't know what to do after that. please advice. thank you.
jack.
ps. note the following error apears when i run "ant", if i run "ant -Dcompiler=g++" i receive different errors.
-------------------------------------------------------------
gcc output:
configure:
[echo] Configuring with has.wchar_t=1
[echo] Configuring with logchar_type=utf-8
build:
[mkdir] Created dir: /home/jackwu/test1/log4cxx/build/release/shared/log4cxx
_obj
[cc] 144 total files to be compiled.
[cc] Starting link
[cc] /usr/bin/ld: /home/jackwu/test1/log4cxx/build/release/static/libapru
til-1.a(xlate.o): relocation R_X86_64_32 against `apr_pool_cleanup_null' can not
be used when making a shared object; recompile with -fPIC
[cc] /home/jackwu/test1/log4cxx/build/release/static/libaprutil-1.a: coul
d not read symbols: Bad value
[cc] collect2: ld returned 1 exit status
BUILD FAILED
/home/jackwu/test1/log4cxx/build.xml:664: gcc failed with return code 1
--------------------------------------------------------------
g++ output: (i know we need to set permissive flag, but i am not an ant person. don't know how to set it.)
build:
[mkdir] Created dir: /home/jackwu/test1/log4cxx/build/release/static/apr_obj
[cc] 67 total files to be compiled.
[cc] /home/jackwu/test1/log4cxx/lib/apr-1.2.2/strings/apr_cpystrn.c: In f
unction `apr_status_t apr_tokenize_to_argv(const char*, char***, apr_pool_t*)':
[cc] /home/jackwu/test1/log4cxx/lib/apr-1.2.2/strings/apr_cpystrn.c:168:
error: invalid conversion from `void*' to `char**'
[cc] /home/jackwu/test1/log4cxx/lib/apr-1.2.2/strings/apr_cpystrn.c:176:
error: invalid conversion from `void*' to `char*'
[cc] /home/jackwu/test1/log4cxx/lib/apr-1.2.2/network_io/unix/sockaddr.c:
In function `apr_status_t apr_sockaddr_ip_get(char**, apr_sockaddr_t*)':
[cc] /home/jackwu/test1/log4cxx/lib/apr-1.2.2/network_io/unix/sockaddr.c:
104: error: invalid conversion from `void*' to `char*'
[cc] /home/jackwu/test1/log4cxx/lib/apr-1.2.2/network_io/unix/sockaddr.c:
In function `apr_status_t apr_parse_addr_port(char**, char**, apr_port_t*, cons
t char*, apr_pool_t*)':
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com