Bug 210238

Summary: Error while compiling kdegraphics from SVN
Product: [Unmaintained] kio Reporter: Rajat <rajputrajat>
Component: kameraAssignee: Marcus Meissner <marcus>
Status: RESOLVED FIXED    
Severity: normal CC: null
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rajat 2009-10-11 21:26:15 UTC
Version:           4.3.71 (KDE 4.3.71 (KDE 4.4 >= 20091007)) (using Devel)
Compiler:          g++ 4.4.1 
OS:                Linux
Installed from:    Compiled sources

When I compile kdegraphics, it throws the following error:

----------------------------------------------------------
/home/rajat/kde/trunk/KDE/kdegraphics/kamera/kioslave/kamera.cpp:994: error: ‘va_copy’ was not declared in this scope                                          
/home/rajat/kde/trunk/KDE/kdegraphics/kamera/kioslave/kamera.cpp: In function ‘void frontendCameraStatus(GPContext*, const char*, __va_list_tag*, void*)’:     
/home/rajat/kde/trunk/KDE/kdegraphics/kamera/kioslave/kamera.cpp:1035: error: ‘va_copy’ was not declared in this scope                                         
make[2]: *** [kamera/kioslave/CMakeFiles/kio_kamera.dir/kamera.o] Error 1                                                                                      
make[1]: *** [kamera/kioslave/CMakeFiles/kio_kamera.dir/all] Error 2                                                                                           
make[1]: *** Waiting for unfinished jobs....                                                                                                                   
----------------------------------------------------------

where the contents of config-kamera.h file are

----------------------------------------------------------
/* Define if we have va_copy */
/* #undef HAVE_VA_COPY */

/* Define if we have __va_copy */
#define HAVE___VA_COPY 1
----------------------------------------------------------

The temporary solution for this problem is replace "va_copy" instances with "__va_copy"...
Comment 1 null 2018-08-05 22:41:52 UTC
Since this is about a 9 year old compilation failure, and current distros are shipping recent versions of kamera and libgphoto just fine, I'm going to assume that this has been solved in the meantime.

Feel free to open a new bug against Frameworks if this is still an issue.