Re: [bareos-devel] Compile bareos on omnios

2023-09-13 Thread jub.be...@gmail.com
Hello Andreas, thanks for your comment - it led to a comment and solution:

env LDFLAGS="-lsocket -lnsl" cmake ...

Our getaddrinfo() is in libsocket, so it needs a bit of extra help to find 
it.
(You'll also need to remove -Werror from CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
in core/CMakeLists.txt before running cmake.)

(https://illumos.topicbox.com/groups/omnios-discuss/Tb05c48cbfe789ba7/building-bareos-for-omnios)

Andreas Rogge schrieb am Dienstag, 12. September 2023 um 09:13:04 UTC+2:

> Am 11.09.23 um 22:51 schrieb jub.be...@gmail.com:
> > I know, i should learn to read and understand the code...
> > 
> > I start cmake and get this error, that addr_list is not declared:
> > 
> > (...)
> It looks like for some reason on your system HAVE_GETADDRINFO is false, 
> thus it tries to compile the (unmaintained) fallback variant of 
> resolv_host().
> As Solaris 11.4 does have getaddrinfo() and the function is also 
> required by modern POSIX standards, I guess CMake simply misdetected 
> this or you're missing a library header.
>
> Basically, you'll have to convince CMake that you have getaddrinfo() and 
> that it should set HAVE_GETADDRINFO true.
>
> Hope that points you in the right direction.
>
> Best Regards,
> Andreas
>
> -- 
> Andreas Rogge andrea...@bareos.com
> Bareos GmbH & Co. KG Phone: +49 221-630693-86 <+49%20221%2063069386>
> http://www.bareos.com
>
> Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
> Komplementär: Bareos Verwaltungs-GmbH
> Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz
>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-devel/4c4d642c-eb2a-4c1f-921f-3dfa786f5241n%40googlegroups.com.


Re: [bareos-devel] Compile bareos on omnios

2023-09-12 Thread Andreas Rogge

Am 11.09.23 um 22:51 schrieb jub.be...@gmail.com:

I know, i should learn to read and understand the code...

I start cmake and get this error, that addr_list is not declared:

(...)
It looks like for some reason on your system HAVE_GETADDRINFO is false, 
thus it tries to compile the (unmaintained) fallback variant of 
resolv_host().
As Solaris 11.4 does have getaddrinfo() and the function is also 
required by modern POSIX standards, I guess CMake simply misdetected 
this or you're missing a library header.


Basically, you'll have to convince CMake that you have getaddrinfo() and 
that it should set HAVE_GETADDRINFO true.


Hope that points you in the right direction.

Best Regards,
Andreas

--
Andreas Rogge andreas.ro...@bareos.com
  Bareos GmbH & Co. KG  Phone: +49 221-630693-86
  http://www.bareos.com

  Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
  Komplementär: Bareos Verwaltungs-GmbH
  Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz

--
You received this message because you are subscribed to the Google Groups 
"bareos-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-devel/c1aa8eb7-c034-932f-6db6-6e66633c3e01%40bareos.com.


OpenPGP_0x00314758866BD59E.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


[bareos-devel] Compile bareos on omnios

2023-09-11 Thread jub.be...@gmail.com
once more i try to build the newest bareos for omnios, kind of a 
solaris/illumos  distribution.

I know, i should learn to read and understand the code...

I start cmake and get this error, that addr_list is not declared:

(...)

[  4%] Building CXX object core/src/lib/CMakeFiles/bareos.dir/bget_msg.cc.o

[  4%] Building CXX object core/src/lib/CMakeFiles/bareos.dir/binflate.cc.o

[  4%] Building CXX object 
core/src/lib/CMakeFiles/bareos.dir/bnet_server_tcp.cc.o

[  5%] Building CXX object core/src/lib/CMakeFiles/bareos.dir/bnet.cc.o

/home/jub/bareos22/core/src/lib/bnet.cc:333:62: error: missing template 
argument list after 'dlist'; template placeholder not permitted in parameter

  333 | static const char* resolv_host(int family, const char* host, dlist* 
addr_list)

  |  ^

  |   <>

In file included from /home/jub/bareos22/core/src/lib/lib.h:48,

 from /home/jub/bareos22/core/src/include/bareos.h:191,

 from /home/jub/bareos22/core/src/lib/bnet.cc:36:

/home/jub/bareos22/core/src/lib/guid_to_name.h:31:29: note: 'template class dlist' declared here

   31 | template  class dlist;

  | ^

/home/jub/bareos22/core/src/lib/bnet.cc: In function 'const char* 
resolv_host(...)':

/home/jub/bareos22/core/src/lib/bnet.cc:366:7: error: 'addr_list' was not 
declared in this scope

  366 |   addr_list->append(addr);

  |   ^

/home/jub/bareos22/core/src/lib/bnet.cc:333:36: error: unused parameter 
'family' [-Werror=unused-parameter]

  333 | static const char* resolv_host(int family, const char* host, dlist* 
addr_list)

  |^~

cc1plus: all warnings being treated as errors

*** Error code 1

The following command caused the error:

cd /home/jub/bareos22/build/core/src/lib && ccache /usr/bin/g++ 
-D_FILE_OFFSET_BITS=64 -Dbareos_EXPORTS -I/home/jub/bareos22/core/src 
-I/usr/ssl-3/include -I/home/jub/bareos22/core/src/fastlz/include 
-I/home/jub/bareos22/third-party/CLI11/include 
-I/home/jub/bareos22/third-party/xxHash -isystem /opt/ooce/include 
-Wsuggest-override -fdebug-prefix-map=/home/jub/bareos22/core=. 
-fmacro-prefix-map=/home/jub/bareos22/core=. -Wno-invalid-offsetof -Werror 
-Wall -Wextra -std=gnu++17 -fPIC -MD -MT 
core/src/lib/CMakeFiles/bareos.dir/bnet.cc.o -MF 
CMakeFiles/bareos.dir/bnet.cc.o.d -o CMakeFiles/bareos.dir/bnet.cc.o -c 
/home/jub/bareos22/core/src/lib/bnet.cc

make: Fatal error: Command failed for target 
`core/src/lib/CMakeFiles/bareos.dir/bnet.cc.o'

Current working directory /home/jub/bareos22/build

*** Error code 1

The following command caused the error:

make -s -f core/src/lib/CMakeFiles/bareos.dir/build.make 
core/src/lib/CMakeFiles/bareos.dir/build

make: Fatal error: Command failed for target 
`core/src/lib/CMakeFiles/bareos.dir/all'

Current working directory /home/jub/bareos22/build

*** Error code 1

The following command caused the error:

make -s -f CMakeFiles/Makefile2 all

make: Fatal error: Command failed for target `all'

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-devel/26295259-20e6-4a6e-a234-cb2acf9fa00dn%40googlegroups.com.