Problem compiling on Centos 5.4 (`gzopen64')

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
CiaoToOn!

Problem compiling on Centos 5.4 (`gzopen64')

Post by CiaoToOn! »

Hi there!

I need some help installing ImageMagick on my Centos 5.4 x86_64.

My OS info:
Linux xxxxx 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


When compiling the source I always get the following error:

CCLD utilities/animate
magick/.libs/libMagickCore.so: undefined reference to `gzopen64'
magick/.libs/libMagickCore.so: undefined reference to `gzseek64'
magick/.libs/libMagickCore.so: undefined reference to `gztell64'
collect2: ld returned 1 exit status
make[1]: *** [utilities/animate] Error 1
make[1]: Leaving directory `/usr/src/ImageMagick-6.6.4-0'
make: *** [all] Error 2



I already tried the configuration with:
./configure --prefix=/usr/share/ImageMagick
./configure --prefix=/usr/share/ImageMagick LDFLAGS='-L/lib64 -R/lib64'


Both with no luck and the same error.

I had read on this forum that a user had reinstalled the ZLIB, I do have ZLIB installed, but can't figure out what is the problem. I had googled about, but again, with no result. Thought the problem could be that ImageMagick was looking for the libraries at the lib directory, this is why I had used the flags LDFLAGS pointing to the lib64 folder.

Maybe I'm missing something. I don't know that much about linux and would appreciate any help.



This is the brief at the end of ./configure


ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: x86_64-unknown-linux-gnu
Build system type: x86_64-unknown-linux-gnu

Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=yes yes
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=no no

Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
Dejavu fonts --with-dejavu-font-dir=default none
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (8.15.2)
Ghostscript fonts --with-gs-font-dir=default /usr/share/fonts/default/Type1/
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS v1 --with-lcms=yes no
LCMS v2 --with-lcms2=yes no
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

X11 Configuration:
X_CFLAGS =
X_PRE_LIBS = -lSM -lICE
X_LIBS =
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /usr/share/ImageMagick/ImageMagick-6.6.4-0
EXEC-PREFIX = /usr/share/ImageMagick/ImageMagick-6.6.4-0
VERSION = 6.6.4
CC = gcc -std=gnu99 -std=gnu99
CFLAGS = -fopenmp -g -O2 -Wall -pthread
CPPFLAGS = -I/usr/share/ImageMagick/ImageMagick-6.6.4-0/include/ImageMagick
PCFLAGS = -fopenmp
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/lib64 -R/lib64
MAGICK_LDFLAGS = -L/usr/share/ImageMagick/ImageMagick-6.6.4-0/lib -L/lib64 -R/lib64
LIBS = -lMagickCore -lfreetype -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread
CXX = g++
CXXFLAGS = -g -O2 -pthread
FEATURES = OpenMP


Thanks,
CaioToOn!
Post Reply