Wednesday, July 27, 2005

Subversion Bug of libintl_dgettext

> /usr/local/bin/msgfmt -o subversion/po/ subversion/po/es.po
> cd subversion/libsvn_subr && /bin/bash /usr/src/svn/libtool --silent --mode=link cc -g -g
> -DNEON_ZLIB -DNEON_SSL -R/usr/local/db42/lib -L/usr/local/db42/lib -L/usr/local/lib -rpath
> /usr/local/svn11/lib -o -no-undefined auth.lo cmdline.lo config.lo config_auth.lo
> config_file.lo config_win.lo date.lo error.lo hash.lo io.lo md5.lo opt.lo path.lo pool.lo
> quoprint.lo sorts.lo stream.lo subst.lo svn_base64.lo svn_string.lo target.lo time.lo utf.lo
> utf_validate.lo validate.lo xml.lo /usr/local/lib/ -ldb -lexpat
> /usr/local/lib/ -lsendfile -lrt -lm -lsocket -lnsl -lresolv -lpthread -ldl -lsocket
> "subversion/svnserve/main.c", line 492: warning: statement not reached
> "subversion/clients/cmdline/util.c", line 398: warning: statement not reached
> Undefined first referenced
> symbol in file
> libintl_bindtextdomain cmdline.lo
> libintl_dgettext opt.lo
> libintl_textdomain cmdline.lo
> ld: fatal: Symbol referencing errors. No output written to .libs/

I think Solaris needs to link against libintl but I don't see and
-lintl in your link command, I guess that's a bug in the new nls
stuff. You could try

$ ./configure --disable-nls
$ LDFLAGS='-lintl' ./configure
$ make EXTRA_LDFLAGS='-lintl'

So the steps to follow are

1. sh ./ ( played around with build/ lt_pversion=1.5)
2. ./configure --disable-shared --diable-nls prefix=
3. make
4, make install


1 comment:

Harini said...

i am enlightened :P