Hi,
When I use GnuTLS ver 3.2.10, I am getting the following errors even if I
disable 'Enable_NLS' . However, I am able build using GnuTLS 2.1.10 and without
enabling 'ENABLE_NLS' It seems there is some compatibility issue betwen gettext
and GNUtls
---------------------------------------------
In file included from
C:/MinGW/tigervnc/tigervnc-1.3.80-20140404/win/rfb_win32/TCharArray.h:44:0,
from
C:/MinGW/tigervnc/tigervnc-1.3.80-20140404/win/rfb_win32/Dialog.h:31,
from
c:/MinGW/tigervnc/tigervnc-1.3.80-20140404/win/vncconfig/vncconfig.cxx:29:
c:/MinGW/tigervnc/tigervnc-1.3.80-20140404/win/vncconfig/vncconfig.cxx: In
function 'int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)':
c:/MinGW/tigervnc/tigervnc-1.3.80-20140404/win/vncconfig/vncconfig.cxx:165:34:
warning: deprecated conversion from string constant to 'TCHAR* {aka char*}'
[-Wwrite-strings]
TCHAR* propSheetTitle = _T("VNC Server Properties (Service-Mode)");
^
c:/MinGW/tigervnc/tigervnc-1.3.80-20140404/win/vncconfig/vncconfig.cxx:167:24:
warning: deprecated conversion from string constant to 'TCHAR* {aka char*}'
[-Wwrite-strings]
propSheetTitle = _T("VNC Server Properties (User-Mode)");
^
[ 85%] Building RC object
win/vncconfig/CMakeFiles/vncconfig.dir/vncconfig.rc.obj
make[2]: *** No rule to make target `c:/MinGW/gnutls/lib/libgnutls.a', needed
by `win/vncconfig/vncconfig.exe'. Stop.
make[1]: *** [win/vncconfig/CMakeFiles/vncconfig.dir/all] Error 2
make: *** [all] Error 2
------------------------------------------------------------
On Friday, 9 May 2014 3:03 PM, korada venkata ramana <vrkor...@yahoo.co.in>
wrote:
I am using CMake 2.8.12.2
I am also specifying the paths for GNUtls
Attaching the file CMakeCache.txt for reference.
Regards,
Venkat
On Thursday, 8 May 2014 9:32 PM, Brian Hinz <bph...@users.sourceforge.net>
wrote:
On Thu, May 8, 2014 at 8:39 AM, korada venkata ramana <vrkor...@yahoo.co.in>
wrote:
Hi,
>While building the vncviewer under MinGW, I am gettign the following errors:
>
>
>----------------------------
>In file included from
>c:/MinGW/tigervnc/tigervnc-1.3.80-20140404/common/os/tls.cxx:23:0:
>C:/MinGW/tigervnc/tigervnc-1.3.80-20140404/common/os/tls.h:45:29: error:
>redeclaration of 'GNUTLS_CRT_PRINT_ONELINE'
> GNUTLS_CRT_PRINT_ONELINE = 1
> ^
>In file included from
>C:/MinGW/tigervnc/tigervnc-1.3.80-20140404/common/os/tls.h:27:0,
> from
>c:/MinGW/tigervnc/tigervnc-1.3.80-20140404/common/os/tls.cxx:23:
>C:/MinGW/GnuTLS/include/gnutls/gnutls.h:546:5: note: previous declaration
>'gnutls_certificate_print_formats GNUTLS_CRT_PRINT_ONELINE'
> GNUTLS_CRT_PRINT_ONELINE = 1,
> ^
>In file included from
>c:/MinGW/tigervnc/tigervnc-1.3.80-20140404/common/os/tls.cxx:23:0:
>C:/MinGW/tigervnc/tigervnc-1.3.80-20140404/common/os/tls.h:46:3: error:
>conflicting declaration 'typedef enum gnutls_certificate_print_formats_t
>gnutls_certificate_print_formats_t'
> } gnutls_certificate_print_formats_t;
> ^
>In file included from
>C:/MinGW/tigervnc/tigervnc-1.3.80-20140404/common/os/tls.h:27:0,
> from
>c:/MinGW/tigervnc/tigervnc-1.3.80-20140404/common/os/tls.cxx:23:
>C:/MinGW/GnuTLS/include/gnutls/gnutls.h:548:5: error:
>'gnutls_certificate_print_formats_t' has a previous declaration as 'typedef
>enum gnutls_certificate_print_formats gnutls_certificate_print_formats_t'
> } gnutls_certificate_print_formats_t;
> ^
>make[2]: *** [common/os/CMakeFiles/os.dir/tls.cxx.obj] Error 1
>make[1]: *** [common/os/CMakeFiles/os.dir/all] Error 2
>make: *** [all] Error 2
>koradav@TURBOKAT /MinGW/tigervnc/Build-1.3.80$
>---------------------------------------------------------------------------------------------------
>
>
>However, I am able to build 1.3.0 and 1.3.1 without any issues and I don't see
>any changes in tls.* files between 1.3.0 and the nightly build.
>
>
>I am using GnuTls for windows from http://josefsson.org/gnutls4win/ (ver
>2.10.1)
This suggests to me that Cmake is not really finding gnutls. Commit r5160
added support for specifying the path to the GnuTLS libraries explicitly.
Please try setting the path with the cmake variables GNUTLS_LIBRARIES and
GNUTLS_INCLUDE_DIR. Same thing goes for your gettext issue. What version of
cmake are you using?
-brian
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Tigervnc-users mailing list
Tigervnc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-users