Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with glib-gettext #1

Open
gerjomarty opened this issue Jun 2, 2020 · 0 comments
Open

Issue with glib-gettext #1

gerjomarty opened this issue Jun 2, 2020 · 0 comments

Comments

@gerjomarty
Copy link

Thanks so much for uploading this script. I managed to get a static version of ffmpeg built in a FreeNAS jail.

I ran into an error when building pkg-config, unfortunately I didn't save the full log, but the specific line was:

error: m4_copy: won't overwrite defined macro: glib_DEFUN

I worked around the error by applying this patch before running autogen.sh for pkg-config. Sorry it's not a pull request, as I'm not sure if others had this error or not, and I ended up building ffmpeg with libass support - I understand this script wasn't aiming for libass support.

diff --git a/glib/m4macros/glib-gettext.m4 b/glib/m4macros/glib-gettext.m4
index 5217fd8..9f39b5f 100644
--- a/glib/m4macros/glib-gettext.m4
+++ b/glib/m4macros/glib-gettext.m4
@@ -36,8 +36,8 @@ dnl We go to great lengths to make sure that aclocal won't
 dnl try to pull in the installed version of these macros
 dnl when running aclocal in the glib directory.
 dnl
-m4_copy([AC_DEFUN],[glib_DEFUN])
-m4_copy([AC_REQUIRE],[glib_REQUIRE])
+m4_copy_force([AC_DEFUN],[glib_DEFUN])
+m4_copy_force([AC_REQUIRE],[glib_REQUIRE])
 dnl
 dnl At the end, if we're not within glib, we'll define the public
 dnl definitions in terms of our private definitions.

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant