Skip to content

Conversation

@WillAyd
Copy link
Contributor

@WillAyd WillAyd commented Apr 22, 2025

Not sure how this was working before, but on main I get the following issues without this:

adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xbe): undefined reference to `dlopen'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xf8): undefined reference to `dlsym'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x33e): undefined reference to `dlsym'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x43b): undefined reference to `dlerror'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x6b0): undefined reference to `dlopen'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xab6): undefined reference to `dlerror'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xd34): undefined reference to `dlerror'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xfbe): undefined reference to `dlerror'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x108f): undefined reference to `dlsym'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x1148): undefined reference to `dlerror'
collect2: error: ld returned 1 exit status

@WillAyd WillAyd requested a review from lidavidm as a code owner April 22, 2025 18:53
@github-actions github-actions bot modified the milestone: ADBC Libraries 18 Apr 22, 2025
@WillAyd
Copy link
Contributor Author

WillAyd commented Apr 22, 2025

Ah OK - I see this is required when using the compilers package in a conda environment. Looks like the system installed compiler provides this anyway, but the conda one needs this extra dependency

Per Meson docs:

Provides access to the dynamic link interface (functions: dlopen, dlclose, dlsym and others). On systems where this is not built into libc (mostly glibc < 2.34), tries to find an external library providing them instead.

https://mesonbuild.com/Dependencies.html#dl-libdl

@lidavidm lidavidm merged commit 0dfd2c7 into apache:main Apr 22, 2025
68 of 69 checks passed
colin-rogers-dbt pushed a commit to dbt-labs/arrow-adbc that referenced this pull request Jun 10, 2025
Not sure how this was working before, but on main I get the following
issues without this:

```
adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xbe): undefined reference to `dlopen'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xf8): undefined reference to `dlsym'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x33e): undefined reference to `dlsym'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x43b): undefined reference to `dlerror'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x6b0): undefined reference to `dlopen'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xab6): undefined reference to `dlerror'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xd34): undefined reference to `dlerror'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0xfbe): undefined reference to `dlerror'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x108f): undefined reference to `dlsym'
/home/willayd/miniforge3/envs/pandas-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: adbc_driver_manager.cc:(.text.AdbcLoadDriver+0x1148): undefined reference to `dlerror'
collect2: error: ld returned 1 exit status
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants