You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "supersven (via GitHub)" <gi...@apache.org> on 2025/11/06 06:45:53 UTC
[I] [Bug] pulsar_message_set_schema_version: Only declared but not defined? [pulsar-client-cpp]
supersven opened a new issue, #522:
URL: https://github.com/apache/pulsar-client-cpp/issues/522
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing similar.
### Version
`v3.7.0` and `main`
### Minimal reproduce step
`PULSAR_PUBLIC void pulsar_message_set_schema_version(pulsar_message_t *message, const char *schemaVersion)` is declared in [`include/pulsar/c/message.h`](https://github.com/apache/pulsar-client-cpp/blob/a03eb9278bf96cbda42eb9e7dc1c73ee0b65ea3e/include/pulsar/c/message.h#L216), however I cannot find where this function is defined/implemented 🤔
I'm pretty new to the code base, so I might me overlooking something. Please accept my excuses if that's the case.
### What did you expect to see?
I'd expected to find a function like
```C
void pulsar_message_set_schema_version(pulsar_message_t *message, const char *schemaVersion) {
message->message.setSchemaVersion(schemaVersion);
}
```
in `lib/c/c_Message.cc`. [Please note that the function should just illustrate the issue - I haven't tried it.]
### What did you see instead?
Nothing 😉
I found no delegating C function for `pulsar_message_set_schema_version`.
### Anything else?
May be an interesting detail: I'm generating Haskell bindings to this library from the C header files. I found this issue because the linker couldn't find a symbol for `pulsar_message_set_schema_version`.
If my reasoning makes sense, I'm happy to provide the three line delegate function as PR.
### Are you willing to submit a PR?
- [x] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] pulsar_message_set_schema_version: Only declared but not defined? [pulsar-client-cpp]
Posted by "BewareMyPower (via GitHub)" <gi...@apache.org>.
BewareMyPower closed issue #522: [Bug] pulsar_message_set_schema_version: Only declared but not defined?
URL: https://github.com/apache/pulsar-client-cpp/issues/522
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org