On Sunday 03 May 2009 03:22:00 James Harper wrote:
> > If you are unable to set it up, and you would like the Win64 version
>
> built for
>
> > testing patches, you can send me a patch and I will apply and build
>
> it. If
>
> > you have a patch that you want put in, you can commit it as normal,
>
> notify
>
> > me, and I can build a new version.
>
> I have a patch that I think might resolve bug 1277
> (http://bugs.bacula.org/view.php?id=1277) but can't build it for win64
> to test it (and don't have a win64 clustered exchange server to test
> with either).
>
> My patch doesn't break win32 non-clustered backups so I don't think it's
> going to break anything. I have just committed it (8781). Could you
> please do a win64 build and either email me back with a link or post a
> link to bug 1277 directly so that 'dmadole' can test it?
It builds fine on Win32, but fails to compile on Win64:
Compiling exchange-fd.c
In file included from exchange-fd.h:103,
from exchange-fd.c:32:
api.h:281: error: multiple definition of ‘enum _COMPUTER_NAME_FORMAT’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2574:
error: previous definition here
api.h:282: error: conflicting declaration ‘ComputerNameNetBIOS’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNameNetBIOS’ has a previous declaration
as ‘_COMPUTER_NAME_FORMAT ComputerNameNetBIOS’
api.h:283: error: conflicting declaration ‘ComputerNameDnsHostname’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNameDnsHostname’ has a previous declaration
as ‘_COMPUTER_NAME_FORMAT ComputerNameDnsHostname’
api.h:284: error: conflicting declaration ‘ComputerNameDnsDomain’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNameDnsDomain’ has a previous declaration
as ‘_COMPUTER_NAME_FORMAT ComputerNameDnsDomain’
api.h:285: error: conflicting declaration ‘ComputerNameDnsFullyQualified’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNameDnsFullyQualified’ has a previous declaration
as ‘_COMPUTER_NAME_FORMAT ComputerNameDnsFullyQualified’
api.h:286: error: conflicting declaration ‘ComputerNamePhysicalNetBIOS’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNamePhysicalNetBIOS’ has a previous declaration
as ‘_COMPUTER_NAME_FORMAT ComputerNamePhysicalNetBIOS’
api.h:287: error: conflicting declaration ‘ComputerNamePhysicalDnsHostname’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNamePhysicalDnsHostname’ has a previous declaration
as ‘_COMPUTER_NAME_FORMAT ComputerNamePhysicalDnsHostname’
api.h:288: error: conflicting declaration ‘ComputerNamePhysicalDnsDomain’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNamePhysicalDnsDomain’ has a previous declaration
as ‘_COMPUTER_NAME_FORMAT ComputerNamePhysicalDnsDomain’
api.h:289: error: conflicting
declaration ‘ComputerNamePhysicalDnsFullyQualified’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNamePhysicalDnsFullyQualified’ has a previous declaration
as ‘_COMPUTER_NAME_FORMAT ComputerNamePhysicalDnsFullyQualified’
api.h:290: error: conflicting declaration ‘ComputerNameMax’
/home/kern/bacula/cross-tools/mingw-w64/lib/gcc/x86_64-pc-mingw32/4.3.2/../../../../x86_64-pc-mingw32/include/winbase.h:2575:
error: ‘ComputerNameMax’ has a previous declaration as ‘_COMPUTER_NAME_FORMAT
ComputerNameMax’
api.h:297: warning: ‘WINBOOL GetComputerNameExW(COMPUTER_NAME_FORMAT, WCHAR*,
DWORD*)’ redeclared without dllimport attribute: previous dllimport ignored
make[1]: *** [obj64/exchange-fd.o] Error 1
make[1]: Leaving directory `/home/kern/bacula/k/src/win32/filed/plugins'
!!!!! Make of filed/plugins failed !!!!!
If you can figure it out from that, great, otherwise I'll look at it a bit
later today.
Regards,
Kern
>
> Thanks
>
> James
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel