tech-pkg archive

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

Build fix for lang/python312 on macOS



			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

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index