On 06/19/2017 03:23 PM, Gary R. Schmidt wrote:
Hi Kern,

On 19/06/2017 22:48, Kern Sibbald wrote:
You need to checkout Branch-7.9. The code you need is at the HEAD of that branch and there is as of this moment no specific tag setup for it.

The easiest is to clone the repository then checkout Branch-7.9.

Thanks for that, I got it out eventually, but I can't get at the S10 system at the moment, that doesn't matter, I have an S11 box right in front of me...


Your fix doesn't work on Solaris 11. Nor will it work on Solaris 5.2.1, 6, 7, 8, or 9.
Well that is a big surprise because I implemented the change to work only on Solaris 10 (i.e 5.10).

And the code is invalid on HP-UX and AIX unless you use GCC to compile.
That is possible. Not many people know how to write portable code these days :-(

Just get rid of the push/pop thing entirely, and surround the code with pack(1) ... pack() as I did in my original fix. Just because someone gives you a tool-kit that includes a hammer, you don't have to use it. (My google-fu is weak, as far as I can tell pragma push/pop fot pack() is CLANG/VC++/some magic 6502 compiler specific.)
I did get rid of the push/pop thing entirely and used pack(1) and pack() exactly as you did, but only for Solaris 10. Otherwise, I risk to introduce new problems and I do not have the systems to test it on.

Are you sure you have the Bacula version that logs on as 7.9.6 also is in <bacula>/src/version.h ?

At this point, I am quite sure (not 100%) that I duplicated what you did, so if it doesn't work, either you are not running on a Solaris 5.10 or there is some other subtly
that I am missing.

One last attempt:

In your src/config.h file you should have something that looks like:

#define HAVE_SOLARIS10 1

If it is not there then simply add it to the file and try compiling again.

Best regards,
Kern


    Cheers,
        Gary    B-)

------------------------------------------------------------------------------
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



------------------------------------------------------------------------------
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