Subject: wchar.h functions
To: None <netbsd-users@netbsd.org>
From: Alexander V. Butenko <avb@avb.bas-net.by>
List: netbsd-users
Date: 08/10/2006 12:11:00
Hello,

I'm making a port of ekg2 application with UTF-8 support.
Makefile is done, but compilation stops on linking process.

I read in manuals that this functions must be in libc. 

I'm using -current branch, maybe something was changed there?

The error is:

cc -O2 -I/usr/pkgsrc/wip/ekg2/work/.buildlink/include -Wall -std=c99
-I/usr/include/openssl -Wl,-R/usr/pkg/lib -o ekg2 audio.o commands.o
char.o configfile.o dynstuff.o ekg.o emoticons.o events.o log.o
metacontacts.o msgqueue.o plugins.o protocol.o sessions.o stuff.o
themes.o userlist.o vars.o windows.o xmalloc.o scripts.o win32.o
-Wl,--export-dynamic  -L/usr/lib/
-L/usr/pkgsrc/wip/ekg2/work/.buildlink/lib ../compat/libcompat.a -lc
-lintl -lkvm
xmalloc.o: In function `xwcsdup':
xmalloc.c:(.text+0x877): undefined reference to `wcsdup'
xmalloc.o: In function `xwcsncasecmp':
xmalloc.c:(.text+0x16b): undefined reference to `wcsncasecmp'
xmalloc.c:(.text+0x18c): undefined reference to `wcsncasecmp'
xmalloc.o: In function `xwcscasecmp':
xmalloc.c:(.text+0x619): undefined reference to `wcscasecmp'
xmalloc.c:(.text+0x639): undefined reference to `wcscasecmp'
gmake[2]: *** [ekg2] Error 1
gmake[2]: Leaving directory
`/usr/pkgsrc/wip/ekg2/work/ekg2-20060802/ekg'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/wip/ekg2/work/ekg2-20060802'
gmake: *** [all] Error 2
*** Error code 2

Thanks in advance

Alex