Bug 190719 - compiling digikam-0.10.0 on gentoo fails
Summary: compiling digikam-0.10.0 on gentoo fails
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 0.10.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 16:13 UTC by patrick
Modified: 2017-08-19 20:58 UTC (History)
0 users

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


Attachments
svnversion.h (6.68 KB, application/octet-stream)
2009-04-27 22:31 UTC, patrick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description patrick 2009-04-26 16:13:54 UTC
Version:           0.10.0 (using KDE 4.2.2)
Compiler:          gcc-4.33 
OS:                Linux
Installed from:    Gentoo Packages

I'm not able to install(emerge) digikam on gentoo. Compiling fails always on certain point (details below).

I have following installed:
gcc-4.3.3
cmake-2.6.3-r1
qt-4.4.2

compiling details:

imagepreviewview.moc
In file included from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:37,
                 from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp:58:
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/svnversion.h:1:20: warning: missing terminating " character
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/svnversion.h:4:9: warning: missing terminating " character
In file included from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:38,
                 from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp:59:
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/svnversion.h:2: error: stray '@' in program
In file included from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:38,
                 from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp:59:
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/svnversion.h:4:9: warning: missing terminating " character
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/svnversion.h:4: error: missing terminating " character
In file included from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp:59:
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:45:90: warning: missing terminating " character
In file included from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp:59:
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:45: error: missing terminating " character
In file included from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:38,
                 from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp:59:
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/svnversion.h:2: error: function definition does not declare parameters
In file included from /var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp:59:
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h: In function 'const QString digiKamVersion()':
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:45: error: expected primary-expression before '(' token
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:45: error: expected `)' before ':' token
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:49: error: 'digiKamVer' was not declared in this scope
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:51: error: 'digiKamVer' was not declared in this scope
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp: In member function 'virtual bool Digikam::PNGLoader::load(const QString&, Digikam::DImgLoaderObserver*)':
/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam-0.10.0/libs/dimg/loaders/pngloader.cpp:104: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
make[2]: *** [digikam/CMakeFiles/digikamcore.dir/__/libs/dimg/loaders/pngloader.o] Error 1
make[1]: *** [digikam/CMakeFiles/digikamcore.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Generating monthwidget.moc
Generating setupicc.moc
Generating comboboxutilities.moc
Generating albumiconviewfilter.moc
Generating batchalbumssyncmetadata.moc
Generating camerafolderview.moc
Generating batchthumbsgenerator.moc
Generating cameraselection.moc
Generating camerafolderdialog.moc
Generating setuptooltip.moc
Generating albumsettings.moc
Generating setupplugins.moc
Generating timelinewidget.moc
Generating setupslideshow.moc
Generating setupcamera.moc
Generating tagfolderview.moc
Generating gpssearchfolderview.moc
Generating albumwidgetstack.moc
Generating fingerprintsgenerator.moc
Generating imageinfoalbumsjob.moc
Generating kipiinterface.moc
Generating gpssearchview.moc
Generating tagspopupmenu.moc
Generating imageinfojob.moc
Generating albumpropsedit.moc
Generating syncjob.moc
Generating themediconview.moc
Generating albumlister.moc
Generating cameraui.moc
Generating tageditdlg.moc
Generating scancontroller.moc
Generating mainwindow.moc
Generating mediaplayerview.moc
Generating kdatetimeedit.moc
Generating moc_iconitem.cpp
Generating moc_gpssearchwidget.cpp
Generating moc_sketchwidget.cpp
[  2%] Built target digikamthemedesigner_automoc
make: *** [all] Error 2
 * 
 * ERROR: media-gfx/digikam-0.10.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3084:  Called kde4-base_src_compile
 *             environment, line 2292:  Called cmake-utils_src_compile
 *             environment, line  774:  Called cmake-utils_src_make
 *             environment, line  853:  Called die
 * The specific snippet of code:
...
Comment 1 caulier.gilles 2009-04-26 16:56:27 UTC
can you attach svnversion.h file please ?

Gilles Caulier
Comment 2 patrick 2009-04-27 22:31:23 UTC
Created attachment 33170 [details]
svnversion.h

added svnversion.d file.
Comment 3 caulier.gilles 2009-04-27 23:01:13 UTC
this is not svnversion.h file from digikam

file is located in digikam/digikam folder.

Gilles
Comment 4 patrick 2009-04-28 08:34:31 UTC
Ups! I didn't found any svnversion.h file in the digikam folder. So i did Desktop search and just copied the one I found. I was not thinking what I was doing! Sorry. So this is strange.
Comment 5 caulier.gilles 2009-04-28 08:39:17 UTC
This file is generated at compilation time by CMake. Look, it's here :

/var/tmp/portage/media-gfx/digikam-0.10.0/work/digikam_build/digikam/version.h:45:90:
warning: missing terminating " character

... And something is badly filed into this file by CMake. This is why it doesn't compile.

Gilles Caulier
Comment 6 caulier.gilles 2009-06-19 11:15:57 UTC
Problem is not reproducible here if i export subversion code (svn export) to create package.

For me this file is not valid.

Gilles Caulier