FreeRDP / FreeRDP-WebConnect

A gateway for seamless access to your RDP-Sessions in any HTML5-compliant browser
520 stars 1.61k forks source link

Complie wsgate error #44

Open willcancode opened 10 years ago

willcancode commented 10 years ago

Hi everyone,

I've got a compilation issue with the lastest master version

/usr/local/include/winpr/crt.h:35:22: error: ‘rold’ declared as an ‘inline’ variable static INLINE UINT32 _rotl(UINT32 value, int shift) { ^ /usr/local/include/winpr/crt.h:35:22: error: ‘UINT32 __rold’ redeclared as different kind of symbol /usr/lib/gcc/x86_64-linux-gnu/4.8/include/ia32intrin.h:127:1: error: previous declaration of ‘unsigned int rold(unsigned int, int)’ rold (unsigned int X, int __C) ^ /usr/local/include/winpr/crt.h:35:22: error: expected primary-expression before ‘value’ static INLINE UINT32 _rotl(UINT32 value, int shift) { ^ /usr/local/include/winpr/crt.h:35:22: error: expected ‘)’ before ‘value’ In file included from /usr/local/include/winpr/collections.h:30:0, from /usr/local/include/freerdp/types.h:65, from /usr/local/include/freerdp/freerdp.h:40, from /usr/local/include/freerdp/input.h:26, from rdpcommon.hpp:28, from RDP.hpp:29, from myrawsocket.hpp:23, from wsgate_main.cpp:81: /usr/local/include/winpr/crt.h:121:11: error: ‘errno_t’ does not name a type WINPR_API errno_t _itoa_s(int value, char* buffer, size_t sizeInCharacters, int radix); ^ /usr/local/include/winpr/crt.h:125:11: error: ‘errno_t’ does not name a type WINPR_API errno_t memmove_s(void* dest, size_t numberOfElements, const void* src, size_t count); ^ /usr/local/include/winpr/crt.h:126:11: error: ‘errno_t’ does not name a type WINPR_API errno_t wmemmove_s(WCHAR* dest, size_t numberOfElements, const WCHAR* src, size_t count); ^ wsgatemain.cpp: In function ‘int main(int, char*)’: wsgatemain.cpp:1691:41: warning: ignoring return value of ‘int chdir(const char)’, declared with attribute warn_unused_result -Wunused-resultchdir("/"); ^ make[2]: * [wsgate-wsgate_main.o] Error 1 make[2]: Leaving directory `/home/admin/FreeRDP-WebConnect/wsgate' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/home/admin/FreeRDP-WebConnect/wsgate' make: *\ [all] Error 2

Hope you guide can fix this

alexpilotti commented 10 years ago

Hi @justinpham, we're looking at it, hopefully we'll have a fix by today. Being a FreeRDP compilation issue we might have to move the issue there. I'll post an update ASAP.

Arkantos7 commented 10 years ago

Hi @alexpilotti I got a similar error as @justinpham. This is the freerdp-webconnect master

In file included from wsgate_main.cpp:75:0: btexception.hpp:176:3: warning: #warning Neither libbfd nor libdwarf are available, so no backtracing enabled [-Wcpp]

warning Neither libbfd nor libdwarf are available, so no backtracing enabled

^ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/x86intrin.h:27:0, from /usr/include/x86_64-linux-gnu/c++/4.8/bits/opt_random.h:33, from /usr/include/c++/4.8/random:51, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from /usr/include/c++/4.8/ext/slist:47, from /usr/include/boost/algorithm/string/std/slist_traits.hpp:16, from /usr/include/boost/algorithm/string/std_containers_traits.hpp:23, from /usr/include/boost/algorithm/string.hpp:18, from wsgate_main.cpp:38: /usr/local/include/winpr/crt.h:35:22: error: ‘rold’ declared as an ‘inline’ variable static INLINE UINT32 _rotl(UINT32 value, int shift) { ^ /usr/local/include/winpr/crt.h:35:22: error: ‘UINT32 __rold’ redeclared as different kind of symbol /usr/lib/gcc/x86_64-linux-gnu/4.8/include/ia32intrin.h:127:1: error: previous declaration of ‘unsigned int rold(unsigned int, int)’ rold (unsigned int X, int __C) ^ /usr/local/include/winpr/crt.h:35:22: error: expected primary-expression before ‘value’ static INLINE UINT32 _rotl(UINT32 value, int shift) { ^ /usr/local/include/winpr/crt.h:35:22: error: expected ‘)’ before ‘value’ In file included from /usr/local/include/winpr/collections.h:30:0, from /usr/local/include/freerdp/types.h:65, from /usr/local/include/freerdp/freerdp.h:40, from /usr/local/include/freerdp/input.h:26, from rdpcommon.hpp:28, from RDP.hpp:29, from myrawsocket.hpp:23, from wsgate_main.cpp:81: /usr/local/include/winpr/crt.h:121:11: error: ‘errno_t’ does not name a type WINPR_API errno_t _itoa_s(int value, char* buffer, size_t sizeInCharacters, int radix); ^ /usr/local/include/winpr/crt.h:125:11: error: ‘errno_t’ does not name a type WINPR_API errno_t memmove_s(void* dest, size_t numberOfElements, const void* src, size_t count); ^ /usr/local/include/winpr/crt.h:126:11: error: ‘errno_t’ does not name a type WINPR_API errno_t wmemmove_s(WCHAR* dest, size_t numberOfElements, const WCHAR* src, size_t count); ^ wsgatemain.cpp: In function ‘int main(int, char*)’: wsgatemain.cpp:1691:41: warning: ignoring return value of ‘int chdir(const char)’, declared with attribute warn_unused_result -Wunused-resultchdir("/"); ^ make[2]: * [wsgate-wsgate_main.o] Error 1 make[2]: Leaving directory `/home/baseadmin/Desktop/FreeRDP-WebConnect/wsgate' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/home/baseadmin/Desktop/FreeRDP-WebConnect/wsgate' make: *\ [all] Error 2

alexpilotti commented 10 years ago

This FreeRDP dependency issue that you encountered has just been fixed and merged: https://github.com/FreeRDP/FreeRDP/pull/1906

You should now encounter a Casablanca dependency issue that we are fixing. Can you please test it?

Arkantos7 commented 10 years ago

@alexpilotti Test Passed. Also, I am aware of the casablanca dependency problem since they have updated to cmake and the setup_all script does not handle it. I built and installed one of casablanca's previous versions ( https://casablanca.codeplex.com/SourceControl/changeset/fa40cc31af293417bb9f25d358a3af576226394a ) wsgate installed successfully with this.

alexpilotti commented 10 years ago

@Arkantos7 great, thanks for the feedback!