Bug 210238 - Error while compiling kdegraphics from SVN
Summary: Error while compiling kdegraphics from SVN
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: kamera (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Marcus Meissner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-11 21:26 UTC by Rajat
Modified: 2018-08-05 22:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.