pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

How to debug why external library isn't loading with UFFI or appears not to be ?

R
recursive68@gmail.com
Sun, May 30, 2021 7:52 PM

What's the best way to debug whether an external library is being loaded or
not with UFFI ? I can't tell if it is or not, and nothing is showing up in
the pharodebug.log. It's being loaded with the unix64LibraryName method.

Thanks

What's the best way to debug whether an external library is being loaded or not with UFFI ? I can't tell if it is or not, and nothing is showing up in the pharodebug.log. It's being loaded with the unix64LibraryName method. Thanks
GP
Guillermo Polito
Mon, Jun 7, 2021 1:46 PM

It seems this was answered on discord.

I put in here the answer from Pablo and Esteban just for the record: using LD_DEBUG

https://man7.org/linux/man-pages/man8/ld.so.8.html https://man7.org/linux/man-pages/man8/ld.so.8.html

$ LD_DEBUG=… program

LD_DEBUG accepts many possible values to show the search for libraries, symbols...

cheers,
G

El 30 may 2021, a las 21:52, recursive68@gmail.com escribió:

What's the best way to debug whether an external library is being loaded or not with UFFI ? I can't tell if it is or not, and nothing is showing up in the pharodebug.log. It's being loaded with the unix64LibraryName method.

Thanks

It seems this was answered on discord. I put in here the answer from Pablo and Esteban just for the record: using LD_DEBUG https://man7.org/linux/man-pages/man8/ld.so.8.html <https://man7.org/linux/man-pages/man8/ld.so.8.html> $ LD_DEBUG=… program LD_DEBUG accepts many possible values to show the search for libraries, symbols... cheers, G > El 30 may 2021, a las 21:52, recursive68@gmail.com escribió: > > What's the best way to debug whether an external library is being loaded or not with UFFI ? I can't tell if it is or not, and nothing is showing up in the pharodebug.log. It's being loaded with the unix64LibraryName method. > > Thanks