Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Error trying to compile on fedora 40: libcurl.so.4: undefined references to openldap #850

Open
aanno opened this issue Jun 30, 2024 · 0 comments
Labels

Comments

@aanno
Copy link

aanno commented Jun 30, 2024

Context

I am trying to compile linphone-desktop on fedora 40 with the general building steps described at https://gitlab.linphone.org/BC/public/linphone-desktop

General information

Trying to build with podman on a docker.io/library/fedora:40 image.

Expected behaviour

Building should result in a bin/linphone binary linked.

To Reproduce

Error (after cmake --build . --parallel 6 --config RelWithDebInfo):

[100%] Building CXX object linphone-app/CMakeFiles/linphone-qt.dir/src/app/main.cpp.o
[100%] Linking CXX executable ../bin/linphone
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_free_urldesc@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_sasl_bind@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_parse_sasl_bind_result@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_init_fd@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ber_sockbuf_add_io@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_memfree@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ber_memvfree@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_start_tls@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_search_ext@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_msgfree@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_msgtype@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_parse_result@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_url_parse@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_err2string@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_set_option@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ber_bvfree@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_abandon_ext@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_get_dn_ber@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_get_attribute_ber@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_get_option@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ber_memfree@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ber_free@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_unbind_ext@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_pvt_url_scheme2proto@OPENLDAP_2.200'
/usr/bin/ld: /usr/lib64/libcurl.so.4: undefined reference to `ldap_result@OPENLDAP_2.200'
collect2: error: ld returned 1 exit status
gmake[2]: *** [linphone-app/CMakeFiles/linphone-qt.dir/build.make:444: bin/linphone] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:4875: linphone-app/CMakeFiles/linphone-qt.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

Additional context

I'm using a Docker file for building that could be find at https://github.com/aanno/linux-config/blob/master/build-with-docker/Containerfile.linphone.fedora40

SDK logs URL

No response

@aanno aanno added the bug label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant