You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by jack wu <ja...@yahoo.com> on 2006/06/10 07:23:50 UTC
build problem on 64bit redhat
latest svn code build failed on 64 bit Redhat enterprise ES release 4. kernal 2.6.9, gcc 3.4.5. when running "ant" in the log4cxx source root directory.
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
Re: build problem on 64bit redhat
Posted by jack wu <ja...@yahoo.com>.
that solved my problem. thank you.
jack.
Curt Arnold <ca...@apache.org> wrote:
On Jun 10, 2006, at 12:23 AM, jack wu wrote:
> latest svn code build failed on 64 bit Redhat enterprise ES release
> 4. kernal 2.6.9, gcc 3.4.5. when running "ant" in the log4cxx
> source root directory.
>
> 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.
>
>
Try
ant -Duse-pic=true
There is no auto-detection in the ant build on when the -fPIC option
needs to be specified on compiles. It can't always be specified
since it will result in an error on platforms that don't recognize
it. Specifying -Dcompiler=g++ appears to be forcing a C++ compile of
APR which is C.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: build problem on 64bit redhat
Posted by Curt Arnold <ca...@apache.org>.
On Jun 10, 2006, at 12:23 AM, jack wu wrote:
> latest svn code build failed on 64 bit Redhat enterprise ES release
> 4. kernal 2.6.9, gcc 3.4.5. when running "ant" in the log4cxx
> source root directory.
>
> 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.
>
>
Try
ant -Duse-pic=true
There is no auto-detection in the ant build on when the -fPIC option
needs to be specified on compiles. It can't always be specified
since it will result in an error on platforms that don't recognize
it. Specifying -Dcompiler=g++ appears to be forcing a C++ compile of
APR which is C.