[Bug 717748] Review Request: LTTng-UST - LTTng Userspace Tracer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=717748

--- Comment #9 from Scott Tsai <scottt.tw@xxxxxxxxx> ---
(In reply to comment #8)

Building on F17 fails for me with:

/bin/sh ../../libtool  --tag=CC   --mode=link gcc  -Wall -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4  -m64 -mtune=generic  -Wl,-z,relro  -o hello hello.o
tp.o ../../liblttng-ust/liblttng-ust.la -lurcu-bp -lurcu-bp -luuid -lpthread
-ldl
libtool: link: DIE_RPATH_DIE="/usr/lib64:" gcc -Wall -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -Wl,-z -Wl,relro -o .libs/hello
hello.o tp.o  ../../liblttng-ust/.libs/liblttng-ust.so -lurcu-bp -luuid
-lpthread -ldl
/usr/bin/ld: warning: liblttng-ust-tracepoint.so.0, needed by
../../liblttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or
-rpath-link)
../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
`init_tracepoint'
../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
`__tracepoint_probe_register'
../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
`exit_tracepoint'
../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
`__tracepoint_probe_unregister'
collect2: error: ld returned 1 exit status
make[3]: *** [hello] Error 1
make[3]: Leaving directory
`/home/scottt/work/lttng/fedora/lttng-ust-2.0.3/tests/hello'

Since:
1. ld is performing a non-shared, non relocatable link for .libs/hello 
2. We patched libtool to get rid of RPATH
3. hello.o requires liblttng-ust.so which in turn requires
liblttng-ust-tracepoint.so.0
We need to either pass the directory containing liblttng-ust-tracepoint.so.0 as
-rpath-link or specify liblttng-ust-tracepoint.so as an input to ld.

The following snippet in lttnt-ust.spec would accomplish the later:

+# link all dependent libs
+#sed -i 's|^link_all_deplibs=no|link_all_deplibs=unknown|g' libtool
+
+make %{?_smp_mflags} V=1

 %install
 make DESTDIR=%buildroot install

Yannick, could you build actually build without a patch to this effect?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]