Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 1996 13:01:47 +1000 (GMT+1000)
From:      Steve Gibson <steve@aries.interspace.com.au>
To:        Eric Chan <Eric.Chan@nswcc.org.au>
Cc:        questions@freebsd.org
Subject:   Re: Compile Apache on FreeBSD 2.0
Message-ID:  <Pine.LNX.3.91.960814125923.7293A@aries.interspace.com.au>
In-Reply-To: <199608140231.MAA05676@moredun.nswcc.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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
                       <steve@interspace.com.au>

             8 Boyd Street, West Melbourne, Australia 3003
                Ph +61 3 9329 9066   Fax +61 3 9329 1388
------------------------------------------------------------------------------





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.91.960814125923.7293A>