From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24818 invoked by alias); 23 Feb 2009 02:32:37 -0000 Received: (qmail 24806 invoked by uid 22791); 23 Feb 2009 02:32:36 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from col0-omc2-s9.col0.hotmail.com (HELO col0-omc2-s9.col0.hotmail.com) (65.55.34.83) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Feb 2009 02:32:31 +0000 Received: from COL101-W51 ([65.55.34.72]) by col0-omc2-s9.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 22 Feb 2009 18:32:30 -0800 Message-ID: From: Jay To: Subject: gdb 6.7.1 hppa64-hp-hpux11.11 "needs" _XOPEN_SOURCE_EXTENDED for various errors Date: Mon, 23 Feb 2009 02:55:00 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00429.txt.bz2 Building gdb 6.7.1 for hppa64-hp-hpux11.11 (11iv1): =20 32bit already built and minimall works, good. =20 /src/gdb-6.7.1/gdb/ser-tcp.c: In function `net_open': /src/gdb-6.7.1/gdb/ser-tcp.c:207: warning: passing arg 5 of `getsockopt' fr= om in compatible pointer type gmake[2]: *** [ser-tcp.o] Error 1 =20 -bash-3.2$ uname -a HP-UX unknown B.11.11 U 9000/800 1595760578 unlimited-user license =20 CXX=3Dg++64 CC=3Dgcc64 /src/gdb-6.7.1/configure -disable-nls -prefix=3D/usr= /local/64 =20 =20 -bash-3.2$ gcc64 -v (bootstrapped through bundled K&R cc and gcc 3.3.6..)=20 Reading specs from /usr/local/64/lib/gcc/hppa64-hp-hpux11.11/3.4.6/specs Configured with: /src/gcc-3.4.6/configure -disable-bootstrap -disable-nls -= verbo se -prefix=3D/usr/local/64 -with-as=3D/usr/local/64/bin/gas -with-gnu-as Thread model: single gcc version 3.4.6 =20 -bash-3.2$ g++64 -v (bootstrapped through bundled K&R cc and gcc 3.3.6..)= =20 Reading specs from /usr/local/64/lib/gcc/hppa64-hp-hpux11.11/3.4.6/specs Configured with: /src/gcc-3.4.6/configure -disable-bootstrap -disable-nls -= verbo se -prefix=3D/usr/local/64 -with-as=3D/usr/local/64/bin/gas -with-gnu-as Thread model: single gcc version 3.4.6 -bash-3.2$ =20 I'm still working on getting these to 4.3.3. =20 =20 /usr/include/sys/socket.h ROUGHLY reads: =20 #if defined(_XOPEN_SOURCE_EXTENDED) =20 =20 /* what you expect */ extern int getsockopt (... socklen_t*); =20 =20 #else =20 =20 /* not what you expect, but good enough for 32bit */ extern int getsockopt (... int *); =20 =20 #endif =20 -bash-3.2$ gdiff -c4 /src/gdb-6.7.1/gdb/ser-tcp.c.orig /src/gdb-6.7.1/gdb/s= er-tcp.c *** /src/gdb-6.7.1/gdb/ser-tcp.c.orig Sun Feb 22 21:13:35 2009 --- /src/gdb-6.7.1/gdb/ser-tcp.c Sun Feb 22 21:14:00 2009 *************** *** 17,24 **** --- 17,25 ---- You should have received a copy of the GNU General Public License along with this program. If not, see . */ + #define _XOPEN_SOURCE_EXTENDED #include "defs.h" #include "serial.h" #include "ser-base.h" #include "ser-tcp.h" =20 I realize you'd want something "configured". =20 /src/gdb-6.7.1/gdb/tui/tui-io.c: In function `tui_getc': /src/gdb-6.7.1/gdb/tui/tui-io.c:681: warning: implicit declaration of funct= ion ` napms' =20 Similar problem. =20 /usr/include/curses.h only declares napms under an #ifdef. I don't know why I didn't see this with 32bit. =20 =20 -bash-3.2$ gdiff -u4 /src/gdb-6.7.1/gdb/tui/tui-io.c.orig /src/gdb-6.7.1/gd= b/tui/tui-io.c --- /src/gdb-6.7.1/gdb/tui/tui-io.c.orig 2009-02-22 21:19:11.0000000= 00 -0800 +++ /src/gdb-6.7.1/gdb/tui/tui-io.c 2009-02-22 21:19:25.000000000 -0800 @@ -19,8 +19,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#define _XOPEN_SOURCE_EXTENDED #include "defs.h" #include "target.h" #include "event-loop.h" #include "event-top.h" =20 =20 /src/gdb-6.7.1/gdb/tui/tui-regs.c: In function `tui_display_register': /src/gdb-6.7.1/gdb/tui/tui-regs.c:553: warning: implicit declaration of fun= ction `waddstr' gmake[2]: *** [tui-regs.o] Error 1 gmake[2]: Leaving directory `/home/jay/obj/gdb/64/gdb' gmake[1]: *** [all-gdb] Error 2 gmake[1]: Leaving directory `/home/jay/obj/gdb/64' gmake: *** [all] Error 2 =20 _XOPEN_SOURCE_EXTENDED also fixes that. =20 again: =20 /src/gdb-6.7.1/gdb/tui/tui-stack.c: In function `tui_show_locator_content': /src/gdb-6.7.1/gdb/tui/tui-stack.c:257: warning: implicit declaration of fu= nction `waddstr' gmake[2]: *** [tui-stack.o] Error 1 =20 at this point I stopped and put it in config.h, which is perhaps where it b= elongs. =20 =20 Thanks, - Jay