It looks like it is trying to link some static libraries into shared lib
mode.

*/usr/bin/ld: /usr/lib/libcompat.a(ftime.o): relocation R_X86_64_32 can
not be used when making a shared object; recompile with -fPIC
/usr/lib/libcompat.a: could not read symbols: Bad value*

Can you check if there are shared libs for this library on your system?

Samisa Abeysinghe

http://samisa-abeysinghe.blogspot.com/
On Fri, Aug 12, 2011 at 2:38 AM, dsh <[email protected]> wrote:

> Hi,
>
> I am trying to compile Axis2-C 1.6.0 from source on FreeBSD 8.2.
> Please find my uname output right below:
>
> [root@xserve-fbsd82 /usr/ports/www/axis-c/work/axis2c-src-1.6.0]# uname -a
> FreeBSD xserve-fbsd82.abyssworld.de 8.2-STABLE FreeBSD 8.2-STABLE #0:
> Sun Jul 24 16:27:26 CEST 2011
> [email protected]:/usr/obj/usr/src/sys/GENERIC  amd64
>
> The compile process bails out with the following error:
>
> gcc -shared  .libs/hash.o .libs/allocator.o .libs/env.o .libs/error.o
> .libs/stream.o .libs/log.o .libs/string.o .libs/string_util.o
> .libs/qname.o .libs/array_list.o .libs/linked_list.o .libs/utils.o
> .libs/dir_handler.o .libs/file_handler.o .libs/class_loader.o
> .libs/network_handler.o .libs/file.o .libs/uuid_gen.o
> .libs/thread_pool.o .libs/property.o .libs/types.o .libs/param.o
> .libs/param_container.o .libs/dll_desc.o .libs/url.o .libs/stack.o
> .libs/generic_obj.o .libs/base64.o .libs/uri.o .libs/date_time.o
> .libs/base64_binary.o .libs/properties.o .libs/rand.o
> .libs/date_time_util.o .libs/version.o .libs/duration.o .libs/md5.o
> .libs/http_chunked_stream.o .libs/digest_calc.o -Wl,--whole-archive
> ../src/platforms/unix/.libs/libaxis2_unix.a -Wl,--no-whole-archive
> -lpthread -lcompat -lz  -Wl,-soname -Wl,libaxutil.so.6 -o
> .libs/libaxutil.so.6
> /usr/bin/ld: /usr/lib/libcompat.a(ftime.o): relocation R_X86_64_32 can
> not be used when making a shared object; recompile with -fPIC
> /usr/lib/libcompat.a: could not read symbols: Bad value
>
> I am using "gcc (GCC) 4.2.2 20070831 prerelease [FreeBSD]". I am a bit
> confused why -lcompat is getting pulled in and especially about the
> error message cause if I get it right -lcompat wasn't compiled with
> -fPIC, tho this is a 64bit system. Could you shed some light on what
> is going on and how to fix this?
>
> PS: I did verify this behavior on a FreeBSD 8.2-RELEASE system too,
> which is a system that was installed from the install DVD without
> applying any updates or patches.
>
> Thanks and best wishes!
>
> Cheers
> Daniel S. Haischt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to