Bacula-users

[Bacula-users] Filed Win32 Crosscompiling fail

2010-08-23 17:20:18
Subject: [Bacula-users] Filed Win32 Crosscompiling fail
From: Marco Zancanaro <marco.zanca AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 23 Aug 2010 23:17:25 +0200
Hi all, i'm trying to compile a win32 version of bacula 2.4.4 filedaemon with ssl support, but i'm stuck with this error:

[...]
vss_generic.cpp:531: error: `IVssBackupComponents' was not declared in this scope
vss_generic.cpp:531: error: `pVss' was not declared in this scope
vss_generic.cpp:531: error: expected primary-_expression_ before ')' token
vss_generic.cpp:531: error: expected `;' before "m_pVssObject"
vss_generic.cpp:534: error: `IVssEnumObject' was not declared in this scope
vss_generic.cpp:534: error: template argument 1 is invalid
vss_generic.cpp:534: error: invalid type in declaration before ';' token
vss_generic.cpp:536: error: `VSS_OBJECT_NONE' was not declared in this scope
vss_generic.cpp:537: error: `VSS_OBJECT_SNAPSHOT' was not declared in this scope
vss_generic.cpp:538: error: expected primary-_expression_ before ')' token
vss_generic.cpp:547: error: `VSS_OBJECT_PROP' was not declared in this scope
vss_generic.cpp:547: error: expected `;' before "Prop"
vss_generic.cpp:548: error: `VSS_SNAPSHOT_PROP' was not declared in this scope
vss_generic.cpp:548: error: `Snap' was not declared in this scope
vss_generic.cpp:548: error: `Prop' was not declared in this scope
vss_generic.cpp:553: error: request for member `p' in `pIEnumSnapshots', which is of non-class type `int'
vss_generic.cpp:568: error: `p_VssFreeSnapshotProperties' cannot be used as a function
vss_generic.cpp:536: warning: unused variable 'VSS_OBJECT_NONE'
vss_generic.cpp:537: warning: unused variable 'VSS_OBJECT_SNAPSHOT'
vss_generic.cpp:547: warning: unused variable 'VSS_OBJECT_PROP'
vss_generic.cpp:548: warning: unused variable 'VSS_SNAPSHOT_PROP'
vss_generic.cpp: In member function `BOOL VSSClientXP::CheckWriterStatus()':
vss_generic.cpp:579: error: `IVssBackupComponents' was not declared in this scope
vss_generic.cpp:579: error: `pVss' was not declared in this scope
vss_generic.cpp:579: error: expected primary-_expression_ before ')' token
vss_generic.cpp:579: error: expected `;' before "m_pVssObject"
vss_generic.cpp:606: error: `VSS_ID' was not declared in this scope
vss_generic.cpp:606: error: expected `;' before "idInstance"
vss_generic.cpp:607: error: expected `;' before "idWriter"
vss_generic.cpp:608: error: `VSS_WRITER_STATE' was not declared in this scope
vss_generic.cpp:608: error: expected `;' before "eWriterStatus"
vss_generic.cpp:614: error: `idInstance' was not declared in this scope
vss_generic.cpp:615: error: `idWriter' was not declared in this scope
vss_generic.cpp:617: error: `eWriterStatus' was not declared in this scope
vss_generic.cpp:625: error: `VSS_WS_FAILED_AT_IDENTIFY' was not declared in this scope
vss_generic.cpp:626: error: `VSS_WS_FAILED_AT_PREPARE_BACKUP' was not declared in this scope
vss_generic.cpp:627: error: `VSS_WS_FAILED_AT_PREPARE_SNAPSHOT' was not declared in this scope
vss_generic.cpp:628: error: `VSS_WS_FAILED_AT_FREEZE' was not declared in this scope
vss_generic.cpp:629: error: `VSS_WS_FAILED_AT_THAW' was not declared in this scope
vss_generic.cpp:630: error: `VSS_WS_FAILED_AT_POST_SNAPSHOT' was not declared in this scope
vss_generic.cpp:631: error: `VSS_WS_FAILED_AT_BACKUP_COMPLETE' was not declared in this scope
vss_generic.cpp:632: error: `VSS_WS_FAILED_AT_PRE_RESTORE' was not declared in this scope
vss_generic.cpp:633: error: `VSS_WS_FAILED_AT_POST_RESTORE' was not declared in this scope
vss_generic.cpp:625: warning: unused variable 'VSS_WS_FAILED_AT_IDENTIFY'
vss_generic.cpp:626: warning: unused variable 'VSS_WS_FAILED_AT_PREPARE_BACKUP'
vss_generic.cpp:627: warning: unused variable 'VSS_WS_FAILED_AT_PREPARE_SNAPSHOT'
vss_generic.cpp:628: warning: unused variable 'VSS_WS_FAILED_AT_FREEZE'
vss_generic.cpp:629: warning: unused variable 'VSS_WS_FAILED_AT_THAW'
vss_generic.cpp:630: warning: unused variable 'VSS_WS_FAILED_AT_POST_SNAPSHOT'
vss_generic.cpp:631: warning: unused variable 'VSS_WS_FAILED_AT_BACKUP_COMPLETE'
vss_generic.cpp:632: warning: unused variable 'VSS_WS_FAILED_AT_PRE_RESTORE'
vss_generic.cpp:633: warning: unused variable 'VSS_WS_FAILED_AT_POST_RESTORE'
vss_generic.cpp:656: error: `GetStringFromWriterStatus' cannot be used as a function
vss_generic.cpp:608: warning: unused variable 'VSS_WRITER_STATE'
vss_generic.cpp:614: warning: unused variable 'idInstance'
vss_generic.cpp:615: warning: unused variable 'idWriter'
../compat/ms_atl.h: In destructor `CComPtr<T>::~CComPtr() [with T = IVssAsync]':
vss_generic.cpp:314:   instantiated from here
../compat/ms_atl.h:24: error: invalid use of undefined type `struct IVssAsync'
vss.h:50: error: forward declaration of `struct IVssAsync'
make[1]: *** [vss_XP.o] Error 1
make[1]: Leaving directory `/home/user/Desktop/bacula-2.4.4/src/win32/filed'
!!!!! Make of filed failed !!!!!

I have follow all the instruction in the README.mingw32 file that i found in the source code, but i can't pass this error.
At the moment i need to stuck with version 2.4.4, but there is no pre-compiled version with ssl support.
I try to do this in Ubuntu 8.04 or the last stable release of Debian. For mingw32 and the dependecies i used the scripts build-win32-cross-tools and build-depkgs-mingw32.

Any help will be appreciated.

Regards,
Marco Zancanaro
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] Filed Win32 Crosscompiling fail, Marco Zancanaro <=