Am trying to install latest stable version of IM on a Synology NAS device with linux-based system, "make" fails, here is the last bit of it:
CCLD utilities/animate
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `log'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sqrt'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `cosh'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `ceil'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `logf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `floor'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sqrtf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `cosf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `fmod'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `cos'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `tanh'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sin'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `atan2'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `pow'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sinh'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `log10'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `exp'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `tan'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `atan'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `asin'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sinf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `ceilf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `expf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `floorf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `acos'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `hypot'
collect2: ld returned 1 exit status
make[2]: *** [utilities/animate] Error 1
make[2]: Leaving directory `/volume1/web/ImageMagick-6.8.5-3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/volume1/web/ImageMagick-6.8.5-3'
make: *** [all] Error 2
Any help greatly appreciated
Jeremi
Make fails on linux-based NAS device
Re: Make fails on linux-based NAS device
Add -lm to your command line to link the math library. Not sure why its not doing that automatically. It works for us for CentOS, Fedora, Redhat Linux, MacOS X, Cygwin, etc..
Re: Make fails on linux-based NAS device
Thanks for the prompt reply
have tried
make -lm
still i get
I am trying to get it installed on a Synology NAS device, it has it's own proprietary linux-based os.
Thanks for the help
have tried
make -lm
still i get
Code: Select all
make all-recursive
make[1]: Entering directory `/volume1/web/ImageMagick-6.8.5-3'
Making all in .
make[2]: Entering directory `/volume1/web/ImageMagick-6.8.5-3'
CCLD utilities/animate
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `log'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sqrt'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `cosh'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `ceil'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `logf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `floor'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sqrtf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `cosf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `fmod'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `cos'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `tanh'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sin'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `atan2'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `pow'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sinh'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `log10'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `exp'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `tan'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `atan'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `asin'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `sinf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `ceilf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `expf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `floorf'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `acos'
magick/.libs/libMagickCore-6.Q16.so: undefined reference to `hypot'
collect2: ld returned 1 exit status
make[2]: *** [utilities/animate] Error 1
make[2]: Leaving directory `/volume1/web/ImageMagick-6.8.5-3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/volume1/web/ImageMagick-6.8.5-3'
make: *** [all] Error 2
I am trying to get it installed on a Synology NAS device, it has it's own proprietary linux-based os.
Thanks for the help
Re: Make fails on linux-based NAS device
You need to edit Makefile and add it there. Is it already associated with MATH_LIBS? How 'bout MAGICK_DEP_LIBS? -lm means add the math library to the linker command. The unresolved methods you posted are all in the system math library.
Re: Make fails on linux-based NAS device
My apologies, i'm really new to all this,
I've added
-lm
to both
MATH_LIBS = (which was empty)
and to
MAGICK_DEP_LIBS=
which already had
-ljpeg -lbz2 and -lz
then tried "make" again with no success, same response. Would it be possible that i'm missing some libraries, since i'm using this Synology proprietary linux distro?
Thanks again
I've added
-lm
to both
MATH_LIBS = (which was empty)
and to
MAGICK_DEP_LIBS=
which already had
-ljpeg -lbz2 and -lz
then tried "make" again with no success, same response. Would it be possible that i'm missing some libraries, since i'm using this Synology proprietary linux distro?
Thanks again
Re: Make fails on linux-based NAS device
Try 'make clean' followed by 'make'. If that fails, we can't help. We do not have access to your Linux OS to determine why its failing to build.
Re: Make fails on linux-based NAS device
Actually now it's a different kind of fail... it seems
If it's still nothing you can help with no prob, thanks anyways, i'll try elsewhere
Jeremi
Code: Select all
CCLD utilities/animate
/opt/lib/gcc/powerpc-linux-gnuspe/3.4.6/../../../../powerpc-linux-gnuspe/lib/libm.so: undefined reference to `__adddf3@GLIBC_2.3.3'
/opt/lib/gcc/powerpc-linux-gnuspe/3.4.6/../../../../powerpc-linux-gnuspe/lib/libm.so: undefined reference to `__muldf3@GLIBC_2.3.3'
/opt/lib/gcc/powerpc-linux-gnuspe/3.4.6/../../../../powerpc-linux-gnuspe/lib/libm.so: undefined reference to `__fixunsdfsi@GLIBC_2.3.3'
/opt/lib/gcc/powerpc-linux-gnuspe/3.4.6/../../../../powerpc-linux-gnuspe/lib/libm.so: undefined reference to `__floatsidf@GLIBC_2.3.3'
/opt/lib/gcc/powerpc-linux-gnuspe/3.4.6/../../../../powerpc-linux-gnuspe/lib/libm.so: undefined reference to `__extendsfdf2@GLIBC_2.3.3'
/opt/lib/gcc/powerpc-linux-gnuspe/3.4.6/../../../../powerpc-linux-gnuspe/lib/libm.so: undefined reference to `__subdf3@GLIBC_2.3.3'
collect2: ld returned 1 exit status
make[2]: *** [utilities/animate] Error 1
make[2]: Leaving directory `/volume1/web/ImageMagick-6.8.5-3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/volume1/web/ImageMagick-6.8.5-3'
make: *** [all] Error 2
Jeremi