Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2114

jute generated allocate_* functions are not externally visible

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.4.7, 3.5.1, 3.6.0
    • c client
    • None
    • Expose jute-generated allocate_XXX functions in libzookeeper.

    Description

      Some jute generated functions (e.g. allocate_ACL_vector) that should be publicly exported are given local (vs global) linkage. This is due to an incomplete regex for EXPORT_SYMBOLS in the C Makefile.am.

      Without allocate_ACL_vector it's not possible to set ACL lists from C.
      The regex should include "allocate_" :

      EXPORT_SYMBOLS = '(zoo_|zookeeper_|zhandle|Z|format_log_message|log_message|logLevel|deallocate_|allocate_|zerror|is_unrecoverable)'

      Attachments

        1. zk-makefile-patch
          0.7 kB
          Tim Crowder

        Activity

          People

            timrc Tim Crowder
            timrc Tim Crowder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: