Closed drPavka closed 9 years ago
@drPavka did you manage to find a fix for this? I'm seeing the same error.
remote: /usr/bin/ld: /tmp/build_e4e210166c93225593c1fa67d5a756e7/.apt/usr/lib/x86_64-linux-gnu/libgd.a(gd.o): relocation R_X86_64_PC32 against symbol `gdImageColorClosestAlpha' can not be used when making a shared object; recompile with -fPIC
remote: /usr/bin/ld: final link failed: Bad value
remote: collect2: error: ld returned 1 exit status
remote: rake aborted!
remote: CompilationError: error executing "gcc -shared -fPIC -O3 -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -L. -fstack-protector -rdynamic -Wl,-export-dynamic -I /tmp/build_e4e210166c93225593c1fa67d5a756e7/vendor/ruby-2.2.3/include/ruby-2.2.0 -I /tmp/build_e4e210166c93225593c1fa67d5a756e7/vendor/ruby-2.2.3/include/ruby-2.2.0/x86_64-linux -I /tmp/build_e4e210166c93225593c1fa67d5a756e7/vendor/ruby-2.2.3/include -L/tmp/build_e4e210166c93225593c1fa67d5a756e7/vendor/ruby-2.2.3/lib -o \"/app/.ruby_inline/ruby-2.2.0/Inline_FastImage_bbac2b6030874ea47494fd3952895412.so\" \"/app/.ruby_inline/ruby-2.2.0/Inline_FastImage_bbac2b6030874ea47494fd3952895412.c\" -lgd ": pid 438 exit 1
remote: Renamed /app/.ruby_inline/ruby-2.2.0/Inline_FastImage_bbac2b6030874ea47494fd3952895412.c to /app/.ruby_inline/ruby-2.2.0/Inline_FastImage_bbac2b6030874ea47494fd3952895412.c.bad
No I spend couple of days trying to compile it
and then moved to openshift :)
I actually managed to get a usable version of libgd by installing the libgd3 package instead.
Hmm
thanks I will try
Hi I try to install node-gd https://www.npmjs.com/package/node-gd package It needs libgd library I use heroku-buildpack-multi with heroku-buildpack-apt
cat .buildpacks https://github.com/ddollar/heroku-buildpack-apt https://github.com/heroku/heroku-buildpack-nodejs
cat Aptfile libgd2-xpm-dev
And when deploying I have
_usr/bin/ld: /tmp/build_fa2bb26f8b6349e151cc62491a86b973/.apt/usr/lib/x86_64-linux-gnu/libgd.a(gd.o): relocation R_X86_64PC32 against symbol `gdImageColorClosestAlpha' can not be used when making a shared object; recompile with -fPIC
error May be somebody has any ideas about this?