pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] alapha23 opened a new issue #3094: Error go get pulsar: Unknown type `pulsar_string_list_t` and `pulsarGetTopicPartitionsCallbackProxy`
Date Thu, 29 Nov 2018 13:48:40 GMT
alapha23 opened a new issue #3094: Error go get pulsar: Unknown type  `pulsar_string_list_t`
and `pulsarGetTopicPartitionsCallbackProxy`
URL: https://github.com/apache/pulsar/issues/3094
 
 
   #### Expected behavior
   
   So I would like to use pulsar in go and I expect the package to be install by `go get -u
github.com/apache/pulsar/pulsar-client-go/pulsar
   `
   #### Actual behavior
   
   So it seems there are some library version incompatibility. 
   ```
   # github.com/apache/pulsar/pulsar-client-go/pulsar
   /home/gao/.gvm/pkgsets/go1.9/global/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_client.go:135:8:
could not determine kind of name for C.pulsar_authentication_token_create
   /home/gao/.gvm/pkgsets/go1.9/global/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_client.go:263:3:
could not determine kind of name for C.pulsar_string_list_free
   /home/gao/.gvm/pkgsets/go1.9/global/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_client.go:260:31:
could not determine kind of name for C.pulsar_string_list_get
   /home/gao/.gvm/pkgsets/go1.9/global/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_client.go:257:24:
could not determine kind of name for C.pulsar_string_list_size
   /home/gao/.gvm/pkgsets/go1.9/global/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_client.go:251:78:
could not determine kind of name for C.pulsar_string_list_t
   
   gcc errors for preamble:
   In file included from /home/gao/.gvm/pkgsets/go1.9/global/src/github.com/apache/pulsar/pulsar-client-go/pulsar/c_client.go:24:
   ./c_go_pulsar.h:139:66: error: unknown type name 'pulsar_string_list_t'; did you mean 'pulsar_string_map_t'?
    void pulsarGetTopicPartitionsCallbackProxy(pulsar_result result, pulsar_string_list_t*
partitions, void *ctx);
                                                                     ^~~~~~~~~~~~~~~~~~~~
                                                                     pulsar_string_map_t
   ./c_go_pulsar.h: In function '_pulsar_client_get_topic_partitions':
   ./c_go_pulsar.h:143:61: error: 'pulsarGetTopicPartitionsCallbackProxy' undeclared (first
use in this function); did you mean 'pulsarProducerSendCallbackProxy'?
        pulsar_client_get_topic_partitions_async(client, topic, pulsarGetTopicPartitionsCallbackProxy,
ctx);
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                pulsarProducerSendCallbackProxy
   ./c_go_pulsar.h:143:61: note: each undeclared identifier is reported only once for each
function it appears in
   ```
   
   #### Steps to reproduce
   
   - Download two packages `apache-pulsar-client-2.2.0-1.x86_64.rpm  apache-pulsar-client-devel-2.2.0-1.x86_64.rpm`
from https://pulsar.apache.org/docs/en/client-libraries-cpp/
   - rpm -ivh apache-pulsar-client-*.rpm
   - go get -u github.com/apache/pulsar/pulsar-client-go/pulsar
   
   #### System configuration
   **Pulsar version**: 2.22
   **go version**: 1.11, 1.10, 1.9
   **os**: opensuse tumbleweed

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message