caps compiling error

2013-11-26 Thread Paul A
I was trying to upgrade BIND and suddenly ran into this error with both
version of bind I was upgrading to.

 

I tried to compile, bind-9.9.4  and bind-9.8.6-P1 and I get a caps error, I
search the mailing archives and the web but didn't find much on this. As
anyone run into this and know what I'm missing. 

 

I'm running an older kernel but I have never had issues on this machine
until now. Not sure if what header file im missing. 

 

CentOS release 4.9 (Final)

2.6.9-103.ELsmp

 

Any help is appreciated. 

 

paul

 

os.c:166: error: syntax error before caps

os.c: In function `linux_setcaps':

os.c:185: warning: implicit declaration of function `cap_set_proc'

os.c:185: error: `caps' undeclared (first use in this function)

os.c:185: error: (Each undeclared identifier is reported only once

os.c:185: error: for each function it appears in.)

os.c: In function `linux_initialprivs':

os.c:242: error: `cap_t' undeclared (first use in this function)

os.c:242: error: syntax error before caps

os.c:245: error: `cap_value_t' undeclared (first use in this function)

os.c:255: error: `caps' undeclared (first use in this function)

os.c:255: warning: implicit declaration of function `cap_init'

os.c:255: error: `curcaps' undeclared (first use in this function)

os.c:255: warning: implicit declaration of function `cap_get_proc'

os.c:260: error: `capval' undeclared (first use in this function)

os.c:260: error: `cap_flag_value_t' undeclared (first use in this function)

os.c:260: error: syntax error before curval

os.c:260: warning: implicit declaration of function `cap_get_flag'

os.c:260: error: `CAP_PERMITTED' undeclared (first use in this function)

os.c:260: error: `curval' undeclared (first use in this function)

os.c:260: warning: implicit declaration of function `cap_set_flag'

os.c:260: error: `CAP_EFFECTIVE' undeclared (first use in this function)

os.c:260: error: `CAP_SET' undeclared (first use in this function)

os.c:265: error: syntax error before curval

os.c:274: error: syntax error before curval

os.c:280: error: syntax error before curval

os.c:286: error: syntax error before curval

os.c:295: error: syntax error before curval

os.c:301: error: syntax error before curval

os.c:306: warning: implicit declaration of function `cap_free'

os.c: In function `linux_minprivs':

os.c:312: error: `cap_t' undeclared (first use in this function)

os.c:312: error: syntax error before caps

os.c:315: error: `cap_value_t' undeclared (first use in this function)

os.c:320: error: `caps' undeclared (first use in this function)

os.c:320: error: `curcaps' undeclared (first use in this function)

os.c:329: error: `capval' undeclared (first use in this function)

os.c:329: error: `cap_flag_value_t' undeclared (first use in this function)

os.c:329: error: syntax error before curval

os.c:329: error: `CAP_PERMITTED' undeclared (first use in this function)

os.c:329: error: `curval' undeclared (first use in this function)

os.c:329: error: `CAP_EFFECTIVE' undeclared (first use in this function)

os.c:329: error: `CAP_SET' undeclared (first use in this function)

os.c:338: error: syntax error before curval

make[3]: *** [os.o] Error 1

make[3]: Leaving directory `/root/downloads/bind-9.9.4/bin/named/unix'

make[2]: *** [subdirs] Error 1

make[2]: Leaving directory `/root/downloads/bind-9.9.4/bin/named'

make[1]: *** [subdirs] Error 1

make[1]: Leaving directory `/root/downloads/bind-9.9.4/bin'

make: *** [subdirs] Error 1

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: caps compiling error

2013-11-26 Thread /dev/rob0
On Tue, Nov 26, 2013 at 10:17:11AM -0500, Paul A wrote:
 I was trying to upgrade BIND and suddenly ran into this error with 
 both version of bind I was upgrading to.
 
 I tried to compile, bind-9.9.4 and bind-9.8.6-P1 and I get a caps 
 error, I search the mailing archives and the web but didn't find 
 much on this. As anyone run into this and know what I'm missing.
 
 I'm running an older kernel but I have never had issues on this 
 machine until now. Not sure if what header file im missing.
 
 CentOS release 4.9 (Final)
 
 2.6.9-103.ELsmp

Have you ever succeeded in compiling BIND on there? I have a 
substantially older machine, Slackware 10.0 (kernel 2.4.26) (yes, 
that's right, two point FOUR), which has been running 9.9.4 since 
shortly after the announcement.

rob0@sorry:~$ uname -a
Linux sorry 2.4.26 #6 Mon Jun 14 19:07:27 PDT 2004 i686 unknown unknown 
GNU/Linux
rob0@sorry:~$ dig -v
DiG 9.9.4
rob0@sorry:~$ dig +norec version.bind. ch txt

;  DiG 9.9.4  +norec version.bind. ch txt
;; global options: +cmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 19172
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;version.bind.  CH  TXT

;; ANSWER SECTION:
version.bind.   0   CH  TXT 9.9.4

;; AUTHORITY SECTION:
version.bind.   0   CH  NS  version.bind.

;; Query time: 8 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Nov 26 16:18:37 GMT 2013
;; MSG SIZE  rcvd: 73

(Yes, I know. I should upgrade or retire it. I will eventually.)

 Any help is appreciated. 

I doubt this will help, because I only had problems with the ancient 
openssl, not with caps. But here's my ./configure ...

./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --with-libtool \
  --mandir=/usr/man \
  --enable-shared \
  --disable-static \
  --enable-threads \
  --enable-rrl \
  --with-openssl=/usr \
  --without-gost \
  --without-dlopen \
  --build=$ARCH-slackware-linux || exit 1
#  --with-idn=/usr \

This was adapted from the Slackware bind.SlackBuild script, with 
additions of --enable-rrl and the two --without-*, and as you can 
see, the removal of --with-idn.

I had to experiment a few times to see where ./configure failed, 
adjusted it, and tried again.
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if /dev/rob0 is in the Subject:
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


RE: caps compiling error

2013-11-26 Thread Paul A
Yeah I have compline Bind on that machine many times currently I'm on BIND
9.8.4-P2.

Not sure what header file is missing.

-Original Message-
From: bind-users-bounces+razor=meganet@lists.isc.org
[mailto:bind-users-bounces+razor=meganet@lists.isc.org] On Behalf Of
/dev/rob0
Sent: Tuesday, November 26, 2013 11:34 AM
To: bind-users@lists.isc.org
Subject: Re: caps compiling error

On Tue, Nov 26, 2013 at 10:17:11AM -0500, Paul A wrote:
 I was trying to upgrade BIND and suddenly ran into this error with 
 both version of bind I was upgrading to.
 
 I tried to compile, bind-9.9.4 and bind-9.8.6-P1 and I get a caps 
 error, I search the mailing archives and the web but didn't find much 
 on this. As anyone run into this and know what I'm missing.
 
 I'm running an older kernel but I have never had issues on this 
 machine until now. Not sure if what header file im missing.
 
 CentOS release 4.9 (Final)
 
 2.6.9-103.ELsmp

Have you ever succeeded in compiling BIND on there? I have a substantially
older machine, Slackware 10.0 (kernel 2.4.26) (yes, that's right, two point
FOUR), which has been running 9.9.4 since shortly after the announcement.

rob0@sorry:~$ uname -a
Linux sorry 2.4.26 #6 Mon Jun 14 19:07:27 PDT 2004 i686 unknown unknown
GNU/Linux rob0@sorry:~$ dig -v DiG 9.9.4 rob0@sorry:~$ dig +norec
version.bind. ch txt

;  DiG 9.9.4  +norec version.bind. ch txt ;; global options: +cmd ;;
Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 19172 ;; flags: qr aa;
QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;version.bind.  CH  TXT

;; ANSWER SECTION:
version.bind.   0   CH  TXT 9.9.4

;; AUTHORITY SECTION:
version.bind.   0   CH  NS  version.bind.

;; Query time: 8 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Nov 26 16:18:37 GMT 2013
;; MSG SIZE  rcvd: 73

(Yes, I know. I should upgrade or retire it. I will eventually.)

 Any help is appreciated. 

I doubt this will help, because I only had problems with the ancient
openssl, not with caps. But here's my ./configure ...

./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --with-libtool \
  --mandir=/usr/man \
  --enable-shared \
  --disable-static \
  --enable-threads \
  --enable-rrl \
  --with-openssl=/usr \
  --without-gost \
  --without-dlopen \
  --build=$ARCH-slackware-linux || exit 1 #  --with-idn=/usr \

This was adapted from the Slackware bind.SlackBuild script, with additions
of --enable-rrl and the two --without-*, and as you can see, the removal of
--with-idn.

I had to experiment a few times to see where ./configure failed, adjusted
it, and tried again.
--
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if /dev/rob0 is in the Subject:
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to
unsubscribe from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: caps compiling error

2013-11-26 Thread Cathy Almond
On 26/11/2013 16:56, Paul A wrote:
 Yeah I have compline Bind on that machine many times currently I'm on BIND
 9.8.4-P2.
 
 Not sure what header file is missing.
 
 -Original Message-
 From: bind-users-bounces+razor=meganet@lists.isc.org
 [mailto:bind-users-bounces+razor=meganet@lists.isc.org] On Behalf Of
 /dev/rob0
 Sent: Tuesday, November 26, 2013 11:34 AM
 To: bind-users@lists.isc.org
 Subject: Re: caps compiling error
 
 On Tue, Nov 26, 2013 at 10:17:11AM -0500, Paul A wrote:
 I was trying to upgrade BIND and suddenly ran into this error with 
 both version of bind I was upgrading to.

 I tried to compile, bind-9.9.4 and bind-9.8.6-P1 and I get a caps 
 error, I search the mailing archives and the web but didn't find much 
 on this. As anyone run into this and know what I'm missing.

 I'm running an older kernel but I have never had issues on this 
 machine until now. Not sure if what header file im missing.

 CentOS release 4.9 (Final)

 2.6.9-103.ELsmp
 
 Have you ever succeeded in compiling BIND on there? I have a substantially
 older machine, Slackware 10.0 (kernel 2.4.26) (yes, that's right, two point
 FOUR), which has been running 9.9.4 since shortly after the announcement.
 
 rob0@sorry:~$ uname -a
 Linux sorry 2.4.26 #6 Mon Jun 14 19:07:27 PDT 2004 i686 unknown unknown
 GNU/Linux rob0@sorry:~$ dig -v DiG 9.9.4 rob0@sorry:~$ dig +norec
 version.bind. ch txt
 
 ;  DiG 9.9.4  +norec version.bind. ch txt ;; global options: +cmd ;;
 Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 19172 ;; flags: qr aa;
 QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
 
 ;; OPT PSEUDOSECTION:
 ; EDNS: version: 0, flags:; udp: 4096
 ;; QUESTION SECTION:
 ;version.bind.  CH  TXT
 
 ;; ANSWER SECTION:
 version.bind.   0   CH  TXT 9.9.4
 
 ;; AUTHORITY SECTION:
 version.bind.   0   CH  NS  version.bind.
 
 ;; Query time: 8 msec
 ;; SERVER: 127.0.0.1#53(127.0.0.1)
 ;; WHEN: Tue Nov 26 16:18:37 GMT 2013
 ;; MSG SIZE  rcvd: 73
 
 (Yes, I know. I should upgrade or retire it. I will eventually.)
 
 Any help is appreciated. 
 
 I doubt this will help, because I only had problems with the ancient
 openssl, not with caps. But here's my ./configure ...
 
 ./configure \
   --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \
   --sysconfdir=/etc \
   --localstatedir=/var \
   --with-libtool \
   --mandir=/usr/man \
   --enable-shared \
   --disable-static \
   --enable-threads \
   --enable-rrl \
   --with-openssl=/usr \
   --without-gost \
   --without-dlopen \
   --build=$ARCH-slackware-linux || exit 1 #  --with-idn=/usr \
 
 This was adapted from the Slackware bind.SlackBuild script, with additions
 of --enable-rrl and the two --without-*, and as you can see, the removal of
 --with-idn.
 
 I had to experiment a few times to see where ./configure failed, adjusted
 it, and tried again.
 --
   http://rob0.nodns4.us/ -- system administration and consulting
   Offlist GMX mail is seen only if /dev/rob0 is in the Subject:

It's probably the problem described here (along with a patch for download):

https://kb.isc.org/article/AA-01060

Apologies - and hope this helps!

Cathy

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: caps compiling error

2013-11-26 Thread Jeremy C. Reed
Please see 
https://kb.isc.org/article/AA-01060/0/Building-BIND-9.9.4-9.8.6-and-9.6-ESV-R10-on-RHEL-and-CentOS-with-libcap-dev-installed.html

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


RE: caps compiling error

2013-11-26 Thread Paul A
Cathy, thank you that worked on 9.9.4.

Thanks for your help, paul.



-Original Message-
From: bind-users-bounces+razor=meganet@lists.isc.org
[mailto:bind-users-bounces+razor=meganet@lists.isc.org] On Behalf Of
Cathy Almond
Sent: Tuesday, November 26, 2013 12:08 PM
To: bind-users@lists.isc.org
Subject: Re: caps compiling error

On 26/11/2013 16:56, Paul A wrote:
 Yeah I have compline Bind on that machine many times currently I'm on 
 BIND 9.8.4-P2.
 
 Not sure what header file is missing.
 
 -Original Message-
 From: bind-users-bounces+razor=meganet@lists.isc.org
 [mailto:bind-users-bounces+razor=meganet@lists.isc.org] On Behalf 
 Of
 /dev/rob0
 Sent: Tuesday, November 26, 2013 11:34 AM
 To: bind-users@lists.isc.org
 Subject: Re: caps compiling error
 
 On Tue, Nov 26, 2013 at 10:17:11AM -0500, Paul A wrote:
 I was trying to upgrade BIND and suddenly ran into this error with 
 both version of bind I was upgrading to.

 I tried to compile, bind-9.9.4 and bind-9.8.6-P1 and I get a caps 
 error, I search the mailing archives and the web but didn't find much 
 on this. As anyone run into this and know what I'm missing.

 I'm running an older kernel but I have never had issues on this 
 machine until now. Not sure if what header file im missing.

 CentOS release 4.9 (Final)

 2.6.9-103.ELsmp
 
 Have you ever succeeded in compiling BIND on there? I have a 
 substantially older machine, Slackware 10.0 (kernel 2.4.26) (yes, 
 that's right, two point FOUR), which has been running 9.9.4 since shortly
after the announcement.
 
 rob0@sorry:~$ uname -a
 Linux sorry 2.4.26 #6 Mon Jun 14 19:07:27 PDT 2004 i686 unknown 
 unknown GNU/Linux rob0@sorry:~$ dig -v DiG 9.9.4 rob0@sorry:~$ dig 
 +norec version.bind. ch txt
 
 ;  DiG 9.9.4  +norec version.bind. ch txt ;; global options: 
 +cmd ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 19172 ;; flags: qr 
 aa;
 QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
 
 ;; OPT PSEUDOSECTION:
 ; EDNS: version: 0, flags:; udp: 4096
 ;; QUESTION SECTION:
 ;version.bind.  CH  TXT
 
 ;; ANSWER SECTION:
 version.bind.   0   CH  TXT 9.9.4
 
 ;; AUTHORITY SECTION:
 version.bind.   0   CH  NS  version.bind.
 
 ;; Query time: 8 msec
 ;; SERVER: 127.0.0.1#53(127.0.0.1)
 ;; WHEN: Tue Nov 26 16:18:37 GMT 2013
 ;; MSG SIZE  rcvd: 73
 
 (Yes, I know. I should upgrade or retire it. I will eventually.)
 
 Any help is appreciated. 
 
 I doubt this will help, because I only had problems with the ancient 
 openssl, not with caps. But here's my ./configure ...
 
 ./configure \
   --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \
   --sysconfdir=/etc \
   --localstatedir=/var \
   --with-libtool \
   --mandir=/usr/man \
   --enable-shared \
   --disable-static \
   --enable-threads \
   --enable-rrl \
   --with-openssl=/usr \
   --without-gost \
   --without-dlopen \
   --build=$ARCH-slackware-linux || exit 1 #  --with-idn=/usr \
 
 This was adapted from the Slackware bind.SlackBuild script, with 
 additions of --enable-rrl and the two --without-*, and as you can see, 
 the removal of --with-idn.
 
 I had to experiment a few times to see where ./configure failed, 
 adjusted it, and tried again.
 --
   http://rob0.nodns4.us/ -- system administration and consulting
   Offlist GMX mail is seen only if /dev/rob0 is in the Subject:

It's probably the problem described here (along with a patch for download):

https://kb.isc.org/article/AA-01060

Apologies - and hope this helps!

Cathy

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to
unsubscribe from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


RE: caps compiling error

2013-11-26 Thread Paul A
Thank you Cathy already informed me of that. it works with the patch.

-Original Message-
From: Jeremy C. Reed [mailto:jr...@isc.org] 
Sent: Tuesday, November 26, 2013 12:20 PM
To: Paul A
Cc: bind-us...@isc.org
Subject: Re: caps compiling error

Please see 
https://kb.isc.org/article/AA-01060/0/Building-BIND-9.9.4-9.8.6-and-9.6-ESV-
R10-on-RHEL-and-CentOS-with-libcap-dev-installed.html

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users