Re: make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
Hi, I am facing this issue while compiling 9.7.4-p1 in solaris 10 box.Please suggest me what could be the issue. ./configure --prefix=/opt/bind971-NXD-1 --enable-threads --enable-largefiles --disable-openssl-version-check configure: WARNING: unrecognized options: --enable-largefiles checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking whether make sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a sed that does not truncate output... ./configure: line 4579: /usr/bin/cmp: cannot execute binary file ./configure: line 4579: /usr/bin/cmp: cannot execute binary file ./configure: line 4579: /usr/bin/cmp: cannot execute binary file checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep checking for egrep... /usr/sfw/bin/ggrep -E checking for ld used by gcc... ./configure: line 4752: s%\\%/%g: No such file or directory no configure: error: no acceptable ld found in $PATH On Fri, Nov 18, 2011 at 1:57 AM, Red Cricket red.cricket.b...@gmail.comwrote: Hi, I have been working on upgrading from bind-9.7.3-P3 to bind-9.7.4-P1 to patch for cve-2011-4313. Here is what I am doing ... rcricket@dws-rch-rcricket-l:~$ wget http://ftp.isc.org/isc/bind9/9.7.4-P1/bind-9.7.4-P1.tar.gz ... rcricket@dws-rch-rcricket-l:~$ tar -zxf bind-9.7.4-P1.tar.gz rcricket@dws-rch-rcricket-l:~$ mkdir BIND_INSTALL_DIR rcricket@dws-rch-rcricket-l:~$ cd bind-9.7.4-P1 rcricket@dws-rch-rcricket-l:~/bind-9.7.4-P1$ ./configure --disable-openssl-version-check --prefix=/users/rcricket/BIND_INSTALL_DIR --exec-prefix=/users/rcricket/BIND_INSTALL_DIR ... rcricket@dws-rch-rcricket-l:~/bind-9.7.4-P1$ make ... gcc -I/users/rcricket/bind-9.7.4-P1 -I./include -I./unix/include -I. -I/users/rcricket/bind-9.7.4-P1/lib/lwres/include -I../../lib/lwres/unix/include -I../../lib/lwres/include -I/users/rcricket/bind-9.7.4-P1/lib/dns/include -I../../lib/dns/include -I/users/rcricket/bind-9.7.4-P1/lib/bind9/include -I../../lib/bind9/include -I/users/rcricket/bind-9.7.4-P1/lib/isccfg/include -I../../lib/isccfg/include -I/users/rcricket/bind-9.7.4-P1/lib/isccc/include -I../../lib/isccc/include -I/users/rcricket/bind-9.7.4-P1/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/nothreads/include -I../../lib/isc/x86_32/include -D_GNU_SOURCE -g -O2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing \ -DVERSION=\9.7.4-P1\ \ -DCONFIGARGS=\'--disable-openssl-version-check' '--prefix=/users/rcricket/BIND_INSTALL_DIR' '--exec-prefix=/users/rcricket/BIND_INSTALL_DIR'\ \ -DNS_LOCALSTATEDIR=\/users/rcricket/BIND_INSTALL_DIR/var\ \ -DNS_SYSCONFDIR=\/users/rcricket/BIND_INSTALL_DIR/etc\ -c ./main.c gcc.orig: '--prefix=/users/rcricket/BIND_INSTALL_DIR': No such file or directory gcc.orig: '--exec-prefix=/users/rcricket/BIND_INSTALL_DIR': No such file or directory In file included from ./main.c:62: ./include/named/globals.h:68: error: missing terminating character ./include/named/globals.h:68: error: syntax error before ')' token make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/apps/users/rcricket/bind-9.7.4-P1/bin/named' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/apps/users/rcricket/bind-9.7.4-P1/bin' make: *** [subdirs] Error 1 If I run configure without the -prefix and -exec-prefix switches make completes without error, but I would like to be able to use the -prefix and -exec-prefix switches. Thanks Russ ___ 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: make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
On 30/11/2011 17:27, jagan padhi wrote: Hi, I am facing this issue while compiling 9.7.4-p1 in solaris 10 box.Please suggest me what could be the issue. ./configure --prefix=/opt/bind971-NXD-1 --enable-threads --enable-largefiles --disable-openssl-version-check configure: WARNING: unrecognized options: --enable-largefiles The option is called enable-largefile. There's no 's' at the end. Regards, Anand Buddhdev RIPE NCC ___ 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: make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
On Wed, 30 Nov 2011, jagan padhi wrote: checking build system type... sparc-sun-solaris2.10 checking for a sed that does not truncate output... ./configure: line 4579: /usr/bin/cmp: cannot execute binary file What does this tell you? file /usr/bin/cmp (Maybe you have /usr/bin/cmp for non-sparc?) ___ 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
make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
Hi, I have been working on upgrading from bind-9.7.3-P3 to bind-9.7.4-P1 to patch for cve-2011-4313. Here is what I am doing ... rcricket@dws-rch-rcricket-l:~$ wget http://ftp.isc.org/isc/bind9/9.7.4-P1/bind-9.7.4-P1.tar.gz ... rcricket@dws-rch-rcricket-l:~$ tar -zxf bind-9.7.4-P1.tar.gz rcricket@dws-rch-rcricket-l:~$ mkdir BIND_INSTALL_DIR rcricket@dws-rch-rcricket-l:~$ cd bind-9.7.4-P1 rcricket@dws-rch-rcricket-l:~/bind-9.7.4-P1$ ./configure --disable-openssl-version-check --prefix=/users/rcricket/BIND_INSTALL_DIR --exec-prefix=/users/rcricket/BIND_INSTALL_DIR ... rcricket@dws-rch-rcricket-l:~/bind-9.7.4-P1$ make ... gcc -I/users/rcricket/bind-9.7.4-P1 -I./include -I./unix/include -I. -I/users/rcricket/bind-9.7.4-P1/lib/lwres/include -I../../lib/lwres/unix/include -I../../lib/lwres/include -I/users/rcricket/bind-9.7.4-P1/lib/dns/include -I../../lib/dns/include -I/users/rcricket/bind-9.7.4-P1/lib/bind9/include -I../../lib/bind9/include -I/users/rcricket/bind-9.7.4-P1/lib/isccfg/include -I../../lib/isccfg/include -I/users/rcricket/bind-9.7.4-P1/lib/isccc/include -I../../lib/isccc/include -I/users/rcricket/bind-9.7.4-P1/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/nothreads/include -I../../lib/isc/x86_32/include -D_GNU_SOURCE -g -O2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing \ -DVERSION=\9.7.4-P1\ \ -DCONFIGARGS=\'--disable-openssl-version-check' '--prefix=/users/rcricket/BIND_INSTALL_DIR' '--exec-prefix=/users/rcricket/BIND_INSTALL_DIR'\ \ -DNS_LOCALSTATEDIR=\/users/rcricket/BIND_INSTALL_DIR/var\ \ -DNS_SYSCONFDIR=\/users/rcricket/BIND_INSTALL_DIR/etc\ -c ./main.c gcc.orig: '--prefix=/users/rcricket/BIND_INSTALL_DIR': No such file or directory gcc.orig: '--exec-prefix=/users/rcricket/BIND_INSTALL_DIR': No such file or directory In file included from ./main.c:62: ./include/named/globals.h:68: error: missing terminating character ./include/named/globals.h:68: error: syntax error before ')' token make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/apps/users/rcricket/bind-9.7.4-P1/bin/named' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/apps/users/rcricket/bind-9.7.4-P1/bin' make: *** [subdirs] Error 1 If I run configure without the -prefix and -exec-prefix switches make completes without error, but I would like to be able to use the -prefix and -exec-prefix switches. Thanks Russ ___ 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: make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
I am unable to reproduce this (on a CentOS Linux system). Please tell us about your platform, what shell, what make, and provide a copy of your full configure output, and config.log and generated bin/named/Makefile. You may send these to me off-list if you'd like. Thanks, Jeremy C. Reed ISC ___ 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: make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
You need to fix your gcc wrapper as it is not handling command line arguments that contain spaces. This is a common error when people write shell script wrappers. They fail to account for arguments with spaces. Mark In message CAHu+3Ox-RfgnwjopO_ebb48Da=MYyBdgh+q93=smy+-vl6u...@mail.gmail.com, Red Cricket writes: gcc.orig: '--prefix=/users/rcricket/BIND_INSTALL_DIR': No such file or directory gcc.orig: '--exec-prefix=/users/rcricket/BIND_INSTALL_DIR': No such -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org ___ 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: make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
That's it! THANK YOU! my /usr/bin/gcc was this ... #!/bin/sh if [ -n $GCC10G ]; then # Use the standard gcc exec /usr/bin/gcc323 $@ elif id | grep -q gcc296; then #Use the compat gcc exec /usr/bin/gcc296 $@ elif [ -n $GCC296 ]; then # Use the compat gcc exec /usr/bin/gcc296 $@ else # Use the standard gcc exec /usr/bin/gcc323 $@ fi .. when I changed it to this ... #!/bin/sh if [ -n $GCC10G ]; then # Use the standard gcc exec /usr/bin/gcc323 $@ elif id | grep -q gcc296; then #Use the compat gcc exec /usr/bin/gcc296 $@ elif [ -n $GCC296 ]; then # Use the compat gcc exec /usr/bin/gcc296 $@ else # Use the standard gcc #exec /usr/bin/gcc323 $@ exec /usr/bin/gcc323 $@ fi ... the make work fine now. On Thu, Nov 17, 2011 at 1:36 PM, Mark Andrews ma...@isc.org wrote: You need to fix your gcc wrapper as it is not handling command line arguments that contain spaces. This is a common error when people write shell script wrappers. They fail to account for arguments with spaces. Mark In message CAHu+3Ox-RfgnwjopO_ebb48Da=MYyBdgh+q93=smy+-vl6u...@mail.gmail.com, Red Cricket writes: gcc.orig: '--prefix=/users/rcricket/BIND_INSTALL_DIR': No such file or directory gcc.orig: '--exec-prefix=/users/rcricket/BIND_INSTALL_DIR': No such -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org ___ 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: make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
In message cahu+3oywmvbkghytno7hcjpud4vv4inahzgvv-qgz1ngu56...@mail.gmail.com, Red Cricket writes: That's it! THANK YOU! my /usr/bin/gcc was this ... #!/bin/sh if [ -n $GCC10G ]; then # Use the standard gcc exec /usr/bin/gcc323 $@ elif id | grep -q gcc296; then #Use the compat gcc exec /usr/bin/gcc296 $@ elif [ -n $GCC296 ]; then # Use the compat gcc exec /usr/bin/gcc296 $@ else # Use the standard gcc exec /usr/bin/gcc323 $@ fi .. when I changed it to this ... #!/bin/sh if [ -n $GCC10G ]; then # Use the standard gcc exec /usr/bin/gcc323 $@ elif id | grep -q gcc296; then #Use the compat gcc exec /usr/bin/gcc296 $@ elif [ -n $GCC296 ]; then # Use the compat gcc exec /usr/bin/gcc296 $@ else # Use the standard gcc #exec /usr/bin/gcc323 $@ exec /usr/bin/gcc323 $@ fi ... the make work fine now. But is still broken for all the other calls. -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org ___ 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: make bind-9.7.4-P1 fails when --prefix and --exec-prefix switches are used
Oops! Thanks again Mark. I'll fix'em :) ___ 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