Skip to content

Instantly share code, notes, and snippets.

@addisonj
Created October 9, 2017 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save addisonj/b89fb5b3508017d05d73e044e017357d to your computer and use it in GitHub Desktop.
Save addisonj/b89fb5b3508017d05d73e044e017357d to your computer and use it in GitHub Desktop.
rpgffi 0.3.0 compiler errors
error[E0432]: unresolved import `pg::Enum_OutputPluginOutputType::*`
--> src/lib.rs:43:9
|
43 | use pg::Enum_OutputPluginOutputType::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find `Enum_OutputPluginOutputType` in `pg`
error[E0432]: unresolved import `pg::Enum_ReorderBufferChangeType::*`
--> src/lib.rs:194:13
|
194 | use pg::Enum_ReorderBufferChangeType::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find `Enum_ReorderBufferChangeType` in `pg`
error[E0432]: unresolved import `pg::Enum_ReorderBufferChangeType::*`
--> src/lib.rs:217:9
|
217 | use pg::Enum_ReorderBufferChangeType::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find `Enum_ReorderBufferChangeType` in `pg`
error[E0432]: unresolved import `pg::Enum_vartag_external::VARTAG_ONDISK`
--> src/lib.rs:438:9
|
438 | use pg::Enum_vartag_external::VARTAG_ONDISK;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find `Enum_vartag_external` in `pg`
error[E0412]: cannot find type `OutputPluginCallbacks` in module `pg`
--> src/lib.rs:26:44
|
26 | pub unsafe extern "C" fn init(cb: *mut pg::OutputPluginCallbacks) {
| ^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `Struct_LogicalDecodingContext` in module `pg`
--> src/lib.rs:39:19
|
39 | ctx: *mut pg::Struct_LogicalDecodingContext,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `OutputPluginOptions` in module `pg`
--> src/lib.rs:40:23
|
40 | options: *mut pg::OutputPluginOptions,
| ^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `_bool` in module `pg`
--> src/lib.rs:41:19
|
41 | _is_init: pg::_bool,
| ^^^^^ not found in `pg`
error[E0425]: cannot find value `OUTPUT_PLUGIN_TEXTUAL_OUTPUT` in this scope
--> src/lib.rs:46:30
|
46 | (*options).output_type = OUTPUT_PLUGIN_TEXTUAL_OUTPUT;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Struct_LogicalDecodingContext` in module `pg`
--> src/lib.rs:50:19
|
50 | ctx: *mut pg::Struct_LogicalDecodingContext,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `ReorderBufferTXN` in module `pg`
--> src/lib.rs:51:19
|
51 | txn: *mut pg::ReorderBufferTXN,
| ^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginPrepareWrite` in module `pg`
--> src/lib.rs:54:9
|
54 | pg::OutputPluginPrepareWrite(ctx, CTRUE);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginWrite` in module `pg`
--> src/lib.rs:56:9
|
56 | pg::OutputPluginWrite(ctx, CTRUE);
| ^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `Struct_LogicalDecodingContext` in module `pg`
--> src/lib.rs:60:19
|
60 | ctx: *mut pg::Struct_LogicalDecodingContext,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `ReorderBufferTXN` in module `pg`
--> src/lib.rs:61:20
|
61 | _txn: *mut pg::ReorderBufferTXN,
| ^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `ReorderBufferChange` in module `pg`
--> src/lib.rs:63:22
|
63 | change: *mut pg::ReorderBufferChange,
| ^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginPrepareWrite` in module `pg`
--> src/lib.rs:69:13
|
69 | pg::OutputPluginPrepareWrite(ctx, CFALSE);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginWrite` in module `pg`
--> src/lib.rs:71:13
|
71 | pg::OutputPluginWrite(ctx, CFALSE);
| ^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginPrepareWrite` in module `pg`
--> src/lib.rs:74:9
|
74 | pg::OutputPluginPrepareWrite(ctx, CTRUE);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginWrite` in module `pg`
--> src/lib.rs:76:9
|
76 | pg::OutputPluginWrite(ctx, CTRUE);
| ^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `Struct_LogicalDecodingContext` in module `pg`
--> src/lib.rs:80:19
|
80 | ctx: *mut pg::Struct_LogicalDecodingContext,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `ReorderBufferTXN` in module `pg`
--> src/lib.rs:81:19
|
81 | txn: *mut pg::ReorderBufferTXN,
| ^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `timestamptz_to_str` in module `pg`
--> src/lib.rs:86:17
|
86 | let t = pg::timestamptz_to_str((*txn).commit_time);
| ^^^^^^^^^^^^^^^^^^ did you mean `timestamptz_to_char`?
error[E0425]: cannot find function `OutputPluginPrepareWrite` in module `pg`
--> src/lib.rs:95:9
|
95 | pg::OutputPluginPrepareWrite(ctx, CTRUE);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginWrite` in module `pg`
--> src/lib.rs:97:9
|
97 | pg::OutputPluginWrite(ctx, CTRUE);
| ^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `Struct_LogicalDecodingContext` in module `pg`
--> src/lib.rs:103:45
|
103 | unsafe extern "C" fn shutdown(ctx: *mut pg::Struct_LogicalDecodingContext) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `Struct_LogicalDecodingContext` in module `pg`
--> src/lib.rs:109:19
|
109 | ctx: *mut pg::Struct_LogicalDecodingContext,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `ReorderBufferTXN` in module `pg`
--> src/lib.rs:110:20
|
110 | _txn: *mut pg::ReorderBufferTXN,
| ^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `_bool` in module `pg`
--> src/lib.rs:112:24
|
112 | transactional: pg::_bool,
| ^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginPrepareWrite` in module `pg`
--> src/lib.rs:117:9
|
117 | pg::OutputPluginPrepareWrite(ctx, CTRUE);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0425]: cannot find function `OutputPluginWrite` in module `pg`
--> src/lib.rs:119:9
|
119 | pg::OutputPluginWrite(ctx, CTRUE);
| ^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `Enum_ReorderBufferChangeType` in module `pg`
--> src/lib.rs:190:32
|
190 | struct BufferChangeWrapper(pg::Enum_ReorderBufferChangeType);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `ReorderBufferChange` in module `pg`
--> src/lib.rs:214:22
|
214 | change: *mut pg::ReorderBufferChange,
| ^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `ReorderBufferTupleBuf` in module `pg`
--> src/lib.rs:259:20
|
259 | data: *mut pg::ReorderBufferTupleBuf,
| ^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `_bool` in module `pg`
--> src/lib.rs:270:32
|
270 | let mut nulls: Vec<pg::_bool> = Vec::new();
| ^^^^^ not found in `pg`
error[E0425]: cannot find function `heap_deform_tuple` in module `pg`
--> src/lib.rs:273:13
|
273 | pg::heap_deform_tuple(
| ^^^^^^^^^^^^^^^^^ did you mean `heap_lock_tuple`?
error[E0425]: cannot find function `heap_form_tuple` in module `pg`
--> src/lib.rs:301:17
|
301 | pg::heap_form_tuple(desc, datums.as_mut_ptr(), nulls.as_mut_ptr());
| ^^^^^^^^^^^^^^^ did you mean `heap_lock_tuple`?
error[E0425]: cannot find function `heap_copy_tuple_as_datum` in module `pg`
--> src/lib.rs:303:25
|
303 | let datum = pg::heap_copy_tuple_as_datum(new, desc);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `Struct_varlena` in module `pg`
--> src/lib.rs:314:38
|
314 | let ptr = json as *const pg::Struct_varlena;
| ^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `_bool` in module `pg`
--> src/lib.rs:375:24
|
375 | transactional: pg::_bool,
| ^^^^^ not found in `pg`
error[E0412]: cannot find type `_bool` in module `pg`
--> src/lib.rs:440:37
|
440 | let mut is_variable_length: pg::_bool = CFALSE;
| ^^^^^ not found in `pg`
error[E0412]: cannot find type `OutputPluginCallbacks` in module `pg`
--> src/lib.rs:463:18
|
463 | cb: *mut pg::OutputPluginCallbacks,
| ^^^^^^^^^^^^^^^^^^^^^ not found in `pg`
error[E0412]: cannot find type `_bool` in module `pg`
--> src/lib.rs:471:18
|
471 | const CTRUE: pg::_bool = 1;
| ^^^^^ not found in `pg`
error[E0412]: cannot find type `_bool` in module `pg`
--> src/lib.rs:472:19
|
472 | const CFALSE: pg::_bool = 0;
| ^^^^^ not found in `pg`
error: aborting due to 44 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment