Menu

#2634 missing framework on OSX build for some libs

macOS
closed
None
5
2015-06-02
2015-06-01
No

libnetsnmpagent.so and libnetsnmpmibs.so are not build with the OSX's specific parameters. I needed to add -flat_namespace -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework IOKit in agent/Makefile.in for libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION) and libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION).
Compilation works, but I soon I try to use the agent it fails with missing symbol.

Discussion

  • Niels Baggesen

    Niels Baggesen - 2015-06-01

    What version og Net-SNMP and Darwin?

    Unfortunately I only have access to a no quite recent Darwin version, but there it work for me with Net-SNMP 5.7.3.

     
  • Niels Baggesen

    Niels Baggesen - 2015-06-01
    • status: open --> pending
    • assigned_to: Niels Baggesen
     
  • Fabrice Bacchella

    Darwin XXXX 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64

    I took it from the daily git, main branch.

     
  • Niels Baggesen

    Niels Baggesen - 2015-06-02

    Right, so this is a new Darwin version, but the requirements seem to be the same. Could you try the attached patch, and see if it solves the problem?

     
  • Fabrice Bacchella

    Works for me.

     
  • Niels Baggesen

    Niels Baggesen - 2015-06-02
    • status: pending --> closed
     
  • Niels Baggesen

    Niels Baggesen - 2015-06-02

    Thanks for the heads up. The fix has been applied for the 5.7 patches branch and the master branch.

     

Log in to post a comment.