public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/12116] New: AIX 6.1 declares getthrds() in <procinfo.h>
@ 2010-10-13 13:43 haubi at gentoo dot org
  2011-03-13 13:12 ` [Bug build/12116] " bruno at clisp dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: haubi at gentoo dot org @ 2010-10-13 13:43 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-12-06  5:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 13:43 [Bug build/12116] New: AIX 6.1 declares getthrds() in <procinfo.h> haubi at gentoo dot org
2011-03-13 13:12 ` [Bug build/12116] " bruno at clisp dot org
2011-03-15 18:05 ` brobecker at gnat dot com
2011-03-15 18:06 ` brobecker at gnat dot com
2011-03-15 20:29 ` haubi at gentoo dot org
2011-03-17 13:19 ` cvs-commit at gcc dot gnu.org
2011-03-17 13:23 ` brobecker at gnat dot com
2011-10-24 17:38 ` pedzsan at gmail dot com
2012-12-05 11:25 ` brobecker at gnat dot com
2012-12-05 14:53 ` pedzsan at gmail dot com
2012-12-05 14:56 ` haubi at gentoo dot org
2012-12-05 15:28 ` brobecker at gnat dot com
2012-12-06  5:07 ` brobecker at gnat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).