port cimg build problem

From: Nilton Jose Rizzo <rizzo_at_i805.com.br>
Date: Wed, 2 Oct 2013 11:29:04 -0300
When I try to install the cimg ports I get this errors



root_at_valfenda:/usr/ports/graphics/cimg # make install clean
===>  Building for cimg-1.5.6_1,3
gmake[1]: Entrando no diretório
`/usr/ports/graphics/cimg/work/CImg-1.5.6/examples'
gmake[2]: Entrando no diretório
`/usr/ports/graphics/cimg/work/CImg-1.5.6/examples'

** Compiling 'CImg_demo (1.5.6)' with 'g++46'

g++46 -o CImg_demo CImg_demo.cpp -I.. -Wall -W -O2 -pipe
-Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing  -fno-tree-pre
-Dcimg_use_vt100 -I/usr/local/include  -Dcimg_use_xrandr -Dcimg_use_tiff
-Dcimg_use_openexr -I//usr/local/include/OpenEXR -Dcimg_use_png
-Dcimg_use_jpeg -Dcimg_use_zlib -Dcimg_use_opencv -I/usr/local/include/opencv
-Dcimg_use_magick -I/usr/local/include/GraphicsMagick -O2 -pipe
-DPNG_DEPSTRUCT= -fno-strict-aliasing -Dcimg_use_lapack -Dcimg_use_fftw3 
-pthread -Wl,-rpath=/usr/local/lib/gcc46 -lm -lm -L/usr/local/lib -lX11  
-lXrandr -ltiff -lIlmImf -lHalf -lpng -lz -ljpeg -lz -lopencv_legacy
-lopencv_highgui -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib
-L/usr/local/lib -lGraphicsMagick++ -lGraphicsMagick -ljbig -llcms -ltiff
-lfreetype -ljasper -ljpeg -lpng -lfpx -lwmflite -lXext -lSM -lICE -lX11 -lbz2
-lxml2 -lz -lm -L/usr/local/lib -llapack -lblas -lfftw3

** Compiling 'captcha (1.5.6)' with 'g++46'

g++46 -o captcha captcha.cpp -I.. -Wall -W -O2 -pipe
-Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing  -fno-tree-pre
-Dcimg_use_vt100 -I/usr/local/include  -Dcimg_use_xrandr -Dcimg_use_tiff
-Dcimg_use_openexr -I//usr/local/include/OpenEXR -Dcimg_use_png
-Dcimg_use_jpeg -Dcimg_use_zlib -Dcimg_use_opencv -I/usr/local/include/opencv
-Dcimg_use_magick -I/usr/local/include/GraphicsMagick -O2 -pipe
-DPNG_DEPSTRUCT= -fno-strict-aliasing -Dcimg_use_lapack -Dcimg_use_fftw3 
-pthread -Wl,-rpath=/usr/local/lib/gcc46 -lm -lm -L/usr/local/lib -lX11  
-lXrandr -ltiff -lIlmImf -lHalf -lpng -lz -ljpeg -lz -lopencv_legacy
-lopencv_highgui -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib
-L/usr/local/lib -lGraphicsMagick++ -lGraphicsMagick -ljbig -llcms -ltiff
-lfreetype -ljasper -ljpeg -lpng -lfpx -lwmflite -lXext -lSM -lICE -lX11 -lbz2
-lxml2 -lz -lm -L/usr/local/lib -llapack -lblas -lfftw3
/tmp//ccda87Cc.o: In function `cimg_library::CImg<unsigned
char>::save_magick(char const*, unsigned int) const':
captcha.cpp:(.text._ZNK12cimg_library4CImgIhE11save_magickEPKcj[cimg_library::CImg<unsigned
char>::save_magick(char const*, unsigned int) const]+0x29b): undefined
reference to `Magick::Image::write(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
gmake[2]: ** [captcha] Erro 1
gmake[2]: *** Esperando que os outros processos terminem....
/tmp//ccFOT8wN.o: In function `cimg_library::CImg<unsigned
char>::save_magick(char const*, unsigned int) const':
CImg_demo.cpp:(.text._ZNK12cimg_library4CImgIhE11save_magickEPKcj[cimg_library::CImg<unsigned
char>::save_magick(char const*, unsigned int) const]+0x27b): undefined
reference to `Magick::Image::write(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
gmake[2]: ** [CImg_demo] Erro 1
gmake[2]: Saindo do diretório `/usr/ports/graphics/cimg/work/CImg-1.5.6/examples'
gmake[1]: ** [Mlinux] Erro 2
gmake[1]: Saindo do diretório `/usr/ports/graphics/cimg/work/CImg-1.5.6/examples'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/cimg
root_at_valfenda:/usr/ports/graphics/cimg # 
Received on Wed Oct 02 2013 - 12:29:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC