[SSSD] [PATCH] TESTS: Link libsss_test_common with tevent

Jakub Hrozek jhrozek at redhat.com
Mon Nov 18 16:09:17 UTC 2013


On Mon, Nov 18, 2013 at 04:55:14PM +0100, Jakub Hrozek wrote:
> On Mon, Nov 18, 2013 at 10:59:20AM +0100, Lukas Slebodnik wrote:
> > On (18/11/13 10:41), Lukas Slebodnik wrote:
> > >ehlo,
> > >
> > >Static library libsss_test_common calls tevent functions directly (in module
> > >common_tev.c), but it was not linked with tevent library.
> > >
> > >Compilation will fail if sssd is linked with "-Wl,--as-needed"
> > >  CCLD     test_utils
> > >/usr/bin/ld: ./.libs/libsss_test_common.a(common_tev.o): undefined reference to symbol 'tevent_context_init@@TEVENT_0.9.9'
> > >/usr/bin/ld: note: 'tevent_context_init@@TEVENT_0.9.9' is defined in DSO /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libtevent.so so try adding it to the linker command line
> > >/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libtevent.so: could not read symbols: Invalid operation
> > >clang: error: linker command failed with exit code 1 (use -v to see invocation)
> > >
> > >nm ./libsss_test_common.a  | grep tevent
> > >                 U tevent_context_init
> > >                 U _tevent_loop_once
> > >                 U _tevent_req_create
> > >                 U _tevent_req_done
> > >                 U _tevent_req_error
> > >                 U tevent_req_is_error
> > >                 U tevent_req_post
> > >
> > >Simple patch is attached.
> > One more time :-)
> > 
> > LS
> 
> ACK

Pushed to master.



More information about the sssd-devel mailing list