lcms2-2.6-1 updated needed to allow for ghostscript-9.15-1 update

Jack Howarth <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CAP5Ds0D1uWwN9qCK_vCudKeymjo68ZH=JbMPwzgoD5OcxTZwaA@mail.gmail.com>
Martin,
     I need lcms2 to be updated to 2.6 in order to allow ghostscript to be
updated to the 9.15 release. Without this update, the newer ghostscript
fails to build at....

gcc -DSHARE_LCMS=1   -O2 -I/sw/include  -Wall -Wstrict-prototypes -Wundef
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings
-Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common
-DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned
long int"  -DUSE_LIBICONV_GNU -DUSE_LIBPAPER -I/sw/include    -I./obj
-I./base -I./devices -I/include  -o ./obj/gsicc_lcms2_1.o -c
./base/gsicc_lcms2.c

*./base/gsicc_lcms2.c:54:39: **warning: **implicit declaration of function
'cmsGetContextUserData' is invalid in C99*

*      [-Wimplicit-function-declaration]*

    gs_memory_t *mem = (gs_memory_t *)cmsGetContextUserData(id);

*                                      ^*

*./base/gsicc_lcms2.c:54:24: **warning: **cast to 'gs_memory_t *' (aka
'struct gs_memory_s *') from smaller integer type 'int'*

*      [-Wint-to-pointer-cast]*

    gs_memory_t *mem = (gs_memory_t *)cmsGetContextUserData(id);

*                       ^*

*./base/gsicc_lcms2.c:54:18: **warning: **unused variable 'mem'
[-Wunused-variable]*

    gs_memory_t *mem = (gs_memory_t *)cmsGetContextUserData(id);

*                 ^*

*./base/gsicc_lcms2.c:71:24: **warning: **cast to 'gs_memory_t *' (aka
'struct gs_memory_s *') from smaller integer type 'int'*

*      [-Wint-to-pointer-cast]*

    gs_memory_t *mem = (gs_memory_t *)cmsGetContextUserData(id);

*                       ^*

*./base/gsicc_lcms2.c:71:18: **warning: **unused variable 'mem'
[-Wunused-variable]*

    gs_memory_t *mem = (gs_memory_t *)cmsGetContextUserData(id);

*                 ^*

*./base/gsicc_lcms2.c:88:24: **warning: **cast to 'gs_memory_t *' (aka
'struct gs_memory_s *') from smaller integer type 'int'*

*      [-Wint-to-pointer-cast]*

    gs_memory_t *mem = (gs_memory_t *)cmsGetContextUserData(id);

*                       ^*

*./base/gsicc_lcms2.c:88:18: **warning: **unused variable 'mem'
[-Wunused-variable]*

    gs_memory_t *mem = (gs_memory_t *)cmsGetContextUserData(id);

*                 ^*

*./base/gsicc_lcms2.c:131:24: **warning: **cast to 'gs_memory_t *' (aka
'struct gs_memory_s *') from smaller integer type 'int'*

*      [-Wint-to-pointer-cast]*

    gs_memory_t *mem = (gs_memory_t *)cmsGetContextUserData(id);

*                       ^*

*./base/gsicc_lcms2.c:154:8: **error: **unknown type name 'cmsPluginMutex';
did you mean 'cmsPluginBase'?*

static cmsPluginMutex gs_cms_mutexhandler =

*       ^~~~~~~~~~~~~~*

       cmsPluginBase

*/sw/include/lcms2_plugin.h:213:3: note: *'cmsPluginBase' declared here

} cmsPluginBase;

*  ^*

*./base/gsicc_lcms2.c:159:9: **error: **use of undeclared identifier
'cmsPluginMutexSig'*

        cmsPluginMutexSig,

*        ^*

*./base/gsicc_lcms2.c:280:5: **warning: **implicit declaration of function
'cmsSetLogErrorHandlerTHR' is invalid in C99*

*      [-Wimplicit-function-declaration]*

    cmsSetLogErrorHandlerTHR(ctx, gscms_error);

*    ^*

*./base/gsicc_lcms2.c:726:11: **warning: **implicit declaration of function
'cmsCreateContext' is invalid in C99*

*      [-Wimplicit-function-declaration]*

    ctx = cmsCreateContext((void *)&gs_cms_memhandler, memory);

*          ^*

*./base/gsicc_lcms2.c:726:9: **warning: **incompatible integer to pointer
conversion assigning to 'cmsContext' (aka 'void *') from 'int'*

*      [-Wint-conversion]*

    ctx = cmsCreateContext((void *)&gs_cms_memhandler, memory);

*        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*

*./base/gsicc_lcms2.c:747:5: **warning: **implicit declaration of function
'cmsDeleteContext' is invalid in C99*

*      [-Wimplicit-function-declaration]*

    cmsDeleteContext(ctx);

*    ^*

12 warnings and 2 errors generated.

make: *** [obj/gsicc_lcms2_1.o] Error 1

I have posted updated lcm2-2.6-1 packaging on fink tracking at...

https://sourceforge.net/p/fink/package-submissions/4433/

along with my intended updated ghostscript-9.15-1 info file.
          Thanks in advance.
                      Jack

------------------------------------------------------------------------------

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.