tech-pkg archive

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

Re: Build fix for lang/python312 on macOS



On Mon, Nov 25, 2024 at 05:57:05PM -0600, Pierre Pronchery wrote:
> 			Hi tech-pkg@,
> 
> When trying to build lang/python312 from pkgsrc (2024Q3 branch), it
> fails with the following errors:
> 
> > Undefined symbols for architecture x86_64:
> >   "_libintl_bindtextdomain", referenced from:
> >       __locale_bindtextdomain in _localemodule.o
> >   "_libintl_dcgettext", referenced from:
> >       __locale_dcgettext in _localemodule.o
> >   "_libintl_dgettext", referenced from:
> >       __locale_dgettext in _localemodule.o
> >   "_libintl_gettext", referenced from:
> >       __locale_gettext in _localemodule.o
> >   "_libintl_setlocale", referenced from:
> >       __locale_setlocale in _localemodule.o
> >       __locale_setlocale in _localemodule.o
> >       __locale_localeconv in _localemodule.o
> >       __locale_localeconv in _localemodule.o
> >       __locale_localeconv in _localemodule.o
> >       __locale_localeconv in _localemodule.o
> >   "_libintl_textdomain", referenced from:
> >       __locale_textdomain in _localemodule.o
> > ld: symbol(s) not found for architecture x86_64
> > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> > gmake: *** [Makefile:1315: Programs/_freeze_module] Error 1
> > gmake: *** Waiting for unfinished jobs....
> > *** Error code 2
> > 
> > Stop.
> > bmake[1]: stopped making "install" in pkgsrc/lang/python312
> > *** Error code 1
> > 
> > Stop.
> > bmake: stopped making "install clean" in pkgsrc/lang/python312
> 
> 
> Re-introducing the following line in the Makefile allows the build to
> complete: (eg lang/python310 has it)
> 
> > +.include "../../devel/gettext-lib/buildlink3.mk”
> 
> There are still issues with the PLIST (WRT expat) but it looks like a
> separate problem.
> 
> Can I commit this change?
> 
> Cheers,
> -- 
> khorben



I ran into the same problem trying to build databases/tdb with python312
on Linux.  It was trying to link with -lintl for pyembed, but couldn't
find it, as the gettext-lib bl3 wasn't exposed to it.


Home | Main Index | Thread Index | Old Index