[Bug build/12116] New: AIX 6.1 declares getthrds() in <procinfo.h>

haubi at gentoo dot org sourceware-bugzilla@sourceware.org
Wed Oct 13 13:43:00 GMT 2010


http://sourceware.org/bugzilla/show_bug.cgi?id=12116

           Summary: AIX 6.1 declares getthrds() in <procinfo.h>
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: haubi@gentoo.org


Compiling gdb-7.0.1 (with gcc) on AIX 6.1 gives this compiler error:

powerpc-ibm-aix6.1.0.0-gcc    -I. -I. -I./common -I./config
-DLOCALEDIR="\"/gentoo/prefix/usr/share/locale\"" -DHAVE_CONFIG_H
-I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include
-I../libdecnumber -I./../libdecnumber  -I./gnulib -Ignulib  -DMI_OUT=1 -DTUI=1 
-Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts  -c -o
aix-thread.o -MT aix-thread.o -MMD -MP -MF .deps/aix-thread.Tpo aix-thread.c
aix-thread.c: In function 'get_signaled_thread':
aix-thread.c:652: error: conflicting types for 'getthrds'
/usr/include/procinfo.h:921: error: previous declaration of 'getthrds' was here

This would be a simple patch for current cvs-HEAD of gdb/aix-thread.c:
+#ifndef _AIX61
  /* getthrds(3) isn't prototyped in any AIX 4.3.3 #include file.  */
  extern int getthrds (pid_t, struct thrdsinfo64 *, 
                       int, pthdb_tid_t *, int);
+#endif

This same error has been reported on the mailing list already: while reported
for AIX 6.1, Harald's patch does check for _AIX51 too:
http://lists.gnu.org/archive/html/bug-gdb/2010-02/msg00009.html
However, my AIX 5.3 here (TL8, with patches up to early 2010 IIRC) still does
not declare getthrds().
So it might even make sense to add a configure check for declaration of
getthrds(), because I've already seen IBM backporting declarations from AIX 6.1
to AIX 5.3 (flock() as the single example).

Thank you!

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Gdb-prs mailing list