From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8943 invoked by alias); 23 Feb 2004 22:03:55 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8836 invoked from network); 23 Feb 2004 22:03:38 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 23 Feb 2004 22:03:38 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 53AAA47D62; Mon, 23 Feb 2004 14:03:34 -0800 (PST) Date: Mon, 23 Feb 2004 22:03:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA/RFC] (hppa/tui) Fix build failure due to missing wborder Message-ID: <20040223220334.GH1273@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2004-02/txt/msg00664.txt.bz2 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 594 Hello, Re: http://sources.redhat.com/ml/gdb-patches/2004-02/msg00654.html On HP/UX, the GDB build fails during the link due to a missing wborder. I found the symbol in libcur_colr.sl. To fix the build, I suggest the following change, although I could conceive that this is not the best way of handling this. Comments and suggestions warmly welcome. 2004-02-23 J. Brobecker * configure.in (LIBS): Add -lcur_colr when TUI is enabled and when using the HP curses library. * configure: Regenerate. Tested on HP/UX 11.00, and x86-linux. -- Joel --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="configure.in.diff" Content-length: 1831 Index: configure.in =================================================================== RCS file: /cvs/src/src/gdb/configure.in,v retrieving revision 1.147 diff -u -2 -0 -r1.147 configure.in --- configure.in 18 Feb 2004 19:01:36 -0000 1.147 +++ configure.in 23 Feb 2004 21:49:25 -0000 @@ -150,40 +150,45 @@ AC_ARG_ENABLE(tui, [ --enable-tui enable full-screen terminal user interface (TUI)], [case $enableval in yes | no) ;; *) AC_MSG_ERROR([bad value $enableval for --enable-tui]) ;; esac],enable_tui=yes) if test x"$enable_tui" = xyes; then if test -d $srcdir/tui; then if test "$ac_cv_search_initscr" != no; then CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" CONFIG_ALL="${CONFIG_ALL} all-tui" CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" + if test "$ac_cv_search_initscr" = "-lHcurses"; then + # Hcurses does not provide all of curses. Certain functions + # such as wborder for instance are provided by libcur_colr. + LIBS="$LIBS -lcur_colr" + fi fi fi fi # Enable gdbtk. AC_ARG_ENABLE(gdbtk, [ --enable-gdbtk enable gdbtk graphical user interface (GUI)], [case $enableval in yes | no) ;; *) AC_MSG_ERROR([bad value $enableval for --enable-gdbtk]) ;; esac], [if test -d $srcdir/gdbtk; then enable_gdbtk=yes else enable_gdbtk=no fi]) # We unconditionally disable gdbtk tests on selected platforms. case $host_os in --WIyZ46R2i8wDzkSu--