Make install error compiling Bind 9.12.4 on RHEL 6.X

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Make install error compiling Bind 9.12.4 on RHEL 6.X

Bind-Users forum mailing list

Hello

 

Trying to compile Bind 9.12.4 on RHEL 6.X running on physical HP blade server.

 

Looks like I am missing something trivial  but have looked at things couple of times but cannot figure it out.

 

Did a fresh download of the source code but got the same error.

 

Here are the details….about the machine, SPEC FILe used and the make install error…. The install directory exists.

 

Thanks

Sandeep

 

[root@cfsand01 SPECS]# uname -a

Linux cfsand01 2.6.32-754.11.1.el6.x86_64 #1 SMP Tue Jan 22 17:25:23 EST 2019 x86_64 x86_64 x86_64 GNU/Linux

 

[root@cfsand01 SPECS]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.10 (Santiago)

 

We have rpm-build, rpmdevtools and openssl-devel installed.

 

We have the /rpmbuild directory under /root with the bind9.12.4.tar.gz source code under /root/rpmbuild/SOURCES.

 

Here is the SPEC file.

 

 

Vendor: Internet Systems Consortium ISC

# Orginal Name: Bind

#This is the spec file used to build  a bind-9.12.4 rpm package.

 

%define _topdir  /root/rpmbuild

%define DESTDIR  /usr/local/named-jail9.12.4

%define name           bind

%define version        9.12.4

%define release        %{dist}

 

Summary:               Setup to use ISC BIND at BLS

URL:                   http://www.isc.org/

Packager:              xyz

License:                ISC

Name:                  %{name}

Version:              %{version}

Release:              %{dist}

Group:         Development/Tools

#Source: http://www.isc.org/downloads/

# artifical source for tar file name

Source:    %{name}-%{version}.tar.gz     

Prefix:            /usr

 

# Location installed package

BuildRoot: %{buildroot}

 

%description

Bind configured for BLS use

Set as a first time install on a server

No previous version of bind exists

 

%prep

%setup  -n %{name}-%{version}

# In the prep section the tar.gz file gets unpacked to a directory.

 

%build

# First we make sure we start clean

rm -rf $RPM_BUILD_ROOT

 

#Create directory

mkdir -p $RPM_BUILD_ROOT

 

STD_CDEFINES="-DDIG_SIGCHASE=1"

export STD_CDEFINES

 

CFLAGS="$RPM_OPT_FLAGS" ./configure \

--prefix=/usr/local/named-jail9.12.4    \

       --sysconfdir=/usr/local/named-jail9.12.4/etc  \

       --mandir=/usr/local/named-jail9.12.4/usr/man  \

       --bindir=/usr/local/named-jail9.12.4/usr/bin  \

       --sbindir=/usr/local/named-jail9.12.4/usr/sbin  \

       --libexecdir=/usr/local/named-jail9.12.4/usr/libexec  \

       --sharedstatedir=/usr/local/named-jail9.12.4/usr/shared  \

       --localstatedir=/usr/local/named-jail9.12.4/var  \

       --libdir=/usr/local/named-jail9.12.4/usr/lib  \

       --includedir=/usr/local/named-jail9.12.4/usr/include  \

       --with-randomdev=/dev/urandom \

       --disable-static \

       --with-openssl   \

       --disable-openssl-version-check \

       --enable-ipv6  \

       --enable-fixed-rrset   \

       --enable-rrl    \

       --enable-largefile  \

       --enable-newstats  \

       --with-libxml2  \

       --enable-fullreport  \

    &&

make

 

%install

make install DESTDIR=$RPM_BUILD_ROOT

 

mkdir -p $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev

mkdir -p $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log

mkdir -p $RPM_BUILD_ROOT//usr/local/named-jail9.12.4/var/run/named

mkdir  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/named

mkdir -p $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/share/lib/zoneinfo

 

 

touch  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log/named.lame

touch   $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log/named.log

touch  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log/named.querylog

touch  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/run/named.pid

 

%clean

rm -rf $RPM_BUILD_ROOT

 

%files -f /adminfiles/Rhel6.5/bind/rpmbuild/

 

%defattr(-, named, named)

%attr(-, root, root)

%attr(700, named, named) /usr/local/named-jail9.12.4

 

 

%post

 

chown -R named:named /usr/local/named-jail9.12.4

 

# directory ownership

 

chmod 755 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var

chmod 770 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/run

chgrp -R named $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/run

chmod 770 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log

chgrp -R named  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log

chown  named:named  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log/named.lame

chown named:named /usr/local/named-jail9.12.4/var/log/named.log

chown named:named /usr/local/named-jail9.12.4/var/log/named.querylog

chown -R root:named /usr/local/named-jail9.12.4/usr/named

chmod 770 /usr/local/named-jail9.12.4/usr/named

 

 

 

mknod  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/tcp c 11 42

mknod  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/udp c 11 41

mknod  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/log c 21 5

mknod  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/null c 13 2

mknod $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/zero c 13 2

chmod 666 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/null

mknod  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/conslog  c 21 0

mknod  $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/syscon  c 0 0

chmod 620 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/syscon

mknod $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/random c 35 0

chmod 644 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/dev/random

 

 

 

# Addition(l files

chmod 600 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log/named.querylog

chmod 600 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log/named.lame

chmod 600 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/log/named.log

chmod 600 $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/var/run/named.pid

 

# set up symbolic links

ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/named /usr/named

ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/sbin/named /usr/sbin/named

ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/sbin/rndc-confgen /usr/sbin/rndc-confgen

ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/sbin/rndc /usr/sbin/rndc

ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/bin/dig /usr/sbin/dig

ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/bin/host /usr/sbin/host

ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/bin/nslookup /usr/sbin/nslookup

# Add symbolic links

#ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/sbin/named-checkzone \

#$RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/sbin/named-compilezone

#ln -s $RPM_BUILD_ROOT/usr/local/named-jail9.12.4/usr/share/man/man8/named-checkzone.8 \

 

 

Here is the make error….

 

+ make install DESTDIR=/root/rpmbuild/BUILDROOT/bind-9.12.4-.el6.x86_64

make: *** No rule to make target `install'.  Stop.

error: Bad exit status from /var/tmp/rpm-tmp.STSCTD (%install + make install DESTDIR=/ro

install)

 

 

 

 

 


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

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: Make install error compiling Bind 9.12.4 on RHEL 6.X

Anand Buddhdev
On 03/04/2019 14:05, Bhangui, Sandeep - BLS CTR via bind-users wrote:

Hi Sandeep,

> Trying to compile Bind 9.12.4 on RHEL 6.X running on physical HP blade server.
>
> Looks like I am missing something trivial  but have looked at things
> couple of times but cannot figure it out.

One cause could be that this version of BIND will try to build the "isc"
python module, and fail, because it requires python >= 2.7. However,
RHEL 6 only ships with python 2.6. You can probably see this if you
examine the build logs.

You'll need to add "--without-python" to work around this.

I also recommend that you remove the DIG_SIGCHASE define. This feature
has been deprecated, and the newest release of BIND, 9.14.0, doesn't
even have it any more.

Regards,
Anand
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

RE: Make install error compiling Bind 9.12.4 on RHEL 6.X

Bind-Users forum mailing list
Thanks

Tried what was suggested and got the same exact error.

Sandeep

-----Original Message-----
From: Anand Buddhdev [mailto:[hidden email]]
Sent: Wednesday, April 3, 2019 8:29 AM
To: Bhangui, Sandeep - BLS CTR <[hidden email]>; [hidden email]
Subject: Re: Make install error compiling Bind 9.12.4 on RHEL 6.X

On 03/04/2019 14:05, Bhangui, Sandeep - BLS CTR via bind-users wrote:

Hi Sandeep,

> Trying to compile Bind 9.12.4 on RHEL 6.X running on physical HP blade server.
>
> Looks like I am missing something trivial  but have looked at things
> couple of times but cannot figure it out.

One cause could be that this version of BIND will try to build the "isc"
python module, and fail, because it requires python >= 2.7. However, RHEL 6 only ships with python 2.6. You can probably see this if you examine the build logs.

You'll need to add "--without-python" to work around this.

I also recommend that you remove the DIG_SIGCHASE define. This feature has been deprecated, and the newest release of BIND, 9.14.0, doesn't even have it any more.

Regards,
Anand

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

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users