This is the mail archive of the gdb-prs@sourceware.org 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]

gdb/2282: 64-bit build fails on solaris 9 (ld problems with wattr_on)


>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:


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