can you tell me more about changes made and send me the files, so that I be able to compile on windows natively.

many thanks

Jean-Sébastien Hederer - Gérant
ASPerience
Conseil, intégration, hébergement de systèmes informatiques spécialisé en 
solutions logiciel libre de gestion d'entreprise
Mob.: 06 69 56 21 49
Tél.: 02 51 13 50 94
Fax.: 02 40 68 70 06
http://www.asperience.fr




"William" a écrit le 27/06/2007 06:55 :
Hederer Jean-Sébastien wrote:
I'm trying to compile bacula for win32 (not with Visual C++ 2005
Express, but with Visual Studio 2005 Standard Edition) and this doesn't
compile. What I've noticed:

    * After having installed "Windows® Server 2003 SP1 Platform SDK Full
      Download", my XP was no more considered as "genuine". So I'd
      recommend putting download step of volume shadow copy service sdk
      before installing SDK

    * I've been obliged to use newer versions of dependencies

        
MYSQL|ftp://ftp.inria.fr/pub/MySQL/Downloads/MySQL-5.0/mysql-noinstall-5.0.41-win32.zip|mysql-5.0.41-win32
        
POSTGRESQL|ftp://ftp3.fr.postgresql.org/pub/postgresql/binary/v8.1.9/win32/postgresql-8.1.9-1-binaries-no-installer.zip|pgsql
        
POSTGRESQL_SRC|ftp://ftp3.fr.postgresql.org/pub/postgresql/source/v8.1.9/postgresql-8.1.9.tar.bz2

    * build-depkgs-msvc shows some warning even if I ever corrected some
      bugs in cmd file (no copy of openssl\include)

        D:\projets\workspace_bacula\depkgs-msvc\src\zlib123>XCOPY
        zlib1.dll.manifest D:\projets\workspace_bacula\depkgs-msvc\bin\ /Y
        *0* fichier(s) copi‚(s)

        D:\projets\workspace_bacula\depkgs-msvc\src\zlib123>XCOPY
        zlib1.dll D:\projets\workspace_bacula\depkgs-msvc\bin\ /Y
        *0* fichier(s) copi‚(s)

        D:\projets\workspace_bacula\depkgs-msvc\src\zlib123>XCOPY
        zlib.lib D:\projets\workspace_bacula\depkgs-msvc\lib\ /Y
        D:zlib.lib
        1 fichier(s) copi‚(s)

        D:\projets\workspace_bacula\depkgs-msvc\src\zlib123>XCOPY
        zdll.lib D:\projets\workspace_bacula\depkgs-msvc\lib\ /Y
        *0* fichier(s) copi‚(s)
        ...
        src\interfaces\libpq\libpqdll.def(3) : *warning LNK4017:
        DESCRIPTION statement not supported for the target platform;
        ignored*
        ...
        include\wx\msw\wince\textctrlce.h
        include\wx\msw\wince\time.h
        include\wx\msw\wince\wince.rc
        169 fichier(s) copi‚(s)
        *0* fichier(s) copi‚(s)
        *0* fichier(s) copi‚(s)
        lib\vc_dll\msw\wx\setup.h
        ...

    * build-msvc don't compile even if I ever corrected a bug in cmd
      file (problem with quotes). But lines of code indicated seem good
      for me.

        Compiling...
        bsock.c
        d:\projets\workspace_bacula\bacula-core\src\bacula.h(92) : error
        C2059: syntax error : 'string'
        d:\projets\workspace_bacula\bacula-core\src\win32\compat\syslog.h(28)
        : error C2059: syntax error : 'string'
        1>d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(230)
        : warning C4028: formal parameter 2 different from declaration
        1>d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(230)
        : warning C4273: 'chmod' : inconsistent dll linkage
                c:\dev\microsoft visual studio 8\vc\include\io.h(316) :
        see previous definition of 'chmod'
        d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(236)
        : error C2143: syntax error : missing ')' before '='
        d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(236)
        : error C2072: 'tape_open' : initialization of a function
        d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(236)
        : error C2059: syntax error : ')'
        d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(310)
        : error C2059: syntax error : 'string'
        d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(358)
        : error C2054: expected '(' to follow 'inline'
        d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(359)
        : error C2085: 'ffs' : not in formal parameter list
        d:\projets\workspace_bacula\bacula-core\src\win32\compat\compat.h(359)
        : error C2143: syntax error : missing ';' before '{'
        d:\projets\workspace_bacula\bacula-core\src\baconfig.h(525) :
        error C2061: syntax error : identifier 'POOL_MEM'
        d:\projets\workspace_bacula\bacula-core\src\baconfig.h(525) :
        error C2059: syntax error : ';'

Does it compile for someone? What can be my errors? I'm struggling with
this since 4 nights...

Many thanks!


I was able to get it to compile with build-msvc, although the scripts
and project files require significant modifications. The particular
errors you pasted are caused by the project being compiled as C instead
of C++. If you change the setting for that project it will compile.
There are also a bunch of entries required in the file bacula.def which
defines the symbol names for libbac.

There were also some more problems with the nsis scripts and it took a
while to get the installer created.

I would be willing to help get this supported again. Having support for
building with msvc tools would help with debugging on the windows platform.

-- William
begin:vcard
fn;quoted-printable:Jean-S=C3=A9bastien Hederer
n;quoted-printable:Hederer;Jean-S=C3=A9bastien
org:ASPerience
email;internet:[EMAIL PROTECTED]
title;quoted-printable:G=C3=A9rant
tel;cell:0669562149
x-mozilla-html:FALSE
url:http://www.asperience.fr
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to