[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
multiple definition of `_nl_find_msg' and undefined reference to `libint
From: |
Jeremy C. Reed |
Subject: |
multiple definition of `_nl_find_msg' and undefined reference to `libintl_gettext' |
Date: |
Tue, 1 Apr 2003 23:58:20 -0800 (PST) |
When building popt-1.7 (Command line option parsing library), I receive:
/usr/bin/gcc -Wall -O2
-I/tmp/pkgsrc/devel/popt/work.shasta/.buildlink/include -Wl,-R/usr/lib -o
test1 -static test1.o -L/tmp/pkgsrc/devel/popt/work.shasta/.buildlink/lib
./.libs/libpopt.a
/tmp/pkgsrc/devel/popt/work.shasta/.buildlink/lib/libintl.a -lc
/usr/lib/libintl.a -lc
/usr/lib/libc.a(dcigettext.o): In function `_nl_find_msg':
/home/jeremy/netbsd/usr/pkgsrc/devel/glibc/work/glibc-2.2.5/intl/dcigettext.c:662:
multiple definition of `_nl_find_msg'
/tmp/pkgsrc/devel/popt/work.shasta/.buildlink/lib/libintl.a(dcigettext.o)(.text+0x6b0):
first defined here
/usr/bin/ld: Warning: size of symbol `_nl_find_msg' changed from 851 to
1142 in /usr/lib/libc.a(dcigettext.o)
collect2: ld returned 1 exit status
As you can see above this was defined in my glibc-2.2.5 build and
gettext-lib-0.11.5. This was using gcc 3.2.1.
Also, when building many different programs, I get many lines like:
undefined reference to `libintl_gettext'
This is fixed by often adding -lintl. But I think that my glibc libc
should have this. I may have built it without this intl/gettext support; I
need to build again, but it takes a long time ...
Jeremy C. Reed
http://bsd.reedmedia.net/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- multiple definition of `_nl_find_msg' and undefined reference to `libintl_gettext',
Jeremy C. Reed <=