[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] static linking bug?
From: |
Joe Damato |
Subject: |
[Libunwind-devel] static linking bug? |
Date: |
Wed, 16 Feb 2011 23:44:22 -0800 |
hi -
i am trying to static link -lunwind -lunwind-x86_64 -lunwind-ptrace in
that order:
g++ -g -O2 -o .libs/blah blah.o debugger.o -lunwind -lunwind-x86_64
-lunwind-ptrace -lcoredumper
/builddir/build/BUILD/blah-1.0.0/.libs/libblah.so -lrt -lz -lssl
-lcrypto -ldl -lxtrace -levent -lpcap -lpthread -lconfuse -Wl,--rpath
-Wl,/usr/lib
(i have removed all of libunwind's .so files because i _must_ static
link these libraries to my binary for a variety of reasons)
I get the following output:
/usr/lib/libunwind-ptrace.a(_UPT_find_proc_info.o): In function
`_Ux86_64_dwarf_read_encoded_pointer':
(.text+0x0): multiple definition of `_Ux86_64_dwarf_read_encoded_pointer'
/usr/lib/libunwind-x86_64.a(Gpe.o):(.text+0x0): first defined here
/usr/lib/libunwind-x86_64.a(Gresume.o): In function `_Ux86_64_local_resume':
(.text+0x100): undefined reference to `_Ux86_64_setcontext'
collect2: ld returned 1 exit status
i get this linking error on 0.99 and from the code in the git repository.
am i doing something wrong or is this an actual bug? any ideas on how
i can fix this?
thanks for any hints here,
joe
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Libunwind-devel] static linking bug?,
Joe Damato <=