#8 util/check.c uses textdomain() and fails without NLS

closed-fixed
nobody
None
5
2010-04-08
2010-04-08
Anonymous
No

When compiling without NLS support the gnutext libraries will never get linked and then cracklib-check fails to build with this....

libtool: link: gcc -O2 -pipe -o cracklib-check check.o ../lib/.libs/libcrack.a -lz
check.o:check.o:(.text+0x48): undefined reference to `_textdomain'

Discussion

  • Alan Hourihane
    Alan Hourihane
    2010-04-08

    The textdomain() call should be wrapped with...

    #ifdef ENABLE_NLS
    ...
    #endif

    in util/check.c

     
  • Changed in SVN, please try it and let me know if that doesn't resolve it for you.

     
    • status: open --> closed-fixed