Re: TclMagick compile errors
Rolf Schroedter <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.core |
|---|---|
| Message-ID | <[email protected]> |
David N. Welton wrote: >Ok, with ample help from Bob, I started to beat the unix configure >scripts into place, so that the compile is starting to be usable. > >However, there are some problems... can you tell me offhand what >categories the various warnings/errors fall under? > >1) "It works for me with IM" > >2) "I don't know, have a look yourself" > >3) "I know about it but haven't gotten to it yet". > >4) other... > >gcc -pipe -DPACKAGE_NAME=\"TclMagick\" -DPACKAGE_TARNAME=\"tclmagick\" >-DPACKAGE_VERSION=\"0.2\" -DPACKAGE_STRING=\"TclMagick\ 0.2\" >-DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 >-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 >-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 >-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D_LARGEFILE64_SOURCE=1 >-DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 >-DHAVE_TYPE_OFF64_T=1 -DWORDS_BIGENDIAN=1 -DHAVE_UNISTD_H=1 >-DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 >-D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_READDIR_R=1 >-DTCL_THREADS=1 -DUSE_TCL_STUBS=1 >-I"/usr/include/tcl8.4/tcl-private/generic" >-I/home/davidw/install/include/GraphicsMagick -O -Wall -Wconversion >-Wno-implicit-int -fPIC -c `echo ./../generic/TclMagick.c` -o >TclMagick.o > >There are tons of these mixed in, but I cut them out for clarity's >sake: ../generic/TclMagick.c:448: warning: passing arg 2 of >`MagickSetResourceLimit' a s unsigned due to prototype > > >../generic/TclMagick.c: In function `magickCmd': >../generic/TclMagick.c:456: warning: implicit declaration of function `MagickGetResourceLimit' >../generic/TclMagick.c: In function `wandObjCmd': >../generic/TclMagick.c:2665: warning: implicit declaration of function `MagickGetImage' > > 1) MagickGetImage() is brand new (last night), it's MagickCloneImage renamed. IMO all other missing declaration are due to GM is a bit behind IM. BTW, there is a new mailing list: [email protected] I posted my compilation results for windows there. >../generic/TclMagick.c:2665: warning: assignment makes pointer from integer without a cast >../generic/TclMagick.c:3102: warning: implicit declaration of function `MagickRemoveImageProfile' >../generic/TclMagick.c:3102: warning: assignment makes pointer from integer without a cast >../generic/TclMagick.c:3137: warning: implicit declaration of function `MagickSetImageProfile' >../generic/TclMagick.c:3288: warning: implicit declaration of function `MagickGetImageResolution' >../generic/TclMagick.c:3884: warning: passing arg 2 of `MagickMatteFloodfillImage' with different width due to prototype >../generic/TclMagick.c:4226: warning: implicit declaration of function `MagickPreviewImages' >../generic/TclMagick.c:4226: warning: assignment makes pointer from integer without a cast >../generic/TclMagick.c:4617: error: too many arguments to function `MagickSetImageOption' >../generic/TclMagick.c:4985: warning: passing arg 3 of `MagickTransparentImage' with different width due to prototype >../generic/TclMagick.c:5131: warning: enumeration value `TM_END_OF_TABLE' nothandled in switch > > This warning should be ignored, TM_END_OF_TABLE is for debugging only (compare the table sizes at runtime). I'll try to force an empty usage in switch(). >../generic/TclMagick.c: In function `pixelObjCmd': >../generic/TclMagick.c:5239: warning: implicit declaration of function `PixelSetBlackQuantum' >../generic/TclMagick.c:5240: warning: passing arg 2 of `PixelSetBlueQuantum' with different width due to prototype >../generic/TclMagick.c:5241: warning: implicit declaration of function `PixelSetCyanQuantum' >../generic/TclMagick.c:5242: warning: passing arg 2 of `PixelSetGreenQuantum' with different width due to prototype >../generic/TclMagick.c:5243: warning: implicit declaration of function `PixelSetMagentaQuantum' >../generic/TclMagick.c:5244: warning: passing arg 2 of `PixelSetOpacityQuantum' with different width due to prototype >../generic/TclMagick.c:5245: warning: passing arg 2 of `PixelSetRedQuantum' with different width due to prototype >../generic/TclMagick.c:5246: warning: implicit declaration of function `PixelSetYellowQuantum' > > 1) Support for CMYK pixels is rather new in IM. >... [more - clipped] ... > >../generic/TclMagick.c:5310: warning: implicit declaration of function `PixelGetYellow' >../generic/TclMagick.c:5395: warning: passing arg 2 of `PixelSetBlueQuantum' with different width due to prototype >../generic/TclMagick.c:5443: warning: passing arg 2 of `PixelSetGreenQuantum' with different width due to prototype >../generic/TclMagick.c:5491: warning: passing arg 2 of `PixelSetOpacityQuantum' with different width due to prototype >../generic/TclMagick.c:5515: warning: passing arg 2 of `PixelSetRedQuantum' with different width due to prototype >../generic/TclMagick.c:5771: warning: enumeration value `TM_END_OF_TABLE' not handled in switch >../generic/TclMagick.c: In function `drawObjCmd': >../generic/TclMagick.c:6079: warning: enumeration value `TM_AFFINE' not handled in switch > > 2) Strange ... >... [lots of these] ... > >../generic/TclMagick.c:7814: warning: enumeration value `TM_END_OF_TABLE' not handled in switch >../generic/TclMagick.c: At top level: >../generic/TclMagick.c:216: warning: `newDrawingObj' defined but not used > > 2) If newDrawingObj is not used, we can remove it and define it later when needed... >make: *** [TclMagick.o] Error 1 > >Thanks, > > -- --------------------------------------------------------------- Rolf Schroedter German Aerospace Center Institute of Space Sensor Technology and Planetary Exploration D-12489 Berlin, Rutherfordstrasse 2 Tel/Fax: (+49) (30) 67055-416/384 Email: [email protected] ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html