Opened 8 years ago

Closed 8 years ago

Last modified 3 years ago

#5990 closed defect (fixed)

gdb dont' compile

Reported by: claudio Owned by: claudio
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:



arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv5te -mtune=arm926ej-s -funit-at-a-time -fhonour-copts -msoft-float    -I. -I.././gdb -I.././gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode  -I../bfd -I.././gdb/../bfd -I.././gdb/../include -I../libdecnumber -I.././gdb/../libdecnumber   -DMI_OUT=1 -DTUI=1 -I/home/claudyus/code/openwrt-git/staging_dir/target-arm_uClibc- -I/home/claudyus/code/openwrt-git/staging_dir/target-arm_uClibc- -I/home/claudyus/code/openwrt-git/staging_dir/toolchain-arm_gcc-4.3.3_uClibc- -I/home/claudyus/code/openwrt-git/staging_dir/toolchain-arm_gcc-4.3.3_uClibc- -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror dbxread.c
cc1: warnings being treated as errors
dbxread.c: In function 'read_dbx_symtab':
dbxread.c:1341: error: 'nlist.n_other' may be used uninitialized in this function
make[5]: *** [dbxread.o] Error 1
make[5]: Leaving directory `/home/claudyus/code/openwrt-git/build_dir/target-arm_uClibc-'

Proposed patch

Index: gdb-6.8/gdb/dbxread.c
--- gdb-6.8.orig/gdb/dbxread.c	2009-10-13 13:35:13.000000000 +0200
+++ gdb-6.8/gdb/dbxread.c	2009-10-13 13:37:41.000000000 +0200
@@ -852,6 +852,7 @@
   {									\
     (intern).n_type = bfd_h_get_8 (abfd, (extern)->e_type);		\
     (intern).n_strx = bfd_h_get_32 (abfd, (extern)->e_strx);		\
+    (intern).n_other = 0;						\
     (intern).n_desc = bfd_h_get_16 (abfd, (extern)->e_desc);  		\
     if (bfd_get_sign_extend_vma (abfd))					\
       (intern).n_value = bfd_h_get_signed_32 (abfd, (extern)->e_value);	\


This patch is under test ;)

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by claudio

or workaround #5602

comment:2 Changed 8 years ago by agb

  • Resolution set to fixed
  • Status changed from new to closed

Workaround from #5602 applied in [17064]

comment:3 Changed 3 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.