Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437276 - net-misc/remmina-9999 USE=freerdp - .../work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c:219:41: error: 'WCHAR' undeclared (first use in this function)
Summary: net-misc/remmina-9999 USE=freerdp - .../work/remmina-9999/remmina-plugins/rdp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-10-05 10:04 UTC by mike
Modified: 2012-10-07 00:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike 2012-10-05 10:04:02 UTC
When I do
emerge net-misc/remmina-9999
I get the following error
............
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c: In function 'remmina_rdp_cliprdr_process_data_response':
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c:219:5: warning: implicit declaration of function 'freerdp_UnicodeToAsciiAlloc'
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c:219:41: error: 'WCHAR' undeclared (first use in this function)
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c:219:41: note: each undeclared identifier is reported only once for each function it appears in
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c:219:47: error: expected expression before ')' token
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c: In function 'remmina_rdp_cliprdr_get_clipboard_data':
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c:432:5: warning: implicit declaration of function 'freerdp_AsciiToUnicodeAlloc'
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c:432:42: error: 'CHAR' undeclared (first use in this function)
/var/calculate/tmp/portage/net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c:432:47: error: expected expression before ')' token



Reproducible: Always




with USE=freerdp net-misc/remmina-9999 depends on >=net-misc/freerdp-1.0.1_p20120704
net-misc/freerdp-1.0.1_p20120726 among other things provide the following file
/usr/include/winpr/wtypes.h that provides the required types
Therefore, the following patch solves the problem:

--- net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c_orig      2012-10-05 13:00:10.190966640 +0300
+++ net-misc/remmina-9999/work/remmina-9999/remmina-plugins/rdp/rdp_cliprdr.c   2012-10-05 12:59:54.737564827 +0300
@@ -27,6 +27,7 @@
 #include <freerdp/utils/unicode.h>
 #include <freerdp/channels/channels.h>
 #include <freerdp/plugins/cliprdr.h>
+#include <winpr/wtypes.h>
Comment 1 Mike Gilbert gentoo-dev 2012-10-07 00:01:46 UTC
Please submit your fix upstream; I'm not going to apply a patch in a live ebuild.

I will try to grab another snapshot once I get a working build of freerdp and remmina.

https://github.com/FreeRDP/Remmina
Comment 2 Mike Gilbert gentoo-dev 2012-10-07 00:07:13 UTC
Actually, I guess I should probably change the dependency to be >=net-misc/freerdp-9999.
Comment 3 Mike Gilbert gentoo-dev 2012-10-07 00:35:50 UTC
Ok, should be resolved by the new freerdp snapshot I added.