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

configure.ac: added pthread macro #90

Closed
wants to merge 1 commit into from

Conversation

yarda
Copy link
Contributor

@yarda yarda commented Aug 31, 2021

Fixes: #84

Signed-off-by: Jaroslav Škarvada jskarvad@redhat.com

Fixes: fenrus75#84

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Copy link

@mattst88 mattst88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem mentioned in #84 was already fixed by #82

Without the patches from that MR I can reproduce #84 and with the patches things build fine, so I think this MR is not necessary (and also incorrect).

@@ -3,6 +3,7 @@

AC_PREREQ([2.69])
AC_INIT([powertop], [2.14], [powertop@lists.01.org], [], [https://01.org/powertop])
AC_CANONICAL_TARGET

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect you added this because AX_PTHREAD appeared to need it. This was a bug and was fixed in autoconf-archive/autoconf-archive#233. See the discussion in autoconf-archive/autoconf-archive@2567e0c

Unfortunately, while the revert landed in master months ago the autoconf-archive maintainer has not made another release, despite multiple pings, thereby confirming our worries that this was going to trigger problems downstream.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, thanks for info.

@@ -42,6 +43,7 @@ AM_PROG_CC_C_O
AX_ADD_FORTIFY_SOURCE
AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
PKG_PROG_PKG_CONFIG
AX_PTHREAD

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This macro is used immediately below already, so if there's something to fix it's probably in the existing usage.

@yarda
Copy link
Contributor Author

yarda commented Sep 10, 2021

The current git head builds OK without the patch, so sorry for noise.

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

Successfully merging this pull request may close these issues.

powertop-2.14: compilation fails with 'undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
2 participants