[DebianGIS-dev] libterralib 3.3.1 conflict with libjpeg8

Guido Vollbeding guido at jpegclub.org
Wed Jan 20 13:29:11 UTC 2010


Hello

libjpeg8 introduces new API functions jpeg_mem_src and jpeg_mem_dest
which conflict with definitions in libterralib.

An application or other library MUST NOT name any of their
functions "jpeg_*".  Only libjpeg should do that.

For a quick fix I suggest to rename the functions in libterralib
to something else, for example "jpeg_mem_src" to "my_jpeg_mem_src"
and "jpeg_mem_dest" by "my_jpeg_mem_dest".
All occurences are located in subdirectory
libterralib-3.3.1.orig/src/terralib/drivers/libjpeg/.
jpeg_mem_src occurs in 3 files:

  jmemsrc.c
  jmemdstsrc.h
  TeLibJpegWrapper.cpp

jpeg_mem_dest occurs in 3 files:

  jmemdst.c
  jmemdstsrc.h
  TeLibJpegWrapper.cpp

For later review I recommend to check whether the new functions
provided by libjpeg can be used instead.
While jpeg_mem_src should be uncritical, jpeg_mem_dest can have
different behaviour.

Regards
Guido Vollbeding
Organizer Independent JPEG Group



More information about the Pkg-grass-devel mailing list