Re: [Bacula-devel] Beta release 7.9.2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [Bacula-devel] Beta release 7.9.2

Daniel Heitepriem
Hi everyone,

I can second this error for Solaris 11.3 x64 using GCC 4.8. The "bsys.c"
error can be solved by adding the missing semicolon in file
"bacula-7.9.2/src/lib/bsys.c" line 1218.

Best regards,
Daniel Heitepriem

Am 07.06.17 um 10:12 schrieb Kern Sibbald:

> Hello,
>
>
> On 06/07/2017 09:52 AM, Gary R. Schmidt wrote:
>> Trying to build on Solaris 10 x64, using GCC 5.2.0.
>>
>> As expected:
>> Compiling bsys.c
>> bsys.c: In function 'int baccept(int, sockaddr*, socklen_t*)':
>> bsys.c:1219:7: error: expected ',' or ';' before 'if'
>>        if (fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC) < 0) {
>> ^
>
> Well, I really do not like seeing an fnctl as an argument to fnctl as
> it makes it harder to read (you might guess that I am not the author
> of that code).
> However, I don't immediately see the problem.  Could you be more explict?
>
>
>>
>> Fix, and continue:
>>         Linking bacula-sd ...
>>         .../BETA/bacula-7.9.2/libtool --silent --tag=CXX --mode=link
>> /opt/csw/bin/g++  -Lpath_to_mysql/lib/mysql -Rpath_to_mysql/lib/mysql
>> -L/opt/csw/lib -R/opt/csw/lib -L. -L../lib -o bacula-sd stored.o
>> append.o authenticate.o dircmd.o fd_cmds.o job.o hello.o status.o
>> vbackup.o stored_conf.o global.o -lz \
>>                 -lbacsd -lbaccfg -lbac -lm  -lpthread -lresolv -lnsl
>> -lsocket -lxnet  -lintl -lresolv -lrt  \
>>                 /opt/csw/lib/libintl.so -R/opt/csw/lib -lssl -lcrypto
>>         ld: warning: file /opt/csw/lib/libintl.so: attempted multiple
>> inclusion of file
>>         ld: warning: file /opt/csw/lib/libstdc++.so: attempted
>> multiple inclusion of file
>>         Undefined                       first referenced
>>         symbol                             in file
>>         bcrc32_bad(unsigned char*, int)
>> /home/garys/src/bacula/BETA/bacula-7.9.2/src/stored/.libs/libbacsd.so
>>         ld: fatal: Symbol referencing errors. No output written to
>> .libs/bacula-sd
>>
>> Interesting, bcrc32_bad is in ./src/lib/protos.h, but not defined
>> anywhere.
>
> This is probably a piece pulled in from the Enterprise version that I
> failed to notice.
> Unfortunately, bcrc32_bad is referenced in src/stored/block_util.c,
> but only for Solaris.  I did not include the source for bcrc32_bad,
> because I thought it was not needed/used.  I will have to check with
> the author of the code. For the current time, if you want to build and
> link correctly, I recommend deleting the blocks of code that are
> #ifdef on Solaris.   Sorry about that slip up.
>
> Best regards,
> Kern
>
> ------------------------------------------------------------------------------
>
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Bacula-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: [Bacula-devel] Beta release 7.9.2

Daniel Heitepriem
Hi,

with these changes version 7.9 can be successfully compiled on Solaris
11 x64 using GCC.

@Gary R. Schmidt: It should now also work on Solaris 10 but I will check
it also.

Best regards,
Daniel

Am 07.06.17 um 10:45 schrieb Kern Sibbald:

> Hello,
>
> I have just pushed several fixes for Solaris to the www.bacula.org
> repo -- Branch-7.9
>
> 1. Fix the missing semi-colon
>
> 2. Remove vestiges of crc32_bad, which is not needed and should not be
> used.
>
> 3. I have also included several other patches ...
>
> Best regards,
>
> Kern
>
>
>
> On 06/07/2017 10:32 AM, Daniel Heitepriem wrote:
>> Hi everyone,
>>
>> I can second this error for Solaris 11.3 x64 using GCC 4.8. The
>> "bsys.c" error can be solved by adding the missing semicolon in file
>> "bacula-7.9.2/src/lib/bsys.c" line 1218.
>>
>> Best regards,
>> Daniel Heitepriem
>>
>> Am 07.06.17 um 10:12 schrieb Kern Sibbald:
>>> Hello,
>>>
>>>
>>> On 06/07/2017 09:52 AM, Gary R. Schmidt wrote:
>>>> Trying to build on Solaris 10 x64, using GCC 5.2.0.
>>>>
>>>> As expected:
>>>> Compiling bsys.c
>>>> bsys.c: In function 'int baccept(int, sockaddr*, socklen_t*)':
>>>> bsys.c:1219:7: error: expected ',' or ';' before 'if'
>>>>        if (fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC) < 0) {
>>>> ^
>>>
>>> Well, I really do not like seeing an fnctl as an argument to fnctl
>>> as it makes it harder to read (you might guess that I am not the
>>> author of that code).
>>> However, I don't immediately see the problem.  Could you be more
>>> explict?
>>>
>>>
>>>>
>>>> Fix, and continue:
>>>>         Linking bacula-sd ...
>>>>         .../BETA/bacula-7.9.2/libtool --silent --tag=CXX
>>>> --mode=link /opt/csw/bin/g++  -Lpath_to_mysql/lib/mysql
>>>> -Rpath_to_mysql/lib/mysql -L/opt/csw/lib -R/opt/csw/lib -L.
>>>> -L../lib -o bacula-sd stored.o append.o authenticate.o dircmd.o
>>>> fd_cmds.o job.o hello.o status.o vbackup.o stored_conf.o global.o
>>>> -lz \
>>>>                 -lbacsd -lbaccfg -lbac -lm  -lpthread -lresolv
>>>> -lnsl -lsocket -lxnet  -lintl -lresolv -lrt  \
>>>>                 /opt/csw/lib/libintl.so -R/opt/csw/lib -lssl -lcrypto
>>>>         ld: warning: file /opt/csw/lib/libintl.so: attempted
>>>> multiple inclusion of file
>>>>         ld: warning: file /opt/csw/lib/libstdc++.so: attempted
>>>> multiple inclusion of file
>>>>         Undefined                       first referenced
>>>>         symbol                             in file
>>>>         bcrc32_bad(unsigned char*, int)
>>>> /home/garys/src/bacula/BETA/bacula-7.9.2/src/stored/.libs/libbacsd.so
>>>>         ld: fatal: Symbol referencing errors. No output written to
>>>> .libs/bacula-sd
>>>>
>>>> Interesting, bcrc32_bad is in ./src/lib/protos.h, but not defined
>>>> anywhere.
>>>
>>> This is probably a piece pulled in from the Enterprise version that
>>> I failed to notice.
>>> Unfortunately, bcrc32_bad is referenced in src/stored/block_util.c,
>>> but only for Solaris.  I did not include the source for bcrc32_bad,
>>> because I thought it was not needed/used.  I will have to check with
>>> the author of the code. For the current time, if you want to build
>>> and link correctly, I recommend deleting the blocks of code that are
>>> #ifdef on Solaris.   Sorry about that slip up.
>>>
>>> Best regards,
>>> Kern
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Bacula-users mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: [Bacula-devel] Beta release 7.9.2

Daniel Heitepriem
In reply to this post by Daniel Heitepriem
I can confirm that 7.9.3 builds also fine on Solaris 10 x64 using GCC.

Best regards,
Daniel

Am 07.06.17 um 13:15 schrieb Gary R. Schmidt:

> On 07/06/2017 20:43, Gary R. Schmidt wrote:
>> On 07/06/2017 17:59, Kern Sibbald wrote:
>>> Hello,
>>>
>>> Bacula does not require g++ to build, but you may need to adjust
>>> things.  For example, on FreeBSD Bacula is built with clang.  On
>>> Solaris you can use the Solaris compiler.  I don't know what
>>> Developer Studio is, so I cannot say.  However, you will need to
>>> have GNU tools installed.
>> Oracle Developer Studio is the current name for the Solaris Compiler
>> suite, what used to be Sun Studio, and before that Workshop and so on.
>>
>> I will pull down 7.9.3 and see how that goes.
>>
> After manually correcting the lz4.c file to use pack(1)/pack(), 7.9.3
> builds on Solaris 10 x64, using Developer Studio 12.3.
>
> I will look into running the regression tests, but I need to make a
> separate database first.  (And steal some time!)
>
>     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-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/bacula-users

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