hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Problem writing .so - libevent
Date Wed, 30 Aug 2017 22:27:33 GMT
Were you using docker ?
Was libevent.a generated ?

In my docker VM, I have:

-rw-r--r-- 1 root root 506746 Aug 16 16:08
buck-out/gen/third-party/gen_libevent/gen_libevent/libevent.a

Cheers

On Wed, Aug 30, 2017 at 2:49 PM, Andrzej <borucki_andrzej@wp.pl> wrote:

> I want write shared object using native client classes.
> My BUCK:
> cxx_binary(
>     name="hbNativeLib",
>     srcs=[
>         "hbNativeLib.cpp",
>     ],
>     deps=[":core", "//connection:connection"],
>     compiler_flags = ['-fPIC'],
>     link_style="shared",)
> //-fPIC here is needed?
>
> I have error:
> /usr/bin/ld: /usr/src/hbase/hbase-native-client/buck-out/gen/third-party/
> gen_libevent/gen_libevent/libevent.a(event.o): relocation R_X86_64_PC32
> against symbol `event_global_current_base_' can not be used when making a
> shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> Problem is because libevent is system library (?)
> is possible install it with -fPIC or not using this library?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message