Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#45131 - [bind] failed build of 9.10.2

Attached to Project: Arch Linux
Opened by Robert Dale Watson (gillecaluim) - Friday, 29 May 2015, 15:30 GMT
Last edited by Sébastien Luttringer (seblu) - Wednesday, 03 June 2015, 21:40 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Bind 9.10.2 package fails config
Linux server.ourhome.net 4.0.1.201505042053-1-grsec #1 SMP PREEMPT Thu May 7 12:11:16 PDT 2015 x86_64 GNU/Linux

Additional info:
* package version(s)
* config and/or log files etc.
makepkg output .....
...
using SPNEGO from lib/dns
checking printf format modifier for 64-bit integers... l
checking for chroot... no
checking linux/types.h usability... no
checking linux/types.h presence... yes
configure: WARNING: linux/types.h: present but cannot be compiled
configure: WARNING: linux/types.h: check for missing prerequisite headers?
configure: WARNING: linux/types.h: see the Autoconf documentation
configure: WARNING: linux/types.h: section "Present But Cannot Be Compiled"
configure: WARNING: linux/types.h: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to bind9-bugs@isc.org ##
configure: WARNING: ## --------------------------------- ##
checking for linux/types.h... no
checking sys/capability.h usability... no
checking sys/capability.h presence... yes
configure: WARNING: sys/capability.h: present but cannot be compiled
configure: WARNING: sys/capability.h: check for missing prerequisite headers?
configure: WARNING: sys/capability.h: see the Autoconf documentation
configure: WARNING: sys/capability.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/capability.h: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to bind9-bugs@isc.org ##
configure: WARNING: ## --------------------------------- ##
checking for sys/capability.h... no
checking for linux/capability.h... yes
checking for cap_set_proc in -lcap... yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... yes
configure: WARNING: sys/prctl.h: present but cannot be compiled
configure: WARNING: sys/prctl.h: check for missing prerequisite headers?
configure: WARNING: sys/prctl.h: see the Autoconf documentation
configure: WARNING: sys/prctl.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/prctl.h: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to bind9-bugs@isc.org ##
configure: WARNING: ## --------------------------------- ##
checking for sys/prctl.h... no
checking sys/un.h usability... no
checking sys/un.h presence... yes
configure: WARNING: sys/un.h: present but cannot be compiled
configure: WARNING: sys/un.h: check for missing prerequisite headers?
configure: WARNING: sys/un.h: see the Autoconf documentation
configure: WARNING: sys/un.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/un.h: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to bind9-bugs@isc.org ##
configure: WARNING: ## --------------------------------- ##
checking for sys/un.h... no
checking for tzset... no
checking for optarg declaration... no
checking for type rlim_t... no
checking type of rlim_cur... configure: error: unable to determine sizeof rlim_cur
==> ERROR: A failure occurred in build().
Aborting...
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Wednesday, 03 June 2015, 21:40 GMT
Reason for closing:  Works for me
Comment by Karol Błażewicz (karol) - Friday, 29 May 2015, 16:24 GMT
You're using 4.0.1.201505042053-1-grsec, which is either an older version (although I don't see it in https://projects.archlinux.org/svntogit/community.git/log/trunk?h=packages/linux-grsec) or is not a kernel provided by Arch Linux. Update your system, reboot and try again.
Comment by Robert Dale Watson (gillecaluim) - Friday, 29 May 2015, 23:20 GMT
got same error using Linux server.ourhome.net 4.0.4-2-ARCH #1 SMP PREEMPT Fri May 22 03:05:23 UTC 2015 x86_64 GNU/Linux
I've been able to build the entire archlinux base, dhcp, hostapd, dnsutils, .... without this problem. The only odd thing when I started trying to build bind was that it complained about libjson....I got past this by installing json-c package though I thought the base-developer group would have already installed the json dependencies.
Comment by Robert Dale Watson (gillecaluim) - Monday, 01 June 2015, 15:51 GMT
the problem appears to be with the libjson incorporation. By default, bind enables libjson but this isn't listed as a dependency in the package. Unfortunately, I've tried using the json-c package to provide libjson but it causes other problems with ./configure.....
Can someone point me to a libjson package that they've been successfully building bind with????
Comment by Robert Dale Watson (gillecaluim) - Monday, 01 June 2015, 16:09 GMT
it appears that the default bind configure requires libjson, which isn't listed as a dependency in the package. I added the json-c package to try to meet this dependency but it causes other problems with the ./configure. The only way I've been able to successfully build is with configure flag --with-libjson=no.

Build error without libjson
....
checking for json library... yes
checking for library containing json_object_new_int64... no
configure: error: found libjson include but not library.
==> ERROR: A failure occurred in build().

Build error with json-c package installed
...
checking for chroot... no
checking linux/types.h usability... no
checking linux/types.h presence... yes
configure: WARNING: linux/types.h: present but cannot be compiled
configure: WARNING: linux/types.h: check for missing prerequisite headers?
configure: WARNING: linux/types.h: see the Autoconf documentation
configure: WARNING: linux/types.h: section "Present But Cannot Be Compiled"
configure: WARNING: linux/types.h: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to bind9-bugs@isc.org ##
configure: WARNING: ## --------------------------------- ##
checking for linux/types.h... no
checking sys/capability.h usability... no
checking sys/capability.h presence... yes
configure: WARNING: sys/capability.h: present but cannot be compiled
configure: WARNING: sys/capability.h: check for missing prerequisite headers?
configure: WARNING: sys/capability.h: see the Autoconf documentation
configure: WARNING: sys/capability.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/capability.h: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to bind9-bugs@isc.org ##
configure: WARNING: ## --------------------------------- ##
checking for sys/capability.h... no
checking for linux/capability.h... yes
checking for cap_set_proc in -lcap... yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... yes
configure: WARNING: sys/prctl.h: present but cannot be compiled
configure: WARNING: sys/prctl.h: check for missing prerequisite headers?
configure: WARNING: sys/prctl.h: see the Autoconf documentation
configure: WARNING: sys/prctl.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/prctl.h: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to bind9-bugs@isc.org ##
configure: WARNING: ## --------------------------------- ##
checking for sys/prctl.h... no
checking sys/un.h usability... no
checking sys/un.h presence... yes
configure: WARNING: sys/un.h: present but cannot be compiled
configure: WARNING: sys/un.h: check for missing prerequisite headers?
configure: WARNING: sys/un.h: see the Autoconf documentation
configure: WARNING: sys/un.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/un.h: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to bind9-bugs@isc.org ##
configure: WARNING: ## --------------------------------- ##
checking for sys/un.h... no
checking for tzset... no
checking for optarg declaration... no
checking for type rlim_t... no
checking type of rlim_cur... configure: error: unable to determine sizeof rlim_cur
==> ERROR: A failure occurred in build().

Which libjson package are you building bind with?
Comment by Doug Newgard (Scimmia) - Monday, 01 June 2015, 16:17 GMT
Builds just fine here in a clean chroot. Probably something on your system causing the problem. Maybe it won't build against the grsec kernel? I don't get the warnings you get, either.
Comment by Robert Dale Watson (gillecaluim) - Wednesday, 03 June 2015, 21:11 GMT
I thought it might be a grsec kernel problem also but get same problem with regular kernel.

Loading...