[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modssl
Subject:    Re: compile problems
From:       Gianni Mariani <marianig () orconet ! com>
Date:       2000-06-21 23:50:17
[Download RAW message or body]

David 'bernz' Bernick wrote:

> i'm using RedHat Linux 6.2 (kernel 2.2.14-5.0.14).
> when i ./configure modssl, i get this error:
> Configuring mod_ssl/2.6.4 for Apache/1.3.12
>  + Apache location: ../apache_1.3.12 (Version 1.3.12)
>  + Auxiliary patch tool: ./etc/patch/patch (local)
>  + Applying packages to Apache source tree:
>    o Extended API (EAPI)
> Usage:     -a <slave-device-name> <host>
>            -d <slave-device-name>

This usage message is from /usr/sbin/utempter this is normally
run from commands that create a "login" shell and fiddle
with the utmp file like xterm or screen.

It is possible that your system is configured badly or
you ran out of psuedo tty's or you have some weird
definition of tee, egrep or whatever other command is
executed in mod_ssl-2.6.2-1.3.12/etc/apply.sh .

What I suggest is to instrument apply.sh with more diags
and try to pin down what is doing this to you.

I've posted the attached Makefile before.  I just tried
it again - it builds without a hitch on my RH 6.1 system
with gcc --version 2.95.2 compilers.

here is the make output on my machine.

rm -rf apache_1.3.12
gunzip < apache_1.3.12.tar.gz | tar xf -
touch apache_1.3.12.done
rm -rf mod_ssl-2.6.2-1.3.12 mod_ssl-2.6.2-1.3.12
gunzip < mod_ssl-2.6.2-1.3.12.tar.gz | tar xf -
cd mod_ssl-2.6.2-1.3.12; ./configure \
--with-apache=../apache_1.3.12 \
--with-ssl=../openssl-0.9.4 \
--prefix=/hdc3/gianni/downloads/apache/root \
--enable-module=so \
--enable-module=proxy \
--enable-module=rewrite
Configuring mod_ssl/2.6.2 for Apache/1.3.12
 + Apache location: ../apache_1.3.12 (Version 1.3.12)
 + OpenSSL location: ../openssl-0.9.4
 + Auxiliary patch tool: ./etc/patch/patch (local)
 + Applying packages to Apache source tree:
   o Extended API (EAPI)
   o Distribution Documents
   o SSL Module Source
   o SSL Support
   o SSL Configuration Additions
   o SSL Module Documentation
   o Addons
Done: source extension and patches successfully applied.





["Makefile" (text/plain)]

#
# Build apache with mod_ssl
#
#	

# APACHE_ROOT - where the apache compiled bits go
APACHE_ROOT=$(PWD)/root

# Version of Apache to bild
APACHE_VER=1.3.12

# Place for certificate and key
CERTIFICATE_PATH=../server.crt
KEY_PATH=../server.key

# mod_ssl version
MOD_SSL=mod_ssl-2.6.2-1.3.12

# openssl version
OPENSSL=openssl-0.9.4

# sgi patch version
SGIPATCH=10xpatch-1.3.12-0-mod_ssl

# do the sgi patch thing ?
DO_SGIPATCH=0

# options to Make
IN_PARALLEL_ALL=-j 3

# Targets to build for all
IN_SETUP_TARGETS=/usr/include/ndbm.h install

# Targets to run for distclean
IN_DISTCLEAN=$(APACHE_VERSION) $(MOD_SSL) $(OPENSSL) hacktastic \
	$(MOD_SSL).done $(OPENSSL).done $(APACHE_VERSION).done

APACHE_VERSION=apache_$(APACHE_VER)

LN=ln
TAR=tar
GUNZIP=gunzip
RMRF=rm -rf
MAKE=make


all : $(IN_SETUP_TARGETS)

distclean :
	rm -rf $(IN_DISTCLEAN)


fetch: fetch_modssl fetch_apache fetch_sgipatch fetch_openssl

fetch_modssl $(MOD_SSL).tar.gz:
	wget http://www.modssl.org/source/$(MOD_SSL).tar.gz

fetch_apache $(APACHE_VERSION).tar.gz:
	wget http://www.apache.org/dist/$(APACHE_VERSION).tar.gz

$(SGIPATCH) fetch_sgipatch $(SGIPATCH):
ifeq ($(DO_SGIPATCH),1)
	wget ftp://oss.sgi.com/www/projects/apache/download/$(APACHE_VER)/$(SGIPATCH)
endif

fetch_openssl $(OPENSSL).tar.gz:
	wget http://www.openssl.org/source/$(OPENSSL).tar.gz



hacktastic : $(APACHE_VERSION).done $(OPENSSL).done $(MOD_SSL).done $(SGIPATCH).done
	LD_LIBRARY_PATH=`pwd` $(MAKE) $(IN_PARALLEL_ALL) -C $(APACHE_VERSION)
	LD_LIBRARY_PATH=`pwd` $(MAKE) -C $(APACHE_VERSION) certificate
	LD_LIBRARY_PATH=`pwd` $(MAKE) -C $(APACHE_VERSION) install
	$(LN) -sf bin $(APACHE_ROOT)/sbin
	mkdir -p $(APACHE_ROOT)/var
	mkdir -p $(APACHE_ROOT)/var/log
	mkdir -p $(APACHE_ROOT)/var/run
	#ln -sf  ../etc/httpd.conf   $(APACHE_ROOT)/conf/httpd.conf
	#ln -sf  ../etc/srm.conf     $(APACHE_ROOT)/conf/srm.conf
	#ln -sf  ../etc/access.conf  $(APACHE_ROOT)/conf/access.conf
	touch hacktastic

$(SGIPATCH).done : $(MOD_SSL).done $(SGIPATCH)
ifeq ($(DO_SGIPATCH),1)
	if [ -f $(SGIPATCH) ] ; then \
		patch -p0 < $(SGIPATCH); \
		( cd apache_1.3.12/htdocs; uudecode sgi_performance.gif.uu ) ; \
	fi
	touch $(APACHE_VERSION)/src/Configuration.apaci
endif


.PHONY: install
install: hacktastic


$(APACHE_VERSION).done: $(APACHE_VERSION).tar.gz
	$(RMRF) $(APACHE_VERSION)
#	cvs checkout -r V1 $(APACHE_VERSION)
	$(GUNZIP) < $(APACHE_VERSION).tar.gz | $(TAR) xf -
	touch $(APACHE_VERSION).done

$(MOD_SSL).done : $(MOD_SSL).tar.gz $(APACHE_VERSION).done
	$(RMRF) $(MOD_SSL) $(MOD_SSL)
	$(GUNZIP) < $(MOD_SSL).tar.gz | $(TAR) xf -
	cd $(MOD_SSL); ./configure \
	--with-apache=../$(APACHE_VERSION) \
	--with-ssl=../$(OPENSSL) \
	--prefix=$(APACHE_ROOT) \
	--enable-module=so \
	--enable-module=proxy \
	--enable-module=rewrite
	touch $(MOD_SSL).done

$(OPENSSL).done: $(OPENSSL).tar.gz
	$(RMRF) $(OPENSSL)
	$(GUNZIP) < $(OPENSSL).tar.gz | $(TAR) xf -
	cd $(OPENSSL); sh config; $(MAKE) $(IN_PARALLEL_ALL);
	touch $(OPENSSL).done


.PHONY: uninstall
uninstall:
	$(RMF) -r $(APACHE_ROOT)


# BEGIN	--- REDHAT 6.0 ALERT  REDHAT 6.0 ALERT  REDHAT 6.0 ALERT  REDHAT 6.0
# Our buddies at Redhat moved ndbm.h from its usual resting place.
# It seems that the consensus is that it will be moving back!
ifneq ($(wildcard /usr/include/db1/ndbm.h),)
ifeq ($(wildcard /usr/include/ndbm.h),)
/usr/include/ndbm.h : /usr/include/db1/ndbm.h
	@echo "======================================================="
	@echo " REDHAT 6.0 ALERT  REDHAT 6.0 ALERT  REDHAT 6.0 ALERT  "
	@echo "======================================================="
	@echo "On REDHAT 6.0 /usr/include/ndbm.h is in the wrong place"
	@echo "Become root and perform the following command:"
	@echo "   ln /usr/include/db1/ndbm.h /usr/include/ndbm.h"
	@echo "======================================================="
	exit 1
endif
endif
# When we're done with REDHAT 6.0, we should remove this.
# END	--- REDHAT 6.0 ALERT  REDHAT 6.0 ALERT  REDHAT 6.0 ALERT  REDHAT 6.0



______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      modssl-users@modssl.org
Automated List Manager                            majordomo@modssl.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic