-
Enhancement
-
Resolution: Done
-
Major
-
0.9.0.Alpha2
-
None
I'm trying to build Postgres Docker image with this:
Unable to find source-code formatter for language: dockerful. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
FROM postgres:11.0 ARG USE_POSTGIS=true # Debezium plugin start ENV PLUGIN_VERSION=v0.9.0.Alpha2 ENV WAL2JSON_COMMIT_ID=d2b7fef021c46e0d429f2c1768de361069e58696 RUN apt-get update \ && apt-get install -f -y --no-install-recommends \ software-properties-common \ build-essential \ git \ pkg-config \ postgresql-server-dev-11 \ libproj-dev \ && add-apt-repository "deb http://ftp.debian.org/debian stretch-backports main" \ && apt-get update \ && if [ "$USE_POSTGIS" != "false" ]; then apt-get install -t stretch-backports -f -y --no-install-recommends \ postgresql-11-postgis-2.5 \ postgresql-11-postgis-2.5-scripts \ postgis; \ fi RUN apt-get install -t stretch-backports -f -y --no-install-recommends \ liblwgeom-dev \ liblwgeom-2.5-0 libgeos-3.5.1 \ libprotobuf-c1 \ libprotobuf-c-dev=1.2.* RUN git clone https://github.com/debezium/postgres-decoderbufs -b $PLUGIN_VERSION --single-branch \ && cd /postgres-decoderbufs \ && make && make install
The error I get is
Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -std=c11 -I/usr/local/include -DUSE_POSTGIS -I. -I./ -I/usr/include/postgresql/11/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/mit-krb5 -c -o src/decoderbufs.o src/decoderbufs.c src/decoderbufs.c: In function ‘set_datum_value’: src/decoderbufs.c:338:11: warning: unused variable ‘num’ [-Wunused-variable] Numeric num; ^~~ src/decoderbufs.c: In function ‘valid_attributes_count_from’: src/decoderbufs.c:481:32: error: incompatible types when initializing type ‘Form_pg_attribute {aka struct FormData_pg_attribute *}’ using type ‘FormData_pg_attribute {aka struct FormData_pg_attribute}’ Form_pg_attribute attr = tupdesc->attrs[natt]; ^~~~~~~ src/decoderbufs.c: In function ‘tuple_to_tuple_msg’: src/decoderbufs.c:509:10: error: incompatible types when assigning to type ‘Form_pg_attribute {aka struct FormData_pg_attribute *}’ from type ‘FormData_pg_attribute {aka struct FormData_pg_attribute}’ attr = tupdesc->attrs[natt]; ^ src/decoderbufs.c: In function ‘add_metadata_to_msg’: src/decoderbufs.c:567:10: error: incompatible types when assigning to type ‘Form_pg_attribute {aka struct FormData_pg_attribute *}’ from type ‘FormData_pg_attribute {aka struct FormData_pg_attribute}’ attr = tupdesc->attrs[natt]; ^ At top level: src/decoderbufs.c:279:15: warning: ‘numeric_to_double_no_overflow’ defined but not used [-Wunused-function] static double numeric_to_double_no_overflow(Numeric num) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <builtin>: recipe for target 'src/decoderbufs.o' failed make: *** [src/decoderbufs.o] Error 1