Mailing List Archive

Config problems
I rather belatedly decided to compile _all_ the modules under SCO. The good
news is that they all compile fine. The bad news is that it revealed an
undesirable glitch in Configure, namely that various OSes abuse EXTRA_LIBS,
with the result that adding -lndbm where recommended does not work. The
following patch fixes it:

*** ../../apache_0.8.16/src/Configuration Fri Oct 27 21:37:35 1995
--- ./Configuration Tue Nov 7 18:44:42 1995
***************
*** 51,62 ****
# For SunOS 4
AUX_CFLAGS= -DSUNOS4
# For Solaris 2.
# For SGI IRIX. Use the EXTRA_LIBS line if you're using NIS and want
# user-supported directories
#AUX_CFLAGS= -DIRIX
! #EXTRA_LIBS= -lsun
# For HP-UX n.b. if you use the paid-for HP CC compiler, use flag -Ae
#AUX_CFLAGS= -DHPUX
# For AIX
--- 51,62 ----
# For SunOS 4
AUX_CFLAGS= -DSUNOS4
# For Solaris 2.
! #AUX_CFLAGS= -DSOLARIS2
! #AUX_LIBS= -lsocket -lnsl
# For SGI IRIX. Use the EXTRA_LIBS line if you're using NIS and want
# user-supported directories
#AUX_CFLAGS= -DIRIX
! #AUX_LIBS= -lsun
# For HP-UX n.b. if you use the paid-for HP CC compiler, use flag -Ae
#AUX_CFLAGS= -DHPUX
# For AIX
***************
*** 73,103 ****
#AUX_CFLAGS= -DLINUX
# For A/UX
#AUX_CFLAGS= -DAUX -D_POSIX_SOURCE
! #EXTRA_LIBS= -lposix -lbsd -s
# For SCO ODT
# libcrypt_i available from sosco.sco.com, files /SLS/lng225b.Z and
# /SLS/lng225b.ltr.Z
# the -Oe option causes cc to die compiling mod_imap (using 3.0.0a of the dev sys)
#CFLAGS= -Oacgiltz
#AUX_CFLAGS= -DSCO
! #EXTRA_LIBS= -lPW -lsocket -lmalloc -lcrypt_i
# For SVR4
#AUX_CFLAGS= -DSVR4
! #EXTRA_LIBS= -lsocket -lnsl -lc
# For Amdahl UTS 2.1
# -Xa enables ANSI mode, -eft is expanded types
#AUX_CFLAGS= -Xa -eft -DUTS21
! #EXTRA_LIBS= -lsocket -lbsd -la
# For HP/Apollo Domain/OS
#AUX_CFLAGS= -DAPOLLO
# For NetBSD/FreeBSD/BSDI 2.x
# -m486 only if you are running on Intel 486/586
#AUX_CFLAGS= -m486
# BSDI doesn't need -lcrypt
! #EXTRA_LIBS= -lcrypt
# For QNX
#AUX_CFLAGS= -DQNX
! #LFLAGS= -N 0x20000

################################################################
# Module configuration
--- 73,103 ----
#AUX_CFLAGS= -DLINUX
# For A/UX
#AUX_CFLAGS= -DAUX -D_POSIX_SOURCE
! #AUX_LIBS= -lposix -lbsd -s
# For SCO ODT
# libcrypt_i available from sosco.sco.com, files /SLS/lng225b.Z and
# /SLS/lng225b.ltr.Z
# the -Oe option causes cc to die compiling mod_imap (using 3.0.0a of the dev sys)
#CFLAGS= -Oacgiltz
#AUX_CFLAGS= -DSCO
! #AUX_LIBS= -lPW -lsocket -lmalloc -lcrypt_i $(EXTRA_LIBS)
# For SVR4
#AUX_CFLAGS= -DSVR4
! #AUX_LIBS= -lsocket -lnsl -lc
# For Amdahl UTS 2.1
# -Xa enables ANSI mode, -eft is expanded types
#AUX_CFLAGS= -Xa -eft -DUTS21
! #AUX_LIBS= -lsocket -lbsd -la
# For HP/Apollo Domain/OS
#AUX_CFLAGS= -DAPOLLO
# For NetBSD/FreeBSD/BSDI 2.x
# -m486 only if you are running on Intel 486/586
#AUX_CFLAGS= -m486
# BSDI doesn't need -lcrypt
! #AUX_LIBS= -lcrypt
# For QNX
#AUX_CFLAGS= -DQNX
! #AUX_LFLAGS= -N 0x20000

################################################################
# Module configuration
*** ../../apache_0.8.16/src/Makefile.tmpl Tue Oct 10 22:53:59 1995
--- ./Makefile.tmpl Tue Nov 7 18:37:21 1995
***************
*** 12,18 ****
all: httpd

httpd: $(OBJS)
! $(CC) $(LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS)

clean:
rm -f httpd $(OBJS) *pure*
--- 12,18 ----
all: httpd

httpd: $(OBJS)
! $(CC) $(LFLAGS) $(AUX_LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS) $(AUX_LIBS)

clean:
rm -f httpd $(OBJS) *pure*

--
Ben Laurie Phone: +44 (181) 994 6435
Freelance Consultant Fax: +44 (181) 994 6472
and Technical Director Email: ben@algroup.co.uk
A.L. Digital Ltd,
London, England.