This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
build/1626: build failure, gdb 5.1, native alphaev68-dec-osf5.1, -ltermcap -lm -lncurses
- From: mec dot gnu at mindspring dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 24 Apr 2004 08:40:32 -0000
- Subject: build/1626: build failure, gdb 5.1, native alphaev68-dec-osf5.1, -ltermcap -lm -lncurses
- Reply-to: mec dot gnu at mindspring dot com
>Number: 1626
>Category: build
>Synopsis: build failure, gdb 5.1, native alphaev68-dec-osf5.1, -ltermcap -lm -lncurses
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 24 08:48:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: mec.gnu@mindspring.com
>Release: gdb 6.1
>Organization:
>Environment:
native alphaev68-dec-osf5.1
building with gcc 3.3.3, binutils 2.14
>Description:
The build log says:
rm -f gdb
gcc -g -O2 \
-o gdb gdb.o libgdb.a \
../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a ./../intl/libintl.a ../libiberty/libiberty.a -ltermcap -lm -lncurses ../libiberty/libiberty.a
keypad
cbreak
_setecho
nodelay
_setnonl
LINES
COLS
def_prog_mode
def_shell_mode
stdscr
_acs_map
curscr
getcury
getcurx
_ring
savetty
resetty
napms
collect2: ld returned 1 exit status
make[1]: *** [gdb] Error 1
make[1]: Leaving directory `/cluster/members/member0/tmp/chastain/build/alphaev68-dec-osf5.1/vanilla/target/native/gdb-6.1/gdb'
make: *** [all-gdb] Error 2
The problem is simple. In the library list, -lncurses appears after -ltermcap; it needs to appear before.
gdb 6.0 built on this platform The library list for gdb 6.0 does not include -lncurses, so there is no ordering problem.
>How-To-Repeat:
Build gdb on native alphaev68-dec-osf5.1.
>Fix:
The problem is in configure.in. The autoconf test for ncurses is before the autoconf test for termlib. But the various autoconf macros build the library list in reverse order (lowest libraries first), so the the test for ncurses needs to come *after* the test for termlib.
>Release-Note:
>Audit-Trail:
>Unformatted: