Skip to content

Instantly share code, notes, and snippets.

@copiousfreetime
Created July 3, 2025 22:59
Show Gist options
  • Save copiousfreetime/1f521b7727eb0abdd1a9a67861734970 to your computer and use it in GitHub Desktop.
Save copiousfreetime/1f521b7727eb0abdd1a9a67861734970 to your computer and use it in GitHub Desktop.
sqlite3-ruby 2.6.0 build from source errors
pkg_config: checking for pkg-config for /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/pkgconfig/sqlite3.pc... -------------------- ["-I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include ", "", "-lsqlite3"]
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 pkg-config --exists /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/pkgconfig/sqlite3.pc
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 pkg-config --libs /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/pkgconfig/sqlite3.pc |
=> "-lsqlite3 \n"
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lm -lpthread -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lm -lpthread -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 pkg-config --cflags-only-I /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/pkgconfig/sqlite3.pc |
=> "-I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include \n"
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 pkg-config --cflags-only-other /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/pkgconfig/sqlite3.pc |
=> "\n"
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 pkg-config --libs-only-l /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/pkgconfig/sqlite3.pc |
=> "-lsqlite3 \n"
package configuration for /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/pkgconfig/sqlite3.pc
incflags: -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include
cflags:
ldflags:
libs: -lsqlite3
--------------------
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 pkg-config --libs --static /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/pkgconfig/sqlite3.pc |
append_ldflags: checking for whether -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib is accepted as LDFLAGS... -------------------- yes
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lm -lpthread -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
--------------------
append_ldflags: checking for whether -lsqlite3 is accepted as LDFLAGS... -------------------- yes
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib -lsqlite3 -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lm -lpthread -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
--------------------
append_ldflags: checking for whether -lm is accepted as LDFLAGS... -------------------- yes
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib -lsqlite3 -lm -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lm -lpthread -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
--------------------
append_ldflags: checking for whether -lz is accepted as LDFLAGS... -------------------- yes
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib -lsqlite3 -lm -lz -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lm -lpthread -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
--------------------
append_cppflags: checking for whether -DUSING_PACKAGED_LIBRARIES is accepted as CPPFLAGS... -------------------- yes
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -DUSING_PACKAGED_LIBRARIES -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
--------------------
append_cflags: checking for whether -fvisibility=hidden is accepted as CFLAGS... -------------------- yes
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -DUSING_PACKAGED_LIBRARIES -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -fvisibility=hidden -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
--------------------
find_header: checking for sqlite3.h... -------------------- yes
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -DUSING_PACKAGED_LIBRARIES -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -fvisibility=hidden -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sqlite3.h>
/* end */
--------------------
find_library: checking for sqlite3_libversion_number() in -lsqlite3... -------------------- no
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -DUSING_PACKAGED_LIBRARIES -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -fvisibility=hidden conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib -lsqlite3 -lm -lz -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lsqlite3 -lsqlite3 -lm -lpthread -lc"
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘sqlite3_libversion_number’ undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))sqlite3_libversion_number; return !p; }
^~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:14:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: int (* volatile tp)(void)=(int (*)(void))&t;
9: printf("%d", (*tp)());
10: }
11:
12: return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))sqlite3_libversion_number; return !p; }
/* end */
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -DUSING_PACKAGED_LIBRARIES -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -fvisibility=hidden conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib -lsqlite3 -lm -lz -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lsqlite3 -lsqlite3 -lm -lpthread -lc"
/usr/bin/ld: /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/libsqlite3.a(sqlite3.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
//usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: int (* volatile tp)(void)=(int (*)(void))&t;
9: printf("%d", (*tp)());
10: }
11:
12: return !!argv[argc];
13: }
14: extern void sqlite3_libversion_number();
15: int t(void) { sqlite3_libversion_number(); return 0; }
/* end */
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -DUSING_PACKAGED_LIBRARIES -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -fvisibility=hidden conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -Lsqlite3.h -Wl,-rpath,sqlite3.h -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib -lsqlite3 -lm -lz -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lsqlite3 -lsqlite3 -lm -lpthread -lc"
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘sqlite3_libversion_number’ undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))sqlite3_libversion_number; return !p; }
^~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:14:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: int (* volatile tp)(void)=(int (*)(void))&t;
9: printf("%d", (*tp)());
10: }
11:
12: return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))sqlite3_libversion_number; return !p; }
/* end */
LD_LIBRARY_PATH=.:/home/vagrant/.rbenv/versions/3.4.4/lib ASAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/x86_64-linux -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0/ruby/backward -I/home/vagrant/.rbenv/versions/3.4.4/include/ruby-3.4.0 -I. -I/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/include -DUSING_PACKAGED_LIBRARIES -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -fvisibility=hidden conftest.c -L. -L/home/vagrant/.rbenv/versions/3.4.4/lib -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -Lsqlite3.h -Wl,-rpath,sqlite3.h -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib -lsqlite3 -lm -lz -lsqlite3 -Wl,-rpath,/home/vagrant/.rbenv/versions/3.4.4/lib -L/home/vagrant/.rbenv/versions/3.4.4/lib -lruby -lsqlite3 -lsqlite3 -lm -lpthread -lc"
/usr/bin/ld: /home/vagrant/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.6.0/ports/x86_64-redhat-linux/sqlite3/3.49.1/lib/libsqlite3.a(sqlite3.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
//usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: int (* volatile tp)(void)=(int (*)(void))&t;
9: printf("%d", (*tp)());
10: }
11:
12: return !!argv[argc];
13: }
14: extern void sqlite3_libversion_number();
15: int t(void) { sqlite3_libversion_number(); return 0; }
/* end */
--------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment