This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

HPUX `make'


Joel, you said you'd built GDB 5.3 on HP/UX recently, right?  Were you using
GNU tools?


I just tried to build GDB on an HP/UX (11i I think) system for the first
time.  It appears that /usr/bin/make can't handle at least two things in the
makefiles: $(VAR): targets, and "-include".  I ended up having to build GNU make.

I didn't get terribly far after that, either.  I'm using the installed
compiler, which I believe is the ANSI rather than bundled one; at least the
documentation says so and -Aa / -Ae work.  With cc:
cc: "../../gdb/intl/gettextP.h", line 49: error 1000: Unexpected symbol: "nls_uint32".
cc: "../../gdb/intl/gettextP.h", line 50: error 1584: Inconsistent type declaration: "SWAP".

Some limitation in the accepted syntax for "inline", I think.

I reconfigured forcing -Aa, and it did a little better, but bombed out in
libiberty not knowing how big a 'struct stat' was; some definition not
getting picked up...

I restarted using "cc -Aa -D_HPUX_SOURCE", based on a vague memory from this
list, and got much further; it went until <sys/core.h> is included in BFD. 
That file apparently requires -Ae.  Similar problems in GDB, which uses long
long.  So I ran "make CC='cc -Ae -D_HPUX_SOURCE', after configuring with
-Aa, and then I got out a working GDB binary.

So: how should one configure on this system to use the native tools, and can
we document it?  Any idea why configuring with -Ae didn't work?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]