[lttng-dev] babeltrace error
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Fri Jan 6 11:03:36 EST 2012
* Salman Rafiq (salman.rafiq at esk.fraunhofer.de) wrote:
> Dear Mathieu,
>
>
>
> After ./configure there is no visible error, but when I look into config.log there are several errors. Please find attached the config.log file.
>
>
>
> - Make works fine.
>
>
>
> Error During Make Install
>
>
>
> make[5]: Entering directory `/home2/salman/packages/CTF/babeltrace/formats/ctf/metadata'
>
> test -z "/home2/salman/local/lib" || /bin/mkdir -p "/home2/salman/local/lib"
>
> /bin/bash ../../../libtool --mode=install /usr/bin/install -c libctf-parser.la libctf-ast.la '/home2/salman/local/lib'
>
> libtool: install: /usr/bin/install -c .libs/libctf-parser.so.0.0.0 /home2/salman/local/lib/libctf-parser.so.0.0.0
>
> libtool: install: (cd /home2/salman/local/lib && { ln -s -f libctf-parser.so.0.0.0 libctf-parser.so.0 || { rm -f libctf-parser.so.0 && ln -s libctf-parser.so.0.0.0 libctf-parser.so.0; }; })
>
> libtool: install: (cd /home2/salman/local/lib && { ln -s -f libctf-parser.so.0.0.0 libctf-parser.so || { rm -f libctf-parser.so && ln -s libctf-parser.so.0.0.0 libctf-parser.so; }; })
>
> libtool: install: /usr/bin/install -c .libs/libctf-parser.lai /home2/salman/local/lib/libctf-parser.la
>
> libtool: install: warning: relinking `libctf-ast.la'
>
> libtool: install: (cd /home2/salman/packages/CTF/babeltrace/formats/ctf/metadata; /bin/bash /home2/salman/packages/CTF/babeltrace/libtool --silent --tag CC --mode=relink gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall -Wformat -I../../../include -g -O2 -o libctf-ast.la -rpath /home2/salman/local/lib ctf-visitor-xml.lo ctf-visitor-parent-links.lo ctf-visitor-semantic-validator.lo ctf-visitor-generate-io-struct.lo ../../../types/libbabeltrace_types.la -lpopt -luuid -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lglib-2.0 )
>
> /usr/bin/ld: /home2/salman/local/lib/libuuid.a(compare.o): relocation R_X86_64_PC32 against symbol `uuid_unpack' can not be used when making a shared object; recompile with -fPIC
>
> /usr/bin/ld: final link failed: Bad value
>
> collect2: ld returned 1 exit status
>
> libtool: install: error: relink `libctf-ast.la' with the above command before installing it
>
> make[5]: *** [install-libLTLIBRARIES] Error 1
>
>
>
> It will be really great if you can help with this matter. Thanks
I've never seen this error. What version of babeltrace or git commit id
are you using ? What is your Linux distribution ? You seem to have a
stale libuuid.a in your /home2/salman/local/lib/ , did you install it on
purpose ? It looks like this libuuid.a is getting in the way and
overrides the system's libuuid. And it's a .a (static linking) rather
than tha .so, so this might explain your issues.
We'd also need to know which target you compile for (x86 32 or 64 ?) and
whether this libuuid.a is 32-bit or 64-bit. Also try removing it from
your lib search path.
Best regards,
Mathieu
>
>
>
> Best Regards,
>
> Salman
>
> --
>
> Salman Rafiq
>
> Industrial Communication
>
> Fraunhofer-Einrichtung für Systeme der Kommunikationstechnik ESK
>
>
>
> Hansastraße 32 | 80686 München
>
> Telefon, Fax: +49 89 547088-356 | +49 89 547088-66-356
>
> E-Mail: salman.rafiq at esk.fraunhofer.de<http://www.esk.fraunhofer.de/>
>
>
>
> Internet:
>
> http://www.esk.fraunhofer.de<http://www.esk.fraunhofer.de/>
>
> http://www.facebook.com/FraunhoferESK
> http://www.twitter.com/FraunhoferESK
>
>
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list