From owner-freebsd-stable Thu Apr 5 19:59: 9 2001 Delivered-To: freebsd-stable@freebsd.org Received: from squishycow.goldenterrace.com.au (squishycow.goldenterrace.com.au [203.41.110.130]) by hub.freebsd.org (Postfix) with ESMTP id 1B11A37B449 for ; Thu, 5 Apr 2001 19:59:04 -0700 (PDT) (envelope-from sjhoran@goldenterrace.com.au) Received: by squishycow.goldenterrace.com.au (Postfix, from userid 1000) id AD40D19D07; Fri, 6 Apr 2001 12:59:02 +1000 (EST) Date: Fri, 6 Apr 2001 12:59:02 +1000 From: Steve Horan To: freebsd-stable@freebsd.org Subject: 4.3-RC /bin/sh weirdness Message-ID: <20010406125901.L52437@goldenterrace.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, I've just spent the past few hours trying to figure out why for some unknown reason I couldn't get apache13-modssl port to build. It would just hang in configure stage. Not freeze machine, just sit there and do nothing. After putting some echo statements in the src/Configure script to see how far it was getting, I was noticing strange things, namely that the last echo statement I had wasn't getting outputted. My sources were cvsup'd about 18-24 hours ago. I have no problems building this port on my other machine (4.3-BETA) The section in the configure script that it plays funny buggers around is: (from /work/apache_1.3.19/src/Configure) echo " + setting C pre-processor to $CPP" #################################################################### ## Now check for existance of non-standard system header files ## and start generation of the ap_config_auto.h header ## AP_CONFIG_AUTO_H="include/ap_config_auto.h" echo "/*" >$AP_CONFIG_AUTO_H echo " * ap_config_auto.h -- Automatically determined configuration stuff" >>$AP_CONFIG_AUTO_H echo " * THIS FILE WAS AUTOMATICALLY GENERATED - DO NOT EDIT!" >>$AP_CONFIG_AUTO_H echo " */" >>$AP_CONFIG_AUTO_H echo "" >>$AP_CONFIG_AUTO_H echo "#ifndef AP_CONFIG_AUTO_H" >>$AP_CONFIG_AUTO_H echo "#define AP_CONFIG_AUTO_H" >>$AP_CONFIG_AUTO_H echo " + checking for system header files" CHECK_FOR_HEADERS="dlfcn.h dl.h bstring.h crypt.h unistd.h sys/resource.h sys/select.h sys/processor.h sys/param.h" ( export CPP for header in $CHECK_FOR_HEADERS; do echo "" >>$AP_CONFIG_AUTO_H echo "/* check: #include <$header> */" >>$AP_CONFIG_AUTO_H name="`echo $header | sed -e 's:/:_:g' -e 's:\.:_:g' | tr '[a-z]' '[A-Z]'`" ./helpers/checkheader.sh $header if [ $? -eq 0 ]; then echo "#ifndef HAVE_${name}" >>$AP_CONFIG_AUTO_H echo "#define HAVE_${name} 1" >>$AP_CONFIG_AUTO_H echo "#endif" >>$AP_CONFIG_AUTO_H else echo "#ifdef HAVE_${name}" >>$AP_CONFIG_AUTO_H echo "#undef HAVE_${name}" >>$AP_CONFIG_AUTO_H echo "#endif" >>$AP_CONFIG_AUTO_H fi done ) Now, when configuring, it *does* print out " + setting C pre-processor yada yada" but nothing more after that. Adding another echo before the "checking for system header files" does out put so it's kind of odd. I got it to build by changing #!/bin/sh to #!/usr/local/bin/bash Hope this rings bells with someone, because it's way too bizarre and non-intuitive for me. sjh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message