Menu

#96 [patch] Link with gettext library

None
closed-fixed
nobody
None
5
2023-02-17
2023-01-23
No

I'm not an autotools expert, so not sure if it's the correct fix, but in works on FreeBSD.
The problem is that you need to explicitly link with gettext library (which is usually -lintl) on systems which don't have gettext functionality in libc.

1 Attachments

Discussion

  • Michael Speck

    Michael Speck - 2023-02-17
    • status: open --> closed-fixed
    • Group: -->
     
  • Michael Speck

    Michael Speck - 2023-02-17

    I've added $LIBINTL to LIBS in configure.ac. That location is more suitable I think. Also since gettext.m4 version 0.11 it should be LIBINTL (though INTLLIBS is still defined for backward compatibility). I'm also not too familiar with gettext and macros, I just now read a bit about it and I always thought the AM_GNU_GETTEXT macro would add the library dependency directly to LIBS like other macros do but apparently it doesn't. Anyways, it should work now and use the internal intl stuff of the package although it is a complete mystery to me how it is supposed to find the necessary includes in ./intl. There is an INCINTL variable but it is not exported from the macro... Can you please test it? Thanks!

     

Log in to post a comment.

MongoDB Logo MongoDB