git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undefined symbols for Mac OS 10.14.4 build


Hi,

I?m trying to build CPython 3.8 from source on Mac OS 10.14.4 and running into undefined symbols problem at the linker stage.The commands I?m using are:

./configure --with-pydebug
make -s -j2

The undefined symbols are listed below.

I?ve found that if I modify pyconfig.h by changing
#define HAVE_LIBINTL_H 1
to
#undef HAVE_LIBINTL_H
the build completes.


This is my first time trying this so I?m not very familiar with the build process. It seems like I must be missing something since I don't think modifying pyconfig.h is a normal part of the process. Any suggestions?

Thanks,
Mark


Undefined symbols for architecture x86_64:
Undefined symbols for architecture x86_64:
  "_libintl_bindtextdomain", referenced from:
  "_libintl_bindtextdomain", referenced from:
      _PyIntl_bindtextdomain in libpython3.8d.a(_localemodule.o)
      _PyIntl_bindtextdomain in libpython3.8d.a(_localemodule.o)
  "_libintl_dcgettext", referenced from:
  "_libintl_dcgettext", referenced from:
      _PyIntl_dcgettext in libpython3.8d.a(_localemodule.o)
      _PyIntl_dcgettext in libpython3.8d.a(_localemodule.o)
  "_libintl_dgettext", referenced from:
  "_libintl_dgettext", referenced from:
      _PyIntl_dgettext in libpython3.8d.a(_localemodule.o)
      _PyIntl_dgettext in libpython3.8d.a(_localemodule.o)
  "_libintl_gettext", referenced from:
  "_libintl_gettext", referenced from:
      _PyIntl_gettext in libpython3.8d.a(_localemodule.o)
      _PyIntl_gettext in libpython3.8d.a(_localemodule.o)
  "_libintl_setlocale", referenced from:
  "_libintl_setlocale", referenced from:
      _PyLocale_setlocale in libpython3.8d.a(_localemodule.o)
      _PyLocale_setlocale in libpython3.8d.a(_localemodule.o)
      _locale_decode_monetary in libpython3.8d.a(_localemodule.o)
      _locale_decode_monetary in libpython3.8d.a(_localemodule.o)
  "_libintl_textdomain", referenced from:
  "_libintl_textdomain", referenced from:
      _PyIntl_textdomain in libpython3.8d.a(_localemodule.o)
      _PyIntl_textdomain in libpython3.8d.a(_localemodule.o)
ld: symbol(s) not found for architecture x86_64
ld: symbol(s) not found for architecture x86_64