Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* CVS version doesn't compile (ncurses library found, but no includes)
@ 2005-07-05 13:23 Klaus Zeitler
  2005-07-05 13:29 ` Daniel Jacobowitz
  2005-07-05 22:12 ` Mark Kettenis
  0 siblings, 2 replies; 4+ messages in thread
From: Klaus Zeitler @ 2005-07-05 13:23 UTC (permalink / raw)
  To: gdb

Hi,
I've had problems building the gdb CVS version. We've ncurses installed, but
not in a standard directory, i.e. in /opt/exp/gnu/lib and /opt/exp/gnu/include.
When I add /opt/exp/gnu/lib to LD_LIBRARY_PATH, configure finds the ncurses
library, but the configure check for ncurses.h fails. I tried adding
--includedir=/opt/exp/gnu/include to configure, but that didn't help.
How should I specify this additional include dir for the configure call?
Do I miss any important features, when I use the standard curses in
solaris 5.8 instead of ncurses?

Thanks

Klaus





-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             kzeitler@lucent.com  |
 ------------------------------------------
---
The meek shall inherit the earth - they are too weak to refuse


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

* Re: CVS version doesn't compile (ncurses library found, but no includes)
  2005-07-05 13:23 CVS version doesn't compile (ncurses library found, but no includes) Klaus Zeitler
@ 2005-07-05 13:29 ` Daniel Jacobowitz
  2005-07-06 14:07   ` Klaus Zeitler
  2005-07-05 22:12 ` Mark Kettenis
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-07-05 13:29 UTC (permalink / raw)
  To: Klaus Zeitler; +Cc: gdb

On Tue, Jul 05, 2005 at 03:23:21PM +0200, Klaus Zeitler wrote:
> Hi,
> I've had problems building the gdb CVS version. We've ncurses installed, but
> not in a standard directory, i.e. in /opt/exp/gnu/lib and /opt/exp/gnu/include.
> When I add /opt/exp/gnu/lib to LD_LIBRARY_PATH, configure finds the ncurses
> library, but the configure check for ncurses.h fails. I tried adding
> --includedir=/opt/exp/gnu/include to configure, but that didn't help.
> How should I specify this additional include dir for the configure call?

CFLAGS="-O2 -I/opt/exp/gnu/include".  --includedir is not supposed to
be searched in autoconf-using programs; it's an install directory only.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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

* Re: CVS version doesn't compile (ncurses library found, but no includes)
  2005-07-05 13:23 CVS version doesn't compile (ncurses library found, but no includes) Klaus Zeitler
  2005-07-05 13:29 ` Daniel Jacobowitz
@ 2005-07-05 22:12 ` Mark Kettenis
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Kettenis @ 2005-07-05 22:12 UTC (permalink / raw)
  To: kzeitler; +Cc: gdb

   From: Klaus Zeitler <kzeitler@lucent.com>
   Date: Tue, 05 Jul 2005 15:23:21 +0200

   Do I miss any important features, when I use the standard curses in
   solaris 5.8 instead of ncurses?

The standard curses on Solaris 8 will be fine.  you probably won't be
able to notice any difference at all.

Cheers,

Mark


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

* Re: CVS version doesn't compile (ncurses library found, but no includes)
  2005-07-05 13:29 ` Daniel Jacobowitz
@ 2005-07-06 14:07   ` Klaus Zeitler
  0 siblings, 0 replies; 4+ messages in thread
From: Klaus Zeitler @ 2005-07-06 14:07 UTC (permalink / raw)
  To: gdb

>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:
    Daniel> 
    Daniel> CFLAGS="-O2 -I/opt/exp/gnu/include".

CFLAGS alone didn't help, configure still wouldn't find ncurses.h, however
with CPPFLAGS="-I/opt/exp/gnu/include" configure found ncurses.h.
But then I ran into compile problems (the ncurses include dir unfortunately
also contained ansidecl.h, that was now found instead of the one that comes
with gdb). Unfortunately setting CFLAGS as above puts the additional include
dir in front of all the other include dirs.
Just out of curiosity I added the additional include dir for ncurses
at the end of INTERNAL_WARN_CFLAGS in gdb/Makefile.in and together with
the setting of CPPFLAGS I could configure and compile gdb.
I also noticed that there's already a comment in configure that it may be
difficult to produce gdb with ncurses in a non-standard dir.

But then again according to Mark's response I think I'll ditch ncurses and go
with the standard curses.

Thanks

Klaus

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             kzeitler@lucent.com  |
 ------------------------------------------
---
The probability of someone watching you is
proportional to the stupidity of your action.


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

end of thread, other threads:[~2005-07-06 14:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-05 13:23 CVS version doesn't compile (ncurses library found, but no includes) Klaus Zeitler
2005-07-05 13:29 ` Daniel Jacobowitz
2005-07-06 14:07   ` Klaus Zeitler
2005-07-05 22:12 ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox