Subject: pkg/20295: devel/gdb build broken on Solaris
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/12/2003 04:37:23
>Number:         20295
>Category:       pkg
>Synopsis:       devel/gdb build broken on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 11 09:38:00 PST 2003
>Originator:     grant beattie
>Release:        SunOS 5.8
System: SunOS u10 5.8 Generic_108528-16 sun4u sparc SUNW,Ultra-4
Architecture: sparc
Machine: sun4u
The build of gdb fails on Solaris because it needs to be linked with
gettext's libintl.

gcc -O -I/usr/pkg/include  -I/usr/include/v9      -o gdb  main.o libgdb.a cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-utils.o mi-out.o mi-console.o  mi-cmds.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o  mi-cmd-disas.o  mi-main.o mi-parse.o mi-getopt.o    ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a  ../libiberty/libiberty.a  -ltermlib -lsocket -lnsl    -ldl -lm -lsocket    ../libiberty/libiberty.a  
Undefined                       first referenced
 symbol                             in file
libintl_dgettext                    ../bfd/libbfd.a(bfd.o)
ld: fatal: Symbol referencing errors. No output written to gdb
collect2: ld returned 1 exit status

Simply including gettext-lib/ did not make it work, and
I'm out of brain power for ideas for now.