[Top][All Lists]

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

[Libunwind-devel] Error compiling libunwind 1.0.1 in a linux/ia64

From: Harald Servat
Subject: [Libunwind-devel] Error compiling libunwind 1.0.1 in a linux/ia64
Date: Mon, 19 Sep 2011 14:59:38 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; ca-valencia; rv: Gecko/20110907 SUSE/3.1.14 Thunderbird/3.1.14

Hash: SHA1


I was compiling libunwind 1.0.1 in a linux/ia64 machine when I found the
following error:

gcc -DHAVE_CONFIG_H -I. -I../include  -I../include
- -I../include/tdep-ia64 -I. -D_GNU_SOURCE -DNDEBUG  -g -O2 -fexceptions
- -Wall -Wsign-compare -MT ptrace/_UPT_find_proc_info.o -MD -MP -MF
$depbase.Tpo -c -o ptrace/_UPT_find_proc_info.o
ptrace/_UPT_find_proc_info.c &&\
mv -f $depbase.Tpo $depbase.Po
ptrace/_UPT_find_proc_info.c:102: error: conflicting types for
ptrace/_UPT_internal.h:72: error: previous declaration of
‘_UPTi_find_unwind_table’ was here
make[2]: *** [ptrace/_UPT_find_proc_info.o] Error 1

Looking at _UPT_internal.h (line 72), I guess that the returning type is
not as defined in _UPT_find_proc_info.c (line 102). I'd bet on the type
on the .c file, so I changed the header file and when I reran gmake I
encountered the next error

gcc -DHAVE_CONFIG_H -I. -I../include  -I../include
- -I../include/tdep-ia64 -I. -D_GNU_SOURCE -DNDEBUG  -g -O2 -fexceptions
- -Wall -Wsign-compare -MT ptrace/_UPT_get_dyn_info_list_addr.o -MD -MP
- -MF $depbase.Tpo -c -o ptrace/_UPT_get_dyn_info_list_addr.o
ptrace/_UPT_get_dyn_info_list_addr.c &&\
mv -f $depbase.Tpo $depbase.Po
ptrace/_UPT_get_dyn_info_list_addr.c: In function ‘get_list_addr’:
ptrace/_UPT_get_dyn_info_list_addr.c:65: error: too few arguments to
function ‘_UPTi_find_unwind_table’
gmake[2]: *** [ptrace/_UPT_get_dyn_info_list_addr.o] Error 1

Here, there's a missing argument (IP, Instruction Pointer?). After
looking at the code, I found that IP is not used in IA64, so I passed
(unw_word_t) 0

Has anyone a IA64 machine to test these two changes? Are these
modifications safe?

Version: GnuPG v2.0.15 (GNU/Linux)


WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]