title: Error installing mailcatcher: ERROR: Failed to build gem native extension
body: <p>since today, my docker build broke with a mailcatcher error, im on mac-m1, my colleague with linux x86 has the same problem also since today</p>
  <p>the image
  <code>FROM arm64v8/php:7.4.12-fpm</code> or <code>FROM php:7.4.12-fpm</code></p>
  <p>the original build</p>
  <pre><code>=&gt; CACHED [12/58] RUN apt-get install -qy ruby ruby-dev rubygems build-essential libsqlite3-dev
  =&gt; ERROR [13/58] RUN gem install mailcatcher --no-ri --no-rdoc&quot;
  </code></pre>
  <p>the build with &quot;cflag-solution' unfortunately failed, too</p>
  <pre><code>=&gt; CACHED [12/58] RUN apt-get install -qy ruby ruby-dev rubygems build-essential libsqlite3-dev
  =&gt; [13/58] RUN gem install thin
  =&gt; ERROR [14/58] RUN gem install mailcatcher -- --with-cflags=&quot;-Wno-error=implicit-function-declaration&quot;
  </code></pre>
  <p>more detailed log</p>
  <pre><code>RUN gem install mailcatcher -- --with-cflags=&quot;-Wno-error=implicit-function-declaration&quot;:
  #19 1.925 Building native extensions with: '--with-cflags=-Wno-error=implicit-function-declaration'
  #19 1.925 This could take a while...
  #19 14.76 Successfully installed eventmachine-1.0.9.1
  #19 14.76 Successfully installed mini_mime-1.1.2
  #19 14.76 Successfully installed mail-2.7.1
  #19 14.76 Successfully installed rack-1.6.13
  #19 14.76 Successfully installed rack-protection-1.5.5
  #19 14.76 Successfully installed tilt-2.0.10
  #19 14.76 Successfully installed sinatra-1.4.8
  #19 14.76 Building native extensions with: '--with-cflags=-Wno-error=implicit-function-declaration'
  #19 14.76 This could take a while...
  #19 16.25 ERROR:  Error installing mailcatcher:
  #19 16.25   ERROR: Failed to build gem native extension.
  #19 16.25
  #19 16.25     current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.4.3/ext/sqlite3
  #19 16.25 /usr/bin/ruby2.5 -r ./siteconf20220614-8-b43h7c.rb extconf.rb --with-cflags=-Wno-error=implicit-function-declaration
  #19 16.25 checking for sqlite3.h... yes
  #19 16.25 checking for pthread_create() in -lpthread... yes
  #19 16.25 checking for -ldl... yes
  #19 16.25 checking for sqlite3_libversion_number() in -lsqlite3... yes
  #19 16.25 checking for rb_proc_arity()... yes
  #19 16.25 checking for rb_integer_pack()... yes
  #19 16.25 checking for sqlite3_initialize()... yes
  #19 16.25 checking for sqlite3_backup_init()... yes
  #19 16.25 checking for sqlite3_column_database_name()... yes
  #19 16.25 checking for sqlite3_enable_load_extension()... yes
  #19 16.25 checking for sqlite3_load_extension()... yes
  #19 16.25 checking for sqlite3_open_v2()... yes
  #19 16.25 checking for sqlite3_prepare_v2()... yes
  #19 16.25 checking for sqlite3_int64 in sqlite3.h... yes
  #19 16.25 checking for sqlite3_uint64 in sqlite3.h... yes
  #19 16.25 creating Makefile
  #19 16.25
  #19 16.25 current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.4.3/ext/sqlite3
  #19 16.25 make &quot;DESTDIR=&quot; clean
  #19 16.25
  #19 16.25 current directory: /var/lib/gems/2.5.0/gems/sqlite3-1.4.3/ext/sqlite3
  #19 16.25 make &quot;DESTDIR=&quot;
  #19 16.25 compiling aggregator.c
  #19 16.25 compiling backup.c
  #19 16.25 compiling database.c
  #19 16.25 database.c: In function 'rb_sqlite3_disable_quirk_mode':
  #19 16.25 database.c:84:1: error: expected ';' before '}' token
  #19 16.25  }
  #19 16.25  ^
  #19 16.25 database.c: In function 'exec_batch':
  #19 16.25 database.c:748:57: warning: passing argument 3 of 'sqlite3_exec' from incompatible pointer type [-Wincompatible-pointer-types]
  #19 16.25      status = sqlite3_exec(ctx-&gt;db, StringValuePtr(sql), hash_callback_function, callback_ary, &amp;errMsg);
  </code></pre>
  <p>is there an incompatibility, but where did it come from?</p>