Hello Phil,

Thanks for the bsock comments. Yes, most of our programmers do not use the Solaris compiler so that do things that are not strictly correct. I will fix them.

Best regards,

Kern


On 07/10/2017 06:27 PM, Phil Stracchino wrote:
On 07/10/17 12:18, Phil Stracchino wrote:

Is there any way I can tell Bacula to build the storage daemon with no
tools, just the daemon itself?  I don't see a --disable-build-tools
configure option, and I don't really want to reinstall a set of DB
client libraries that will never be used.
Actually, I think I *MAY* have solved this with the following set of
counterintuitive configure options:

--enable-client-only --enable-build-stored --disable-build-dird

I note that --enable-client-only --enable-build-stored WITHOUT
--disable-build-dird results in also building the dird.



Additional note:  In src/lib/bsock.h, lines 293 and 311:



enum {
    BNET_SIGNAL         = -1,
    BNET_HARDEOF        = -2,
    BNET_ERROR          = -3,
    BNET_COMMAND        = -4,
};

/*
  * Inter-daemon commands
  * When BNET_IS_CMD is on, the next int32 is a command
  */
#define BNET_CMD_SIZE sizeof(int32_t)

enum {
    BNET_CMD_NONE       =  0, /* reserved */
    BNET_CMD_ACK_HASH   =  1, /* backup  SD->FD  SD already know this
hash, don't need the block */
    BNET_CMD_UNK_HASH   =  2, /* restore SD->FD  hash is unknown */
    BNET_CMD_GET_HASH   =  3, /* backup  SD->FD  SD ask FD to send the
corresponding block */
                              /* restore FD->SD  FD ask SD to send the
corresponding block */
    BNET_CMD_STO_BLOCK  =  4, /* backup  FD->SD  FD send requested block */
    BNET_CMD_REC_ACK    =  5, /* restore FD->SD  FD has consumed records
from the buffer */
    BNET_CMD_STP_THREAD =  6, /* restore FD->SD  SD must stop thread */
    BNET_CMD_STP_FLOWCTRL =  7, /* backup FD->SD  SD must stop sending
flowcontrol information */
};


Those commas on the last line before the closing brace cause a warning
at every inclusion of bsock.h.  Removing them:

    BNET_COMMAND        = -4
};

...
    BNET_CMD_STP_FLOWCTRL =  7 /* backup FD->SD  SD must stop sending
flowcontrol information */
};

eliminates the warning.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to