* hpux build errors, and -Werror
@ 2006-03-01 15:23 Randolph Chung
0 siblings, 0 replies; only message in thread
From: Randolph Chung @ 2006-03-01 15:23 UTC (permalink / raw)
To: gdb
Currently on hppa64-hp-hpux11.11, gdb fails to build with -Werror
because we are not getting the const flag correct with iconv() calls.
gdb's configure script actually has some tests for this, from
acinclude.m4, however, the test doesn't actually work (at least in this
case), because configure doesn't compile the test program with -Werror,
and the resultant warning doesn't trigger the script to define ICONV_CONST
I'm not very good with autoconf & friends and can't figure out the right
way to fix it. Can somebody give me some hints?
On hppa2.0w-hp-hpux11.11, there is a different problem, at least on the
system I'm testing on:
ser-tcp.c:209 has a call to getsockopt. This causes a (fatal) warning:
../../gdb/gdb/ser-tcp.c:209: warning: passing arg 5 of `getsockopt' from
incompatible pointer type
getsockopt is declared as:
extern int getsockopt (int, int, int, void *, int *);
whereas socklen_t is:
typedef long unsigned int size_t
typedef size_t socklen_t;
I would argue the headers are broken on this platform, but nonetheless
we may need to find a way to workaround this in gdb. I can't think of
any good way to do this though.
Comments appreciated.
randolph
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-01 15:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-01 15:23 hpux build errors, and -Werror Randolph Chung
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).