From nobody@FreeBSD.org  Thu Jan 18 08:02:22 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 9F21837B402
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Jan 2001 08:02:22 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f0IG2Md42090;
	Thu, 18 Jan 2001 08:02:22 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200101181602.f0IG2Md42090@freefall.freebsd.org>
Date: Thu, 18 Jan 2001 08:02:22 -0800 (PST)
From: ches@bell-labs.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: cipher(3) man pages needs to state that -lcipher is needed.
X-Send-Pr-Version: www-1.0

>Number:         24434
>Category:       docs
>Synopsis:       cipher(3) man pages needs to state that -lcipher is needed.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ben
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 18 08:10:01 PST 2001
>Closed-Date:    Fri Jul 20 06:17:54 BST 2001
>Last-Modified:  Fri Jul 20 06:18:20 BST 2001
>Originator:     Bill Cheswick
>Release:        4.2 stable
>Organization:
Lumeta Corporation
>Environment:
FreeBSD ches-netmapper.research.bell-labs.com 4.2-STABLE FreeBSD 4.2-STABLE #1: Sun Nov 26 13:50:34 EST 2000     ches@ches-netmapper.research.bell-labs.com:/usr/src/sys/compile/LOCAL  i386

>Description:
Man pages should mention the libraries that their routines rely on.
It is missing from the cipher(3) man page.  The obvious entries
of -ldes and -lcrypto don't work.

A lot of people are having problems with this.  They see the libc
error messages and think crypto is not available. The search engines
show a lot of queries about:

/var/tmp/ccO60021.o(.text+0x2c): WARNING!  des_cipher(3) not present in the system!

ches
>How-To-Repeat:
ches-netmapper:~/map/dev/ches/snk$ cat t.c
int
main(int argc, char *argv[]) {
        char buf[1000];

        des_setkey("xxx");
        des_cipher(buf, buf, 0, 16);
        setkey("ccc");
        encrypt(buf, 1);
}
ches-netmapper:~/map/dev/ches/snk$ cc t.c
/var/tmp/cck60048.o: In function `main':
/var/tmp/cck60048.o(.text+0x12): WARNING!  des_setkey(3) not present in the system!
/var/tmp/cck60048.o(.text+0x2c): WARNING!  des_cipher(3) not present in the system!
/var/tmp/cck60048.o(.text+0x3c): WARNING!  setkey(3) not present in the system!
/var/tmp/cck60048.o(.text+0x50): WARNING!  encrypt(3) not present in the system!

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->ben 
Responsible-Changed-By: ben 
Responsible-Changed-When: Wed Jan 24 14:27:41 GMT 2001 
Responsible-Changed-Why:  
Committed to -current, I'll MFC it soon. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24434 
State-Changed-From-To: open->closed 
State-Changed-By: ben 
State-Changed-When: Fri Jul 20 06:17:54 BST 2001 
State-Changed-Why:  
Committed in -current and MFC'd by ru, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24434 
>Unformatted:
