darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.88k stars 1.15k forks source link

Cannot build on Linux 5.15.165-1-MANJARO - curl and icu version mismatch (and versions are not checked) #17854

Open TutajITeraz opened 1 week ago

TutajITeraz commented 1 week ago

Describe the bug

I cannot build on Linux 5.15.165-1-MANJARO:

Versions of this packages are not checked.

Steps to reproduce

git clone --recurse-submodules --depth 1 https://github.com/darktable-org/darktable.git cd darktable sudo pacman -S cmake intltool libcurl-gnutls intltool llvm6 llvm6-libs clang sudo pacman -S openssl sudo pacman -S curl sudo pacman -S icu git submodule update --init git submodule update --init ./build.sh --prefix /opt/darktable --build-type Release --install --sudo

Expected behavior

build fine

Logfile | Screenshot | Screencast

-- The following OPTIONAL packages have been found:

 * FFI
 * LibEdit
 * Terminfo
 * zstd
 * LLVM
 * XMLLINT, command line XML tool, <http://xmlsoft.org/>
   Used for validation of data/cameras.xml
 * Gphoto2 (required version >= 2.5)
 * Imath
 * OpenEXR (required version >= 3.0)
 * JXL (required version >= 0.7.0)
 * WebP (required version >= 0.3.0)
 * libavif
 * libheif
 * PortMidi, Portable MIDI library, <https://github.com/PortMidi/portmidi>
   Used for hardware MIDI input devices
 * OpenJPEG
 * IsoCodes (required version >= 3.66)
 * Libsecret
 * GraphicsMagick
 * GMIC
 * ICU
 * Lua54 (required version >= 5.4)
 * Colord
 * Cups
 * SDL2, low level access to audio, keyboard, mouse, joystick, and graphics hardware, <https://www.libsdl.org/>
 * X11

-- The following REQUIRED packages have been found:

 * Gettext
 * GTK3 (required version >= 3.24.15)
 * LibXml2 (required version >= 2.6)
 * Threads
 * LensFun
 * SQLite3 (required version >= 3.26)
 * GIO
 * GThread
 * GModule
 * PangoCairo
 * Rsvg2
 * PNG
 * TIFF
 * LCMS2
 * JsonGlib
 * CURL (required version >= 7.56)
 * Exiv2 (required version >= 0.27.2)
 * Pugixml (required version >= 1.5), Light-weight, simple and fast XML parser, <http://pugixml.org/>
   Used for loading of data/cameras.xml
 * Glib
 * ZLIB, software library used for data compression
   Used for decoding DNG Deflate compression
 * JPEG, free library for handling the JPEG image data format, implements a JPEG codec
   Used for decoding DNG Lossy JPEG compression
 * OpenMP, Open Multi-Processing, <https://www.openmp.org/>
   Used for parallelization of the library

-- The following OPTIONAL packages have not been found:

 * OSMGpsMap
 * ColordGTK

-- Configuring done (1.2s)

...

 56%] Linking C executable darktable
[ 56%] Built target lighttable
[ 56%] Built target slideshow
[ 56%] Built target tethering
[ 56%] Built target import
[ 56%] Built target print
[ 56%] Built target copy_history
[ 56%] Built target export
[ 56%] Building C object lib/darktable/plugins/lighttable/CMakeFiles/select.dir/select.c.o
[ 56%] Built target image
[ 56%] Built target styles
[ 56%] Built target tagging
[ 57%] Building C object lib/darktable/plugins/lighttable/CMakeFiles/recentcollect.dir/recentcollect.c.o
[ 57%] Building C object lib/darktable/plugins/lighttable/CMakeFiles/collect.dir/collect.c.o
[ 58%] Building C object lib/darktable/plugins/lighttable/CMakeFiles/filtering.dir/filtering.c.o
/usr/bin/ld: libdarktable.so: undefined reference to `u_errorName_58'
/usr/bin/ld: libdarktable.so: undefined reference to `uregex_open_58'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `libssh2_session_set_read_timeout'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_set_blocking_mode@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_set1_initial_peer_addr@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libOpenEXRCore-3_2.so.31.3.2.4: undefined reference to `libdeflate_alloc_decompressor_ex'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_stream_reset@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_get_stream_type@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_write_ex2@OPENSSL_3.3.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `OSSL_QUIC_client_method@OPENSSL_3.2.0'
/usr/bin/ld: libdarktable.so: undefined reference to `u_strToLower_58'
/usr/bin/ld: libdarktable.so: undefined reference to `u_strToUpper_58'
/usr/bin/ld: libdarktable.so: undefined reference to `uregex_matches_58'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_new_stream@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libicuuc.so: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_accept_stream@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libOpenEXR-3_2.so.31.3.2.4: undefined reference to `std::__glibcxx_assert_fail(char const*, int, char const*, char const*)@GLIBCXX_3.4.30'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_set_incoming_stream_policy@OPENSSL_3.2.0'
/usr/bin/ld: libdarktable.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace_cold(char*, unsigned long, char const*, unsigned long, unsigned long)@GLIBCXX_3.4.31'
/usr/bin/ld: libdarktable.so: undefined reference to `ucol_strcoll_58'
/usr/bin/ld: libdarktable.so: undefined reference to `uregex_close_58'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_shutdown_ex@OPENSSL_3.2.0'
/usr/bin/ld: libdarktable.so: undefined reference to `utf8_nextCharSafeBody_58'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_get_stream_read_error_code@OPENSSL_3.2.0'
/usr/bin/ld: libdarktable.so: undefined reference to `std::ios_base_library_init()@GLIBCXX_3.4.32'
/usr/bin/ld: /usr/lib/libOpenEXRCore-3_2.so.31.3.2.4: undefined reference to `libdeflate_alloc_compressor_ex'
/usr/bin/ld: libdarktable.so: undefined reference to `ucol_open_58'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_get_stream_read_state@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_get_value_uint@OPENSSL_3.3.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_handle_events@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_set_value_uint@OPENSSL_3.3.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_get0_group_name@OPENSSL_3.2.0'
/usr/bin/ld: libdarktable.so: undefined reference to `u_foldCase_58'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_stream_conclude@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_net_read_desired@OPENSSL_3.2.0'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_get_event_timeout@OPENSSL_3.2.0'
/usr/bin/ld: libdarktable.so: undefined reference to `__cxa_call_terminate@CXXABI_1.3.15'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_get_stream_id@OPENSSL_3.2.0'
/usr/bin/ld: libdarktable.so: undefined reference to `ucol_close_58'
/usr/bin/ld: /usr/lib/libcurl.so: undefined reference to `SSL_net_write_desired@OPENSSL_3.2.0'
/usr/bin/ld: libdarktable.so: undefined reference to `uregex_setText_58'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/CMakeFiles/darktable.dir/build.make:168: bin/darktable] Error 1
make[1]: *** [CMakeFiles/Makefile2:2594: bin/CMakeFiles/darktable.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 59%] Linking C shared module libselect.so
[ 59%] Linking C shared module librecentcollect.so
[ 59%] Built target select
[ 59%] Built target recentcollect
[ 59%] Built target validate_wbpresets_json
[ 59%] Linking C shared module libcollect.so
[ 59%] Built target collect
[ 59%] Linking C shared module libfiltering.so
[ 59%] Built target filtering
make: *** [Makefile:156: all] Error 2

Commit

No response

Where did you obtain darktable from?

self compiled

darktable version

commit 0b07518d091059b92f8f076b1c6bd0ee35e8c191

What OS are you using?

Linux

What is the version of your OS?

Linux 5.15.165-1-MANJARO

Describe your system?

No response

Are you using OpenCL GPU in darktable?

None

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

victoryforce commented 4 days ago

@TutajITeraz If there is a package version mismatch on your system, no changes to darktable can fix it. This is not a darktable problem.