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.

Reply via email to