From owner-svn-src-all@FreeBSD.ORG Sun Dec 12 18:43:50 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C27781065672; Sun, 12 Dec 2010 18:43:50 +0000 (UTC) (envelope-from shteryana@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id CA3B08FC15; Sun, 12 Dec 2010 18:43:49 +0000 (UTC) Received: by qyk8 with SMTP id 8so2368257qyk.13 for ; Sun, 12 Dec 2010 10:43:49 -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=GmHtm/6mrR2Pfm/yG9ASn6tKoH2GBmHuiiv60vIuA4M=; b=dZUCrDSFITLVfkdRgZK/08HCHNM4Y5Q+g40p+wzwz0sQGkKRtw+k6z7kPJ/o3x/vs8 6xSvh620CyQxwrpWQvWMRJblRS5+gdFi97f9hBxDOVGPnRqqPT5thMINm4q53KpFTmzA LoPPOnhdzcQy53D20cVMkZn0pUzc5HuJ8N6Is= 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=qUAX7SXnUb8GRtMRS/z+CCKOGiV0knR1ciU0mnRnodW88v6IS7cGWdJXv0KPDvympx FV/rvyeBNxef+skyVI3WeOp28FaXwjg53k32IJ+nWoghC1GBdJwpdieIRSgIGAhLGT65 BnyyiQTGOn+KeER8GzG2e/5pQGCEZzNs98sUQ= MIME-Version: 1.0 Received: by 10.229.185.7 with SMTP id cm7mr2995419qcb.89.1292179428105; Sun, 12 Dec 2010 10:43:48 -0800 (PST) Sender: shteryana@gmail.com Received: by 10.229.105.68 with HTTP; Sun, 12 Dec 2010 10:43:48 -0800 (PST) In-Reply-To: <4D04E7D3.3060308@FreeBSD.org> References: <201012081430.oB8EUP8J006067@svn.freebsd.org> <5A7A3A47-18EF-4634-AA83-1501EF433A57@gmail.com> <4D04E7D3.3060308@FreeBSD.org> Date: Sun, 12 Dec 2010 20:43:48 +0200 X-Google-Sender-Auth: WNiwV0bATEh3u6hXA__TvlxigH0 Message-ID: From: Shteryana Shopova To: Dimitry Andric Content-Type: text/plain; charset=UTF-8 Cc: src-committers@freebsd.org, ed@freebsd.org, Garrett Cooper , 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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syrinx@FreeBSD.org List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 18:43:50 -0000 Hi, The attached patch worked. The output of readelf with the patch is in the http://people.freebsd.org/~syrinx/readelf.txt, the file also contains the output of readelf main.o without the patch and with gcc. The output of readelf bsnmpd compiled with clang and gcc is in http://people.freebsd.org/~syrinx/readelf-bsnmpd.txt . I hope this helps. cheers, Shteryana On 12/12/10, Dimitry Andric wrote: > On 2010-12-11 16:42, Shteryana Shopova wrote: >> 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 > > Can you please try the attached patch, which makes clang pass the > -export-dynamic flag to the linker properly? >