From owner-freebsd-questions Tue Aug 13 20:02:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA29867 for questions-outgoing; Tue, 13 Aug 1996 20:02:26 -0700 (PDT) Received: from aries.interspace.com.au (steve@aries.interspace.com.au [203.22.192.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA29847 for ; Tue, 13 Aug 1996 20:02:07 -0700 (PDT) Received: (from steve@localhost) by aries.interspace.com.au (8.7.5/8.6.9) id NAA07302; Wed, 14 Aug 1996 13:01:47 +1000 Date: Wed, 14 Aug 1996 13:01:47 +1000 (GMT+1000) From: Steve Gibson To: Eric Chan cc: questions@freebsd.org Subject: Re: Compile Apache on FreeBSD 2.0 In-Reply-To: <199608140231.MAA05676@moredun.nswcc.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 14 Aug 1996, Eric Chan wrote: > Hi, > > I tried to compile the Apache 1.1.1 on FreeBSD v2.0 but it gives me an > error. Have you ever encountered this error before...? > > >make > . ... > .... > cc -c -O2 -m486 mod_log_common.c > cc -c -O2 -m486 mod_asis.c > cc -c -O2 -m486 mod_imap.c > cc -c -O2 -m486 mod_actions.c > cc -c -O2 -m486 mod_log_config.c > cc -c -O2 -m486 mod_status.c > cc -c -O2 -m486 mod_info.c > cc -c -O2 -m486 mod_proxy.c > cc -o httpd alloc.o http_main.o http_core.o http_config.o http_request.o > http_log.o http_protocol.o rfc1413.o util.o util_script.o modules.o buff.o m > d5c.o util_md5.o explain.o http_bprintf.o mod_mime.o mod_access.o mod_auth > .o mod_negotiation.o mod_include.o mod_dir.o mod_cgi.o mod_userdir.o m > od_alias.o mod_env.o mod_log_common.o mod_asis.o mod_imap.o mod_actions > .o mod_log_config.o mod_status.o mod_info.o mod_proxy.o > mod_auth.o: Undefined symbol `_crypt' referenced from text segment > *** Error code 1 > > Stop. > > What is the symbol `_crypt'? I couldn't find it out from the src directory. > Was it a mistyping error or something? How to debug it...? > > Many Thanks > Eric > In the Configuration file, did you uncomment the line AUX_LIBS= -lcrypt The reference to _crypt is in a compiled object file. The actual use of it in the source will be crypt (not _crypt) Here is the section you need to look at in the src/Configuration file # 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 ------------------------------------------------------------------------------ Interspace Australia Pty Ltd Steve Gibson - System Administrator 8 Boyd Street, West Melbourne, Australia 3003 Ph +61 3 9329 9066 Fax +61 3 9329 1388 ------------------------------------------------------------------------------