From owner-svn-src-head@FreeBSD.ORG Sat Dec 11 16:06:54 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8755C106566C; Sat, 11 Dec 2010 16:06:53 +0000 (UTC) (envelope-from shteryana@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1A5498FC14; Sat, 11 Dec 2010 16:06:52 +0000 (UTC) Received: by qwj9 with SMTP id 9so4819845qwj.13 for ; Sat, 11 Dec 2010 08:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=YlOLJ/p6jxzs8bozWPrnM/8d9JDz+RO6veZqAisv+28=; b=F4IQBCL7tMmpJho8fraLTvBlM/mC9JDFlZ3CYpQ3WzKZJbQGVRK4mR3OW76vIidOdg +3qsAt/s1kTv16elj6+kBUHp6vjmOg+f2gSMwAZ2jQc9aPljQThx+bsyKaBn0jrGmnRk +FFPM0/GfxpHtVWb6I8WIlZl3VoizkP2udchM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=s4CxfeMgw1OkstzhWfguJlp4ZvKfeUle6vFLZqLRL8jlfU5T7gI+NQCdE8ORMAGKRr FS7wFMy2xNa9strg12t7SU39ebMg4X1VmWLJdzlBQfQF4YzNkZmKf67r1gAIaNTdIjzF lIILY25hyYXjELcQnObLZj+D7nKA5NCKI6pCw= MIME-Version: 1.0 Received: by 10.229.185.7 with SMTP id cm7mr1911124qcb.89.1292082143728; Sat, 11 Dec 2010 07:42:23 -0800 (PST) Sender: shteryana@gmail.com Received: by 10.229.105.68 with HTTP; Sat, 11 Dec 2010 07:42:23 -0800 (PST) In-Reply-To: References: <201012081430.oB8EUP8J006067@svn.freebsd.org> <5A7A3A47-18EF-4634-AA83-1501EF433A57@gmail.com> Date: Sat, 11 Dec 2010 17:42:23 +0200 X-Google-Sender-Auth: BCYSD0UX1oN5pXtpEzn-ZLPA2BU Message-ID: From: Shteryana Shopova To: Garrett Cooper Content-Type: text/plain; charset=UTF-8 Cc: src-committers@freebsd.org, Pawel Worach , ed@freebsd.org, svn-src-head@freebsd.org, svn-src-all@freebsd.org, rdivacky@freebsd.org Subject: Re: svn commit: r216295 - in head/usr.sbin/bsnmpd: . tools tools/bsnmptools tools/libbsnmptools X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syrinx@FreeBSD.org List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Dec 2010 16:06:54 -0000 Hi, This is now fixed. However I wouldn't expect bsnmpd(1) compiled with clang to work - it didn't run last time I checked several months ago, and I still get the same error - udo /usr/sbin/bsnmpd -d -c /root/snmpd.config snmpd[80050]: lm_load: open /usr/lib/snmp_mibII.so: Undefined symbol "oid_zeroDotZero" snmpd[80050]: init dep failed: 13 1.3.6.1.4.1.12325.1.1.1.6 5.109.105.98.73.73 snmpd[80050]: error in config file bsnmpd(1) uses export-dynamic flag and dlopen() to load its modules runtime, but for some reason that does not work if bsnmpd(1) is compiled with clang. Obviosly the oid_zeroDotZero OID defined in the bsnmpd main binary is not available in the snmp_mibII(3) or any other module that uses it. I am not sure where exactly the problems is. cheers, Shteryana On 12/10/10, Garrett Cooper wrote: > On Fri, Dec 10, 2010 at 11:07 AM, Pawel Worach > wrote: >> On Dec 8, 2010, at 15:30, Shteryana Shopova wrote: >>> Author: syrinx >>> Date: Wed Dec 8 14:30:25 2010 >>> New Revision: 216295 >>> URL: http://svn.freebsd.org/changeset/base/216295 >>> >>> Log: >>> Add bsnmpd(1)'s SNMP client tools (including SNMPv3 support) to the base >>> system. >>> >>> Sponsored by: The FreeBSD Foundation (the SNMPv3 bits), Google Summer >>> of Code 2005 >>> Reviewed by: philip@ (mostly), bz@ (earlier version based on p4 >>> ch124545) >>> Approved by: philip@ >>> >>> Added: >>> head/usr.sbin/bsnmpd/tools/libbsnmptools/Makefile (contents, props >>> changed) >> >> >> Hi, >> >> In bsnmpd/tools/libbsnmptools/Makefile you set CFLAGS+= -g -Wall -Werror > > And it's just plain wrong in the first place; if you want to specify > -g, etc please use DEBUG_FLAGS. > >> this breaks the build with clang even with NO_WERROR=1 set, you probably >> want so this instead: >> >> WARNS?= >> >> ps. >> The warnings with clang are: >> /data/buildslave/freebsd-clang-amd64/src-freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c:620:50: >> error: comparison of unsigned expression < 0 is always false >> [-Wtautological-compare] >> snmp_client.cengine, SNMP_ENGINE_ID_SIZ)) < 0) >> { >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ >> /data/buildslave/freebsd-clang-amd64/src-freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c:658:38: >> error: comparison of unsigned expression < 0 is always false >> [-Wtautological-compare] >> if (snmp_client.engine.engine_len < 0) { >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ > > Thanks, > -Garrett >