docker-lambda
docker-lambda copied to clipboard
Undefined reference to `dbanydatecrack' while gem install tiny_tds
Hi!
I'm trying to install the tiny_tds
Gem.
I have the following Dockerfile:
FROM lambci/lambda:build-ruby2.5
RUN yum -y install freetds
RUN yum -y install freetds-devel
freetds
and freetds-devel
seem to install without issues, but if I SSH into the container and run
gem install tiny_tds
it fails when compilling tiny_tds
:
I/opt/local/include -I/opt/local/include/freetds -I/usr/local/include -I/usr/local/include/freetds -O3 -ggdb3 -Wall -Wextra -Wno-unused-par
ameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logic
al-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function
-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format conftest.c -L. -L/
var/lang/lib -Wl,-rpath,/var/lang/lib -L/opt/local/lib -Wl,-rpath,/opt/local/lib -L/opt/local/lib/freetds -Wl,-rpath,/opt/local/lib/freetds -L
/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib/freetds -Wl,-rpath,/usr/local/lib/freetds -L. -fstack-protector -rdynamic -Wl,-expor
t-dynamic -lsybdb -Wl,-rpath,/var/lang/lib -L/var/lang/lib -lruby-static -lsybdb -lsybdb -lpthread -lgmp -ldl -lcrypt -lm -lc"
/tmp/ccYR22mU.o: In function `t':
/var/runtime/gems/tiny_tds-2.1.2/ext/tiny_tds/conftest.c:14: undefined reference to `dbanydatecrack'
collect2: error: ld returned 1 exit status
I would assume that having freetds should suffice, but maybe there's something else I'm missing.
Do you have any ideas for fixing this issue?
Thank you! Rodrigo