NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/40983: iconv(3) man page says linking -lc is enough, but -liconv is needed
>Number: 40983
>Category: lib
>Synopsis: iconv(3) man page says linking -lc is enough, but -liconv is
>needed
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 08 16:30:00 +0000 2009
>Originator: Michael Stapelberg
>Release: NetBSD 5.99.7
>Organization:
>Environment:
NetBSD ms 5.99.7 NetBSD 5.99.7 (GENERIC) #9: Fri Feb 27 22:09:54 CET 2009
root@ms:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
When not specifying -liconv, I get:
src/util.o: In function `convert_utf8_to_ucs2':
src/util.c:161: undefined reference to `libiconv_open'
src/util.c:169: undefined reference to `libiconv'
src/util.c:172: undefined reference to `libiconv'
gmake: *** [all] Error 1
However, the man page says:
NAME
iconv_open, iconv_close, iconv -- codeset conversion functions
LIBRARY
Standard C Library (libc, -lc)
>How-To-Repeat:
Use iconv_open/iconv somewhere
>Fix:
Use -liconv
Home |
Main Index |
Thread Index |
Old Index