This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2282: 64-bit build fails on solaris 9 (ld problems with wattr_on)
- From: m dot c dot vernon at warwick dot ac dot uk
- To: gdb-gnats at sources dot redhat dot com
- Date: 3 Jul 2007 08:37:48 -0000
- Subject: gdb/2282: 64-bit build fails on solaris 9 (ld problems with wattr_on)
- Reply-to: m dot c dot vernon at warwick dot ac dot uk
>Number: 2282
>Category: gdb
>Synopsis: 64-bit build fails on solaris 9 (ld problems with wattr_on)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 03 08:48:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: m.c.vernon@warwick.ac.uk
>Release: GNU gdb 6.6
>Organization:
>Environment:
SunOS bolshevik 5.9 Generic_118558-21 sun4u sparc SUNW,Sun-Fire-V440 Solaris
gcc version 3.4.2
This GDB was configured as "sparc-sun-solaris2.9".
>Description:
Building a 64-bit version fails due to linking errors:
gcc -m64 \
-o gdb gdb.o libgdb.a \
../readline/libreadline.a ../opcodes/libopcodes.a
../bfd/libbfd.a ./../intl/libintl.a
../libiberty/libiberty.a -ldl -lcurses -lsocket
-lnsl -lm ../libiberty/libiberty.a
Undefined first referenced
symbol in file
wattr_on libgdb.a(tui-wingeneral.o)
wattr_off libgdb.a(tui-wingeneral.o)
ld: fatal: Symbol referencing errors. No output written to gdb
I tried adding -L /usr/xpg4/lib -R /usr/xpg4/lib as per the the wattr_on man page, but that didn't change the error message. I can work-around this by ./configure --disable-tui, but that's far from ideal.
>How-To-Repeat:
CC=-m64 ./configure
make
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: