-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ralf S. Engelschall schrieb: > On Tue, Mar 21, 2006, Steffen Weinreich wrote: > >> Added option for a build with shared libs >> [...] >> %option with_fsl yes >> %option with_perl no >> +%option with_shared no >> %option with_mib_host no >> %option with_mib_smux no >> %option with_mib_tables no >> @@ -160,7 +161,9 @@ >> --with-persistent-directory=%{l_prefix}/var/snmp \ >> --with-openssl=%{l_prefix} \ >> --enable-silent-libtool \ >> +%if "%{with_shared}" == "no" >> --disable-shared \ >> +%endif >> %if "%{with_mib_host}" == "yes" || "%{with_mib_smux}" == "yes" || "%{with_mib_sendmail}" == "yes" >> --with-mib-modules="$mibs" \ >> %endif >> [...] > > Sorry for the delayed response, but I was totally busy with other tasks. > I'm not convinced that this option is of general reusability, Steve. It > links all binaries of net-snmp against the shared libraries and this > breaks on those platforms which do not hard-code the path in the ELF > files. This breaks the stand-alone principle of OpenPKG as it doesn't > allow multiple instances to co-exist easily.
My goal was to get snmpd working with recent versions of the HP Management Agents which come with a shared library which can be hooked into the snmpd with a dlmod config entry. The smux mib is sufficient that the snmpd loads the library named in dlmod config entry but the dynamic loading fails because the linker cant find the symbol snmp_log in the statically linked snmpd. The dynamically linked snmpd worked fine for me therefore I took this route. Taking a look at OpenPKG as whole this solution violated the overall project goals and I should take a deeper look onto this why the runtime linking fails and come back with a better solution. cheerio Steve -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEKtiGQftxpMD/nVkRAqg5AJ9+RtxwQIXM9yz0PaJc3LgyAERfggCg0uEd /t2Kf6X13bJq70a1pIAqD2I= =OXcK -----END PGP SIGNATURE----- ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List openpkg-dev@openpkg.org