Hi,

Sorry if this is a dumb question, but I'm having problems getting log4cxx-0.9.8 
 to build. Below is the build output with the error I'm getting. I've tried 
letting ant download apr-1.2.2, apr-util-1.2.2, and cppunit-1.10.2, and 
installing them myself first, but I get the same error either way.

I'm not exactly sure what or how I should "recompile with -fPIC".

I've also included some details on my system. Please let me know if there's 
anything else that would help understand the problem.

Any suggestions would be greatly appreciated!

Thanks
Bruce Riley

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ uname -a
Linux svd-devlin 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x86_64 
x86_64 x86_64 GNU/Linux
$

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>From /var/log/dmesg:

Bootdata ok (command line is ro root=LABEL=/ rhgb quiet)
Linux version 2.6.9-34.ELsmp ([EMAIL PROTECTED]) (gcc version 3.4.5 20051201 
(Red Hat 3.4.5-2)) #1 SMP Fri Feb 24 16:56:28 EST 2006

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ ant
Buildfile: build.xml

os-detect:

win-init:

mac-init:

unix-init:

init:

build-apr:

get-apr-src:

untar-apr-src:

os-detect:

win-init:

unix-init:

init:

configure-check:

unix-configure:

win-configure:

configure:

build:
       [cc] Starting dependency analysis for 67 files.
       [cc] 67 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.

build-aprutil:

get-aprutil-src:

untar-aprutil-src:

os-detect:

win-init:

unix-init:

init:

configure-check:

unix-configure:

win-configure:

configure:

build:
       [cc] Starting dependency analysis for 47 files.
       [cc] 47 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.

config-check:

unix-configure:

win-configure:

configure:
     [echo] Configuring with has.wchar_t=1
     [echo] Configuring with logchar_type=utf-8

build:
       [cc] Starting dependency analysis for 144 files.
       [cc] 144 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.
       [cc] Starting link
       [cc] /usr/bin/ld: 
/home/briley/log4cxx-0.9.8/build/debug/static/libaprutil-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/briley/log4cxx-0.9.8/build/debug/static/libaprutil-1.a: could 
not read symbols: Bad value
       [cc] collect2: ld returned 1 exit status

BUILD FAILED
/home/briley/log4cxx-0.9.8/build.xml:662: gcc failed with return code 1

Total time: 5 seconds
$

Reply via email to