Bug 273716 - transupp.cpp failing at make (2.0.0 Beta 5 under Fedora 14)
Summary: transupp.cpp failing at make (2.0.0 Beta 5 under Fedora 14)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 2.0.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 12:10 UTC by christian
Modified: 2017-08-19 21:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christian 2011-05-20 12:10:13 UTC
Version:           2.0.0 (using KDE 4.6.3) 
OS:                Linux

To aviod any disturbance between the different digikam releases and its dependencies, I have chosen to fully re-install my PC. I'm having a full brand new Fedora 14 installed.

Digikam release is 2.0.0 Beta 5 downloaded from http://sourceforge.net/projects/digikam/files/digikam/2.0.0-beta5/digikam-2.0.0-beta5.tar.bz2/download.


make stops during digikam building at transupp.cpp with the following errors.
I used gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC).



Reproducible: Always

Steps to Reproduce:
relaunch make

Actual Results:  
[ 43%] Building CXX object core/digikam/CMakeFiles/digikamcore.dir/__/libs/jpegutils/libjpeg-80/transupp.cpp.o
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘void Digikam::do_flip_h_no_crop(jpeg_decompress_struct*, jpeg_compress_struct*, JDIMENSION, jvirt_barray_control**)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:151:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘void Digikam::do_flip_h(jpeg_decompress_struct*, jpeg_compress_struct*, JDIMENSION, JDIMENSION, jvirt_barray_control**, jvirt_barray_control**)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:217:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘void Digikam::do_flip_v(jpeg_decompress_struct*, jpeg_compress_struct*, JDIMENSION, JDIMENSION, jvirt_barray_control**, jvirt_barray_control**)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:282:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘void Digikam::do_rot_90(jpeg_decompress_struct*, jpeg_compress_struct*, JDIMENSION, JDIMENSION, jvirt_barray_control**, jvirt_barray_control**)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:410:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘void Digikam::do_rot_270(jpeg_decompress_struct*, jpeg_compress_struct*, JDIMENSION, JDIMENSION, jvirt_barray_control**, jvirt_barray_control**)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:491:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘void Digikam::do_rot_180(jpeg_decompress_struct*, jpeg_compress_struct*, JDIMENSION, JDIMENSION, jvirt_barray_control**, jvirt_barray_control**)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:559:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:561:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘void Digikam::do_transverse(jpeg_decompress_struct*, jpeg_compress_struct*, JDIMENSION, JDIMENSION, jvirt_barray_control**, jvirt_barray_control**)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:670:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:672:44: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘boolean Digikam::jtransform_request_workspace(jpeg_decompress_struct*, Digikam::jpeg_transform_info*)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:906:38: error: ‘jpeg_core_output_dimensions’ was not declared in this scope
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:914:13: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:915:13: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:921:42: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:922:42: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:941:42: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:942:43: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:945:40: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:947:40: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:954:42: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:955:43: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:958:40: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:960:40: error: ‘struct jpeg_decompress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘void Digikam::transpose_critical_parameters(jpeg_compress_struct*)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1127:20: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1128:12: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_h_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1128:45: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1129:12: error: ‘struct jpeg_compress_struct’ has no member named ‘min_DCT_v_scaled_size’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp: In function ‘jvirt_barray_control** Digikam::jtransform_adjust_parameters(jpeg_decompress_struct*, jpeg_compress_struct*, jvirt_barray_control**, Digikam::jpeg_transform_info*)’:
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1365:12: error: ‘struct jpeg_compress_struct’ has no member named ‘jpeg_width’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1366:12: error: ‘struct jpeg_compress_struct’ has no member named ‘jpeg_height’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1393:18: error: ‘struct jpeg_compress_struct’ has no member named ‘jpeg_width’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1394:11: error: ‘struct jpeg_compress_struct’ has no member named ‘jpeg_height’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1398:11: error: ‘struct jpeg_compress_struct’ has no member named ‘jpeg_width’
/home/invit/Documents/Technique/.Compilations/digikam-2.0.0-beta5/core/libs/jpegutils/libjpeg-80/transupp.cpp:1398:32: error: ‘struct jpeg_compress_struct’ has no member named ‘jpeg_height’
make[2]: *** [core/digikam/CMakeFiles/digikamcore.dir/__/libs/jpegutils/libjpeg-80/transupp.cpp.o] Error 1
make[1]: *** [core/digikam/CMakeFiles/digikamcore.dir/all] Error 2


Expected Results:  
transupp.cpp  compiled

I had some warnings during CMake:
Multiple:
  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.


And:
-- Identified libjpeg version: /*
 * jpeglib.h
 *
 * Copyright (C) 1991-1998, Thomas G. Lane.
 * Modified 2002-2009 by Guido Vollbeding.
 * Copyright (C) 2009-2010, D. R. Commander.
 * This file is part of the Independent JPEG Group's software.
 * For conditions of distribution and use, see the accompanying README file.
 *
 * This file defines the application interface for the JPEG library.
 * Most applications using the library need only include this file,
 * and perhaps jerror.h if they want to know the exact error codes.
 */
#ifndef JCONFIG_INCLUDED        /* in case jinclude.h already did */
#include "jconfig.h"            /* widely used configuration options */
#endif
#include "jmorecfg.h"           /* seldom changed options */


#ifdef __cplusplus
#ifndef DONT_USE_EXTERN_C
extern "C" {
#endif
#endif

(...)
Comment 1 caulier.gilles 2011-05-20 13:57:03 UTC
Do you have JPEGTurbo library installed on your computer ? If yes, only current code from git master support it (next beta6)

Gilles Caulier
Comment 2 christian 2011-05-20 14:34:09 UTC
"yum remove libjpeg-turbo" ask me to suppress 331 packages.    It seems that Fedora 14 is deeply linked with libjpeg-turbo.

Is there a way to avoid the turbo library to be used ?

Shall I download the GIT release and have 2 turbos libraries ?
Comment 3 caulier.gilles 2011-05-20 14:38:41 UTC
Download digiKam from git master and look if it compile fine with your JPEGTurbo. Use this repository :

https://projects.kde.org/projects/extragear/graphics/digikam/digikam-software-compilation

Gilles Caulier
Comment 4 christian 2011-05-21 00:07:37 UTC
I have followed the instructions written here:

http://www.digikam.org/drupal/download?q=download/GIT

and its works fine. Digikam has been fully built.

Merci !

PS: Encore merci pour tout ce travail effectué sur cet outil indispensable.