pipelinedb / pipeline_kafka

PipelineDB extension for Kafka support
Other
61 stars 22 forks source link

compile error:stream_copy_hook not defined #82

Open miaojianxin opened 5 years ago

miaojianxin commented 5 years ago

when i compile the latest pipeline_kafka code ,the pipelinedb is1.0.0. ,postgresql is 10.3, i got the compile error: pipeline_kafka.c:1485:2: 错误:‘stream_copy_hook’未声明(在此函数内第一次使用) stream_copy_hook = copy_iter_hook;

that means the stream_copy_hook not defined, how can i do , thank you

derekjn commented 5 years ago

@miaojianxin can you make sure you have the latest PipelineDB package revision? stream_copy_hook was added in package revision 9 so you're probably using an earlier revision.

miaojianxin commented 5 years ago

yes, iuse the latest master branch, get the code from download https://github.com/pipelinedb/pipeline_kafka.git

derekjn commented 5 years ago

@miaojianxin I'm actually referring to PipelineDB, not pipeline_kafka. You need to install a PipelineDB package >= revision 9. For example, the latest package revision is 11, which you can download from our release archives:

https://github.com/pipelinedb/pipelinedb/releases/tag/1.0.0-11

You can also just install the latest package from our apt/yum repos which will pick up the latest revision.

The PipelineDB package revision you are running does not have stream_copy_hook.

miaojianxin commented 5 years ago

ok, i got it ,thank you