[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bacula-devel] i386: version 2.2.8 and gcc-4.1.2


Hi,

I'm working on bacula with
 - g++ 4.1.3 (Ubuntu Feisty)
 - g++ 4.1.2 20061115  (Debian 4.1.1-21) (Debian Etch)

And all work fine. I think that you have something wrong in your
configuration.

It could be a good idea to re-start from scratch (drop your old
working directory).

Bye

On Tuesday 19 February 2008 17:41:35 Reiner Dassing wrote:
> Hi all,
>
> after download of bacula-2.2.8.tar.gz I tried to make bacula from
> the tarball.
>
> I found out that the compilation with g++-3.3 works on DEBIAN "Etch"
> after modifying the
> file: src/findlib/find_ones.c
> static inline int LINKHASH(const struct stat &info)
> {
>      int hash = info.st_dev;
>      // unsigned long long i = info.st_ino;  <<<< long long not supported
>      unsigned long i = info.st_ino;
>      hash ^= i;
>      i >>= 16;
>      hash ^= i;
>      i >>= 16;
>      hash ^= i;
>      i >>= 16;
>      hash ^= i;
>      return hash & LINK_HASHTABLE_MASK;
> }
>
> Then, I tried g++-4.1.2.
> There a lot of more errors were found.
> I will append these at the end.
>
>
> Reiner
> --------------------------------------
>
>
> Configuration on Tue Feb 19 15:50:09 GMT 2008:
>
>    Host:                       i686-pc-linux-gnu -- debian 4.0
>    Bacula version:             2.2.8 (26 January 2008)
>    Source code location:       .
>    Install binaries:           /bacula/sbin
>    Install config files:       /bacula/bin
>    Scripts directory:          /bacula/bin
>    Archive directory:
>    Working directory:          /bacula/working
>    PID directory:              /bacula/run
>    Subsys directory:           /bacula/run/subsys
>    Man directory:              /usr/share/man
>    Data directory:             /bacula/share
>    C Compiler:                 gcc 4.1.2
>    C++ Compiler:               /usr/bin/g++ 4.1.2
>    Compiler flags:              -g -O2 -Wall -pedantic
> -fno-strict-aliasing -fno-exceptions -fno-rtti
>    Linker flags:                -O
>    Libraries:                  -lpthread
>    Statically Linked Tools:    no
>    Statically Linked FD:       no
>    Statically Linked SD:       no
>    Statically Linked DIR:      no
>    Statically Linked CONS:     no
>    Database type:              PostgreSQL
>    Database lib:               -L/usr/local/lib -lpq -lcrypt
>    Database name:              bacula
>    Database user:              bacula
>
>    Job Output Email:           bacula-job
>    Traceback Email:            bacula-dump
>    SMTP Host Address:          localhost
>
>    Director Port:              9101
>    File daemon Port:           9102
>    Storage daemon Port:        9103
>
>    Director User:
>    Director Group:
>    Storage Daemon User:
>    Storage DaemonGroup:
>    File Daemon User:
>    File Daemon Group:
>
>    SQL binaries Directory      /usr/local/bin
>
>    Large file support:         yes
>    Bacula conio support:       yes -ltermcap
>    readline support:           no
>    TCP Wrappers support:       no
>    TLS support:                no
>    Encryption support:         no
>    ZLIB support:               yes
>    enable-smartalloc:          yes
>    bat support:                no
>    enable-gnome:               no
>    enable-bwx-console:         no
>    enable-tray-monitor:
>    client-only:                no
>    build-dird:                 yes
>    build-stored:               yes
>    ACL support:                no
>    Python support:             no
>    Batch insert enabled:       yes
>
>
> ==>Entering directory /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/lib
> make[1]: Entering directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/lib'
> ...
> Compiling jcr.c
> jcr.c: In function 'void job_end_push(JCR*, void (*)(JCR*, void*), void*)':
> jcr.c:215: warning: ISO C++ forbids casting between pointer-to-function
> and pointer-to-object
> jcr.c: In function 'void job_end_pop(JCR*)':
> jcr.c:226: warning: ISO C++ forbids casting between pointer-to-function
> and pointer-to-object
> ...
> Compiling smartall.c
> smartall.c: In function 'void sm_dump(bool, bool)':
> smartall.c:391: warning: format '%p' expects type 'void*', but argument
> 3 has type 'abufhead*'
> smartall.c: In function 'int sm_check_rtn(const char*, int, bool)':
> smartall.c:482: warning: format '%p' expects type 'void*', but argument
> 3 has type 'abufhead*'
> ...
> Compiling var.c
> var.c: In function 'var_rc_t var_config(var_t*, var_config_t, ...)':
> var.c:2474: warning: ISO C++ forbids casting between pointer-to-function
> and pointer-to-object
> var.c:2483: warning: ISO C++ forbids casting between pointer-to-function
> and pointer-to-object
> Compiling watchdog.c
> watchdog.c:55: error: extra ';'
> make[1]: *** [watchdog.o] Fehler 1
> make[1]: Leaving directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/lib'
>
>    ====== Error in /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/lib ======
> ==>Entering directory /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/findlib
> make[1]: Entering directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/findlib'
> Compiling find.c
> Compiling match.c
> Compiling find_one.c
> find_one.c: In function 'int LINKHASH(const stat&)':
> find_one.c:76: error: ISO C++ does not support 'long long'
> make[1]: *** [find_one.o] Fehler 1
> make[1]: Leaving directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/findlib'
>
>
>    ====== Error in /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/findlib
> ======
> ==>Entering directory /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/filed
> make[1]: Entering directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/filed'
> Compiling filed.c
> Compiling authenticate.c
> Compiling acl.c
> Compiling backup.c
> Compiling estimate.c
> Compiling filed_conf.c
> Compiling heartbeat.c
> Compiling job.c
> Compiling pythonfd.c
> Compiling restore.c
> Compiling status.c
> Compiling verify.c
> Compiling verify_vol.c
> make[1]: *** No rule for target  »../findlib/libfind.a«,
> make[1]: Leaving directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/filed'
>
>
>    ====== Error in /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/filed
> ======
>
>
> ==>Entering directory /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/console
> make[1]: Entering directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/console'
> Compiling console.c
> Compiling console_conf.c
> Compiling authenticate.c
> authenticate.c:50: warning: array 'hello' initialized by parenthesized
> string literal '("Hello %s calling\012")'
> authenticate.c:53: warning: array 'OKhello' initialized by parenthesized
> string literal '("1000 OK:")'Compiling conio.c
> make[1]: *** Keine Regel vorhanden, um das Target »../lib/libbac.a«,
>    benötigt von »bconsole«, zu erstellen.  Schluss.
> make[1]: Leaving directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/console'
>
>
>    ====== Error in /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/console
> ======
>
> make[1]: Leaving directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/cats'
> ==>Entering directory /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/dird
> make[1]: Entering directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/dird'
> Compiling verify.c
> make[1]: *** No rule found to build  »../lib/libbac.a«,
> make[1]: Leaving directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/dird'
>
>
>    ====== Error in /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/dird
> ======
>
>
>
> ==>Entering directory /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/stored
> make[1]: Entering directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/stored'
> Compiling wait.c
> make[1]: *** No rule found to build »../lib/libbac.a«,
> make[1]: Leaving directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/stored'
>
>
>    ====== Error in /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/stored
> ======
>
>
> ==>Entering directory /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/tools
> make[1]: Entering directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/tools'
> Compiling bsmtp.c
> make[1]: *** No rule found to build »../lib/libbac.a«,
> make[1]: Leaving directory
> `/backup/bacula-2.2.8-distrib/bacula-2.2.8/src/tools'
>
>
>    ====== Error in /backup/bacula-2.2.8-distrib/bacula-2.2.8/src/tools
> ======
>
>
>
>
>
>
>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bacula-devel mailing list
> Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/bacula-devel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilot Consulting.