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: ...
can you attach svnversion.h file please ? Gilles Caulier
Created attachment 33170 [details] svnversion.h added svnversion.d file.
this is not svnversion.h file from digikam file is located in digikam/digikam folder. Gilles
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.
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
Problem is not reproducible here if i export subversion code (svn export) to create package. For me this file is not valid. Gilles Caulier