On 2/12/21 5:26 AM, Radosław Korzeniewski wrote:
Hello,

czw., 11 lut 2021 o 22:29 <jman...@engineering.ucsb.edu <mailto:jman...@engineering.ucsb.edu>> napisał(a):



    On Thu, Feb 11, 2021 at 12:54 PM Josh Fisher <jfis...@jaybus.com
    <mailto:jfis...@jaybus.com>> wrote:


        On 2/11/21 12:40 PM, jman...@engineering.ucsb.edu
        <mailto:jman...@engineering.ucsb.edu> wrote:
        Hello!

             About two years ago our Bacula client package stopped
        working in Catalina. We've figured out that the binaries were
        compiled for PPC and i386 Macs and I suspect the issue is
        that we need a client for x86_64 or ia64.

             The official documentation points us to Fink which
        doesn't seem to have a current version of the package. I
        believe their most recent version is from 2013.

             We've tried compiling the source code but there seems to
        be a syntax error in one of the functions. While our
        programmer was able to alter the source code we aren't
        comfortable deploying with our in house changes. Further our
        programmer thinks a refactor would be needed for the changes
        to apply to all instances of the function.


        Did you use the --enable-client-only flag when running configure?

    Thank you for the reply. Here are our compile options and make
    error. We are compiling for client only.

    % CFLAGS="-g -O2" \
               ./configure \
                 --sbindir=$HOME/bacula/bin \
                 --sysconfdir=$HOME/bacula/bin \
                 --with-pid-dir=$HOME/bacula/bin/working \
                 --with-subsys-dir=$HOME/bacula/bin/working \
                 --enable-smartalloc \
                 --with-mysql \
                 --with-working-dir=$HOME/bacula/bin/working \
                 --enable-client-only

    Compiling bsnprintf.c
    bsnprintf.c:622:16: error: static declaration of 'round' follows non-static
           declaration
    static int64_t round(LDOUBLE value)
                    ^
    
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:476:15: 
note:
           previous declaration is here
    extern double round(double);
                   ^
    1 error generated.
    make[1]: *** [bsnprintf.lo] Error 1

Could you please share your configuration used for the above compilation, so. Bacula version, OS version and compiler collection used.
I compile Bacula on macOS daily and never get such errors.


bsnprintf.c only includes wchar.h and bacula.h. None of Bacula's header files directly include math.h. So my guess is that in this version of xcode some other standard header (stdio.h?) is including math.h.

What version of xcode is this?



best regards
--
Radosław Korzeniewski
rados...@korzeniewski.net <mailto:rados...@korzeniewski.net>


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to