Page 1 of 1
Install Error 1 & 2
Posted: 2008-12-28T07:30:27-07:00
by PeterJ
I'm getting some error installing on a RedHat Linux server:
magick/log.c: In function `GetLogThreadId':
magick/log.c:751: `__NR_gettid' undeclared (first use in this function)
magick/log.c:751: (Each undeclared identifier is reported only once
magick/log.c:751: for each function it appears in.)
make[1]: *** [magick/magick_libMagickCore_la-log.lo] Error 1
make[1]: Leaving directory `/usr/local/src/ImageMagick-6.4.8-2'
make: *** [all] Error 2
Any ideas how to proceed please?
Re: Install Error 1 & 2
Posted: 2008-12-28T09:48:01-07:00
by magick
Append
to the line just above the return() to fix the problem you reported.
Re: Install Error 1 & 2
Posted: 2008-12-28T11:27:12-07:00
by PeterJ
Hey thanks,
code added as required on line 750 in log.c and now these error are present:
In file included from /usr/local/include/zlib.h:34,
from coders/png.c:81:
/usr/local/include/zconf.h:261: warning: redefinition of `Byte'
/usr/include/zconf.h:214: warning: `Byte' previously declared here
/usr/local/include/zconf.h:263: warning: redefinition of `uInt'
/usr/include/zconf.h:216: warning: `uInt' previously declared here
/usr/local/include/zconf.h:264: warning: redefinition of `uLong'
/usr/include/zconf.h:217: warning: `uLong' previously declared here
/usr/local/include/zconf.h:270: warning: redefinition of `Bytef'
/usr/include/zconf.h:223: warning: `Bytef' previously declared here
/usr/local/include/zconf.h:272: warning: redefinition of `charf'
/usr/include/zconf.h:225: warning: `charf' previously declared here
/usr/local/include/zconf.h:273: warning: redefinition of `intf'
/usr/include/zconf.h:226: warning: `intf' previously declared here
/usr/local/include/zconf.h:274: warning: redefinition of `uIntf'
/usr/include/zconf.h:227: warning: `uIntf' previously declared here
/usr/local/include/zconf.h:275: warning: redefinition of `uLongf'
/usr/include/zconf.h:228: warning: `uLongf' previously declared here
/usr/local/include/zconf.h:279: warning: redefinition of `voidpf'
/usr/include/zconf.h:231: warning: `voidpf' previously declared here
/usr/local/include/zconf.h:280: warning: redefinition of `voidp'
/usr/include/zconf.h:232: warning: `voidp' previously declared here
In file included from coders/png.c:81:
/usr/local/include/zlib.h:77: warning: redefinition of `alloc_func'
/usr/include/zlib.h:63: warning: `alloc_func' previously declared here
/usr/local/include/zlib.h:78: warning: redefinition of `free_func'
/usr/include/zlib.h:64: warning: `free_func' previously declared here
/usr/local/include/zlib.h:82: redefinition of `struct z_stream_s'
/usr/local/include/zlib.h:101: warning: redefinition of `z_stream'
/usr/include/zlib.h:87: warning: `z_stream' previously declared here
/usr/local/include/zlib.h:103: warning: redefinition of `z_streamp'
/usr/include/zlib.h:89: warning: `z_streamp' previously declared here
/usr/local/include/zlib.h:1066: warning: redefinition of `gzFile'
/usr/include/zlib.h:657: warning: `gzFile' previously declared here
/usr/local/include/zlib.h:1114: conflicting types for `gzwrite'
/usr/include/zlib.h:704: previous declaration of `gzwrite'
/usr/local/include/zlib.h:1183: conflicting types for `gzseek'
/usr/include/zlib.h:757: previous declaration of `gzseek'
/usr/local/include/zlib.h:1208: conflicting types for `gztell'
/usr/include/zlib.h:782: previous declaration of `gztell'
/usr/local/include/zlib.h:1346: redefinition of `struct internal_state'
coders/png.c: In function `ReadOnePNGImage':
coders/png.c:1623: warning: variable `image' might be clobbered by `longjmp' or `vfork'
coders/png.c:1635: warning: variable `transparent_color' might be clobbered by `longjmp' or `vfork'
coders/png.c:1651: warning: variable `png_pixels' might be clobbered by `longjmp' or `vfork'
coders/png.c: In function `WriteOnePNGImage':
coders/png.c:6197: warning: variable `png_pixels' might be clobbered by `longjmp' or `vfork'
coders/png.c:6150: warning: argument `image' might be clobbered by `longjmp' or `vfork'
make[1]: *** [coders/coders_png_la-png.lo] Error 1
make[1]: Leaving directory `/usr/local/src/ImageMagick-6.4.8-2'
make: *** [all] Error 2
Re: Install Error 1 & 2
Posted: 2008-12-28T11:59:58-07:00
by magick
Looks like you have two versions of the zlib headers installed which are incompatible:
- /usr/local/include/zconf.h:261: warning: redefinition of `Byte'
/usr/include/zconf.h:214: warning: `Byte' previously declared here
You may need to uninstall the version in /usr/local/lib for ImageMagick to build.
Re: Install Error 1 & 2
Posted: 2008-12-29T03:12:24-07:00
by PeterJ
Done and fixed.
Thank you, magick.