[minicom-Bugs][315708] minicom gettext changes do not compile on macOS 10.12
minicom-bugs at alioth.debian.org
minicom-bugs at alioth.debian.org
Wed Apr 5 07:47:19 UTC 2017
minicom-Bugs item #315708, was opened at 2017-04-05 02:47 by Christopher Chavez
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=315708&group_id=30018
Status: Open
Priority: 3
Submitted By: Christopher Chavez (chrstphrchvz-guest)
Assigned to: Nobody (None)
Summary: minicom gettext changes do not compile on macOS 10.12
Category: None
Group: None
Resolution: None
Initial Comment:
Using gcc 4.9 and gettext 0.19.8 from macports. I get an error similar to the following on macOS 10.12 during `make`:
Undefined symbols for architecture x86_64:
"_gettext", referenced from:
_show_status in main.o
ld: symbol(s) not found for architecture x86_64
I think the gettext support added by patch in [#315392] might not have been complete; by following the guidelines at https://www.gnu.org/software/gettext/FAQ.html#integrating_howto I noticed that copying gettext.h (from /opt/local/share/gettext/) to ./lib/ and forcing gettext.h to be included in intl.h by placing
#include "gettext.h"
# define _(Text) gettext (Text)
after `# include <locale.h>`, and removing `# define _(Text) Text`, minicom compiles. However I'm not sure that's the proper way to get it working.
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=100031&aid=315708&group_id=30018
More information about the minicom-devel
mailing list