🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1258

build problems for gdb-6.3 on hppa2.0w-hp-hpux11.11

#1258
From: Ulrich Windl
Date: Fri, 18 Mar 2005 08:24
115 lines
7352 bytes
Maybe you'd like to know about some build problems for gdb6-3 on HP-UX 11.11 (11i 
v1):

...
gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wtraditional -peda\
ntic ./regex.c -o regex.o
In file included from ./../include/xregex.h:26,
                 from ./regex.c:197:
./../include/xregex2.h:548: warning: ISO C90 does not support `static' or type \
qualifiers in parameter array declarators
In file included from ./regex.c:651:
./regex.c: In function `byte_compile_range':
./regex.c:4550: warning: signed and unsigned type in conditional expression
./regex.c:4560: warning: signed and unsigned type in conditional expression
./regex.c:4560: warning: signed and unsigned type in conditional expression
...
gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wtraditional -peda\
ntic ./concat.c -o concat.o
./concat.c: In function `concat_length':
./concat.c:112: warning: traditional C rejects ISO C style function definitions
./concat.c: In function `concat_copy':
./concat.c:127: warning: traditional C rejects ISO C style function definitions
./concat.c: In function `concat_copy2':
./concat.c:146: warning: traditional C rejects ISO C style function definitions
./concat.c: In function `concat':
./concat.c:157: warning: traditional C rejects ISO C style function definitions
./concat.c: In function `reconcat':
./concat.c:194: warning: traditional C rejects ISO C style function definitions
...
gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wtraditional -peda\
ntic ./asprintf.c -o asprintf.o
./asprintf.c: In function `asprintf':
./asprintf.c:49: warning: traditional C rejects ISO C style function definitions
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DHOST_HPPAHPUX -D_LARGEFILE64_SO\
URCE -DHPUX_CORE -I. -I. -I./../include -I./../intl -I../intl -W -Wall -Wstrict\
-prototypes -Wmissing-prototypes -g -O2 -c bfd.c -o bfd.o
In file included from bfd.c:209:
./../include/libiberty.h:80: warning: function declaration isn't a prototype
...

For Readline:
gcc -c -DHAVE_CONFIG_H   -I. -I. -DRL_LIBRARY_VERSION='"4.3"' -g -O2  bind.c
bind.c: In function `rl_function_of_keyseq':
bind.c:584: warning: comparison is always true due to limited range of data type
...
For gdb:
gcc -c -g -O2   -Dvfork=fork  -I. -I. -I./config -DLOCALEDIR="\"/usr/local/shar\
e/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -\
I./../bfd -I./../include -I../intl -I./../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -\
Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuni\
nitialized -Wformat-nonliteral -Wunused-label -Wunused-function  hppa-hpux-tdep\
.c
hppa-hpux-tdep.c: In function `hppa_hpux_push_dummy_code':
hppa-hpux-tdep.c:1381: warning: passing arg 1 of pointer to function makes poin\
ter from integer without a cast
...
gcc -c -g -O2   -Dvfork=fork  -I. -I. -I./config -DLOCALEDIR="\"/usr/local/shar\
e/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -\
I./../bfd -I./../include -I../intl -I./../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -\
Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuni\
nitialized -Wformat-nonliteral -Wunused-label -Wunused-function  infttrace.c
infttrace.c: In function `get_raw_pc':
infttrace.c:401: warning: implicit declaration of function `read_from_register_\
save_state'
infttrace.c: In function `map_to_gdb_tid':
infttrace.c:814: warning: suggest explicit braces to avoid ambiguous `else'
infttrace.c: In function `get_process_first_stopped_thread_id':
infttrace.c:1372: warning: cast from pointer to integer of different size
infttrace.c: In function `get_process_next_stopped_thread_id':
infttrace.c:1421: warning: cast from pointer to integer of different size
infttrace.c: In function `write_protect_page':
infttrace.c:2396: warning: cast from pointer to integer of different size
infttrace.c: In function `require_notification_of_events':
infttrace.c:3036: warning: cast from pointer to integer of different size
infttrace.c: In function `require_notification_of_exec_events':
...[many more]...
gcc -c -g -O2   -Dvfork=fork  -I. -I. -I./config -DLOCALEDIR="\"/usr/local/shar\
e/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -\
I./../bfd -I./../include -I../intl -I./../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -\
Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuni\
nitialized -Wformat-nonliteral -Wunused-label -Wunused-function  ./tui/tui.c
In file included from ./tui/tui.c:48:
/usr/include/term.h:49: error: conflicting types for 'chtype'
/usr/local/include/ncurses/ncurses.h:80: error: previous declaration of 'chtype\
' was here
/usr/include/term.h:55: error: conflicting types for 'NCURSES_BOOL'
/usr/local/include/ncurses/ncurses.h:107: error: previous declaration of 'NCURS\
ES_BOOL' was here
/usr/include/term.h:64: error: conflicting types for 'attr_t'
/usr/local/include/ncurses/ncurses.h:271: error: previous declaration of 'attr_\
t' was here
...
/usr/include/term.h:1217: error: conflicting types for 'tparm'
/usr/local/include/ncurses/ncurses.h:658: error: previous declaration of 'tparm\
' was here
gmake[1]: *** [tui.o] Error 1
gmake[1]: Leaving directory `/home/windl/GNU/gdb-6.3/gdb'
gmake: *** [all-gdb] Error 2


Examples for source:
/usr/include/term.h:
#ifndef _CHTYPE_DEFINED
#       define _CHTYPE_DEFINED
typedef uint32_t chtype;
#endif /* _CHTYPE_DEFINED */

/usr/local/include/ncurses/ncurses.h:
#undef  NCURSES_CH_T
#define NCURSES_CH_T chtype

typedef unsigned long chtype;

#include <stdio.h>
Technical Details
Message-ID: <mailman.4368.1111212685.32256.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,84d8aaf4a5389c64,start
X-Google-Attributes: gidf5053,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
From: "Ulrich Windl" <ulrich.windl@rz.uni-regensburg.de>
Newsgroups: gnu.gdb.bug
Subject: build problems for gdb-6.3 on hppa2.0w-hp-hpux11.11
Date: Fri, 18 Mar 2005 09:24:28 +0100
Organization: Universitaet Regensburg, Klinikum
Lines: 118
Approved: bug-gdb@gnu.org
Message-ID: <mailman.4368.1111212685.32256.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
X-Trace: news.Stanford.EDU 1111211760 23044 199.232.76.165 (19 Mar 2005 05:56:00 GMT)
X-Complaints-To: news@news.stanford.edu
To: bug-gdb@gnu.org
Envelope-to: bug-gdb@gnu.org
Priority: normal
X-mailer: Pegasus Mail for Windows (4.21c)
Content-description: Mail message body
X-Content-Conformance: HerringScan-0.25/Sophos-P=3.88.0+V=3.88+U=2.07.079+R=06
 December 2004+T=99353@20050318.081541Z
X-Mailman-Approved-At: Sat, 19 Mar 2005 01:11:21 -0500
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>