Skip to contentSkip to conversation

Configure fails on single builds

DISCUSSION J William Piggott 3 participants 3 messages Feb 9, 2016 – Feb 10, 2016 Util-Linux package

lore
Share & tools
lore
#0 lore raw

commit 15167589fb40be9479e1afe261bea0bf23b33a83 causing single builds (other than chrt) to fail:

./configure --disable-all-programs --enable-hwclock

conditional \"HAVE_SCHED_SETATTR\" was never defined. Usually this means the macro was only invoked conditionally.

#1 lore raw
Quoted 7 lines · J William Piggott

commit 15167589fb40be9479e1afe261bea0bf23b33a83 causing single builds (other than chrt) to fail:

./configure --disable-all-programs --enable-hwclock

conditional \"HAVE_SCHED_SETATTR\" was never defined. Usually this means the macro was only invoked conditionally.

I have fixed it for me like this, quick and dirty:

configure.ac +1 -3
index 4559573..cc9eb55 100644
@@ -1774,9 +1774,7 @@ UL_BUILD_INIT([chrt], [check])
 UL_REQUIRES_BUILD([chrt], [schedutils])
 AM_CONDITIONAL([BUILD_CHRT], [test "x$build_chrt" = xyes])
 
-AS_IF([test "x$build_chrt" = xyes], [
-       UL_CHECK_SYSCALL([sched_setattr])
-])
+UL_CHECK_SYSCALL([sched_setattr])
 
 
 AC_ARG_ENABLE([wall],

cu,
Rudi

maintainer
#2 lore raw
Quoted 17 lines · Ruediger Meier
Quoted 7 lines · J William Piggott

commit 15167589fb40be9479e1afe261bea0bf23b33a83 causing single builds (other than chrt) to fail:

./configure --disable-all-programs --enable-hwclock

conditional \"HAVE_SCHED_SETATTR\" was never defined. Usually this means the macro was only invoked conditionally.

I have fixed it for me like this, quick and dirty:

configure.ac +0 -0
index 4559573..cc9eb55 100644

configure.ac UL_BUILD_INIT([chrt], [check]) · line 1777

Quoted 7 lines
configure.ac +1 -3
@@ -1774,9 +1774,7 @@ UL_BUILD_INIT([chrt], [check])
 UL_REQUIRES_BUILD([chrt], [schedutils])
 AM_CONDITIONAL([BUILD_CHRT], [test "x$build_chrt" = xyes])
 
-AS_IF([test "x$build_chrt" = xyes], [
-       UL_CHECK_SYSCALL([sched_setattr])
-])
+UL_CHECK_SYSCALL([sched_setattr])

UL_CHECK_SYSCALL function should not contain AM_CONDITIONAL, it's unnecessary. We need only BUILD_ conditionals and HAVE_ for libs.

I'll fix it.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com