From nobody@FreeBSD.org  Mon Jan 16 17:26:01 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C06CF1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Jan 2012 17:26:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 94F278FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Jan 2012 17:26:01 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0GHQ1JW010614
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Jan 2012 17:26:01 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0GHQ1xC010613;
	Mon, 16 Jan 2012 17:26:01 GMT
	(envelope-from nobody)
Message-Id: <201201161726.q0GHQ1xC010613@red.freebsd.org>
Date: Mon, 16 Jan 2012 17:26:01 GMT
From: Devin Teske <dteske@vicor.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] buildworld WITHOUT_OPENSSL stops at lib/libbsnmp/libbsnmp
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164208
>Category:       kern
>Synopsis:       [build] [patch] buildworld WITHOUT_OPENSSL stops at lib/libbsnmp/libbsnmp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dteske
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 16 17:30:09 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon May 07 21:23:45 UTC 2012
>Originator:     Devin Teske
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
FIS Global, Inc.
>Environment:
FreeBSD scribe.vicor.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2010
root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
When performing buildworld while specifying WITHOUT_OPENSSL, the all target fails during cc of snmpcrypto.c in contrib/bsnmp/lib. Output below:

$ make buildworld -DWITHOUT_OPENSSL
[snip]
===> lib/libbsnmp/libbsnmp (all)
[snip]
cc -I/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib -DHAVE_E
RR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DQUADF
MT='"llu"' -DQUADXFMT='"llx"' -std=gnu99 -fstack-protector -Wsystem-headers -Wal
l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototy
pes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow
-Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wre
dundant-decls -Wold-style-definition -Wno-pointer-sign -c /usr/src/lib/libbsnmp/
libbsnmp/../../../contrib/bsnmp/lib/snmpcrypto.c
/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmpcrypto.c:371: erro
r: conflicting types for 'snmp_passwd_to_keys'
/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.h:273: error: pre
vious declaration of 'snmp_passwd_to_keys' was here
/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmpcrypto.c:384: erro
r: conflicting types for 'snmp_get_local_keys'
/usr/src/lib/libbsnmp/libbsnmp/../../../contrib/bsnmp/lib/snmp.h:274: error: pre
vious declaration of 'snmp_get_local_keys' was here
*** Error code 1

>How-To-Repeat:
1. csup RELENG_9
2. cd /usr/src
3. make buildworld -DWITHOUT_OPENSSL

NOTE: You'll first stop at lib/libarchive making depend. Apply the patch from PR 164206 to make it past lib/libarchive

4. See above description for error output
>Fix:
See attached patch.txt.

Patch attached with submission follows:

--- contrib/bsnmp/lib/snmpcrypto.c.orig	2011-09-22 17:51:37.000000000 -0700
+++ contrib/bsnmp/lib/snmpcrypto.c	2012-01-15 09:49:27.000000000 -0800
@@ -366,7 +366,7 @@ snmp_pdu_decrypt(const struct snmp_pdu *
 	return (SNMP_CODE_OK);
 }
 
-int
+enum snmp_code
 snmp_passwd_to_keys(struct snmp_user *user, char *passwd __unused)
 {
 	if (user->auth_proto == SNMP_AUTH_NOAUTH &&
@@ -378,7 +378,7 @@ snmp_passwd_to_keys(struct snmp_user *us
 	return (SNMP_CODE_FAILED);
 }
 
-int
+enum snmp_code
 snmp_get_local_keys(struct snmp_user *user, uint8_t *eid __unused,
     uint32_t elen __unused)
 {


>Release-Note:
>Audit-Trail:

From: Devin Teske <devin.teske@fisglobal.com>
To: <bug-followup@FreeBSD.org>, <dteske@vicor.com>
Cc:  
Subject: Re: misc/164208: [PATCH] buildworld WITHOUT_OPENSSL stops at lib/libbsnmp/libbsnmp
Date: Mon, 16 Jan 2012 09:48:13 -0800

 Typo in the original description.
 
 	$ make -DWITHOUT_OPENSSL
 
 should be
 
 	$ make buildworld -DWITHOUT_OPENSSL
 
 -- 
 Devin
 
 _____________
 The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
Responsible-Changed-From-To: freebsd-bugs->dteske 
Responsible-Changed-By: dteske 
Responsible-Changed-When: Mon May 7 21:23:45 UTC 2012 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164208 
>Unformatted:
