Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 2010 20:43:48 +0200
From:      Shteryana Shopova <syrinx@FreeBSD.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        src-committers@freebsd.org, Pawel Worach <pawel.worach@gmail.com>, ed@freebsd.org, Garrett Cooper <gcooper@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
Message-ID:  <AANLkTik7xGV2DhfioyPVfOMhsgKyo2gF9bE9A1BJnqbk@mail.gmail.com>
In-Reply-To: <4D04E7D3.3060308@FreeBSD.org>
References:  <201012081430.oB8EUP8J006067@svn.freebsd.org> <5A7A3A47-18EF-4634-AA83-1501EF433A57@gmail.com> <AANLkTim1r-aY1cBALEOxOms=0U==g7dwtzdpWHG5%2BPbP@mail.gmail.com> <AANLkTinTeeLD80eMRPdR6tigvsSSmpAefBHvaWn_VGRS@mail.gmail.com> <4D04E7D3.3060308@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <dim@freebsd.org> 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?
>



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