Date: Fri, 6 Apr 2001 12:59:02 +1000 From: Steve Horan <sjhoran@goldenterrace.com.au> To: freebsd-stable@freebsd.org Subject: 4.3-RC /bin/sh weirdness Message-ID: <20010406125901.L52437@goldenterrace.com.au>
next in thread | raw e-mail | index | archive | help
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 <blah>/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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010406125901.L52437>
