This is the mail archive of the gdb-prs@sources.redhat.com 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/1207: gdb final link fails due to missing -lintl


>Number:         1207
>Category:       gdb
>Synopsis:       gdb final link fails due to missing -lintl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri May 09 16:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Warren Dodge
>Release:        GNU gdb 5.3
>Organization:
>Environment:
SunOS rosewood 5.8 Generic_108528-18 sun4u sparc SUNW,Ultra-5_10 Solaris

Reading specs from /proj/wdt/gnu_sun5.8/gcc-3.2.3/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/proj/wdt/gnu_sun5.8/gcc-3.2.3 --with-local-prefix=/proj/wdt/gnu_sun5.8/gcc-3.2.3 --with-gnu-ld --with-ld=/proj/wdt/gnu_sun5.8/binutils-2.13.2.1/bin/gld --with-gnu-nm --with-nm=/proj/wdt/gnu_sun5.8/binutils-2.13.2.1/bin/gnm --with-gnu-as --with-as=/proj/wdt/gnu_sun5.8/binutils-2.13.2.1/bin/gas --enable-threads=posix --enable-shared --enable-languages=all -disable-nls
Thread model: posix
gcc version 3.2.3
This GDB was configured as "sparc-sun-solaris2.8".
>Description:
-lintl missing on final compile step for gdb

Generally I had been doing --disable-nls I decided to not do this when I build gdb again after installing gcc-3.2.3

It got up to the end and I got these errors
rm -f gdb
gcc -g -O2  -I/usr/include/v9    -Wl,-export-dynamic   \
        -o gdb gdb.o main.o cli-dump.o 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 libgdb.a \
           ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a  ../libiberty/libiberty.a -lncurses -lsocket -lnsl    -ldl -lm -lsocket  ../libiberty/libiberty.a  
main.o: In function `captured_main':
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb/../../gdb-5.3/gdb/main.c:162: undefined reference to `libintl_bindtextdomain'
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb/../../gdb-5.3/gdb/main.c:163: undefined reference to `libintl_textdomain'
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb/../../gdb-5.3/gdb/main.c:420: undefined reference to `libintl_gettext'
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb/../../gdb-5.3/gdb/main.c:390: undefined reference to `libintl_gettext'
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb/../../gdb-5.3/gdb/main.c:524: undefined reference to `libintl_gettext'
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb/../../gdb-5.3/gdb/main.c:592: undefined reference to `libintl_gettext'
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb/../../gdb-5.3/gdb/main.c:622: undefined reference to `libintl_gettext'
main.o:/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb/../../gdb-5.3/gdb/main.c:681: more undefined references to `libintl_gettext' follow
../bfd/libbfd.a(bfd.o): In function `bfd_errmsg':
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/bfd/../../gdb-5.3/bfd/bfd.c:357: undefined reference to `libintl_dgettext'
../bfd/libbfd.a(bfd.o): In function `bfd_assert':
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/bfd/../../gdb-5.3/bfd/bfd.c:700: undefined reference to `libintl_dgettext'
../bfd/libbfd.a(bfd.o): In function `_bfd_abort':
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/bfd/../../gdb-5.3/bfd/bfd.c:718: undefined reference to `libintl_dgettext'
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/bfd/../../gdb-5.3/bfd/bfd.c:722: undefined reference to `libintl_dgettext'
/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/bfd/../../gdb-5.3/bfd/bfd.c:725: undefined reference to `libintl_dgettext'
../bfd/libbfd.a(libbfd.o):/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/bfd/../../gdb-5.3/bfd/libbfd.c:1437: more undefined references to `libintl_dgettext' follow
collect2: ld returned 1 exit status
make[1]: *** [gdb] Error 1
make[1]: Leaving directory `/proj/wdtold/warrend/gnusrc/200010-gdb-5.3/gdb-5.3_sun5.8/gdb'

I did the command by hand adding -lintl and it finished up fine.
Here is config.cache info
config.cache:ac_cv_header_libintl_h=${ac_cv_header_libintl_h='yes'}
config.cache:ac_cv_lib_intl_bindtextdomain=${ac_cv_lib_intl_bindtextdomain='yes'}
config.cache:gt_cv_func_gettext_libintl=${gt_cv_func_gettext_libintl='yes'}
config.cache:nls_cv_header_intl=${nls_cv_header_intl=''}

Let me know what else you need.

>How-To-Repeat:

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