-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
find_library always misses on first try #7947
Comments
I'm having trouble reproducing this. Does this happen with other libraries as well or just with that one? |
So far it seems to be just that one (of the dozen or so that I've tried). Here's something else that's curious.
|
@rickhg12hs is this still an issue? If so, before running Julia can you please try setting (you might also want to set |
@ihnorton Yes, unfortunately it is still an issue. The behavior is slightly different in that the $ ./julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+5700 (2015-06-29 20:31 UTC)
_/ |\__'_|_|_|\__'_| | Commit 147fa0b (0 days old master)
|__/ | i686-redhat-linux
julia> Libdl.find_library(["cardsvalue"],["/home/rick/Julia/pokerth"])
""
julia> Libdl.find_library(["cardsvalue"],["/home/rick/Julia/pokerth"])
"/home/rick/Julia/pokerth/cardsvalue"
julia>
[Rick@steelers julia]$ ./julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+5700 (2015-06-29 20:31 UTC)
_/ |\__'_|_|_|\__'_| | Commit 147fa0b (0 days old master)
|__/ | i686-redhat-linux
julia> Libdl.find_library(["cardsvalue.so"],["/home/rick/Julia/pokerth"])
""
julia> Libdl.find_library(["cardsvalue.so"],["/home/rick/Julia/pokerth"])
"/home/rick/Julia/pokerth/cardsvalue.so"
I'm not sure if there is useful info in this mega-dump, or not. Maybe because all symbols are not defined? $ export LD_DEBUG=libs
$ ./julia
19199: find library=libjulia.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia/tls/i686/sse2:/usr/local/src/julia/julia/usr/bin/../lib/julia/tls/i686:/usr/local/src/julia/julia/usr/bin/../lib/julia/tls/sse2:/usr/local/src/julia/julia/usr/bin/../lib/julia/tls:/usr/local/src/julia/julia/usr/bin/../lib/julia/i686/sse2:/usr/local/src/julia/julia/usr/bin/../lib/julia/i686:/usr/local/src/julia/julia/usr/bin/../lib/julia/sse2:/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib/tls/i686/sse2:/usr/local/src/julia/julia/usr/bin/../lib/tls/i686:/usr/local/src/julia/julia/usr/bin/../lib/tls/sse2:/usr/local/src/julia/julia/usr/bin/../lib/tls:/usr/local/src/julia/julia/usr/bin/../lib/i686/sse2:/usr/local/src/julia/julia/usr/bin/../lib/i686:/usr/local/src/julia/julia/usr/bin/../lib/sse2:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/tls/i686/sse2/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/tls/i686/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/tls/sse2/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/tls/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/i686/sse2/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/i686/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/sse2/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/tls/i686/sse2/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/tls/i686/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/tls/sse2/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/tls/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/i686/sse2/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/i686/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/sse2/libjulia.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libjulia.so
19199:
19199: find library=libdl.so.2 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libdl.so.2
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libdl.so.2
19199: search path=/usr/lib/mpich/lib/tls/i686/sse2:/usr/lib/mpich/lib/tls/i686:/usr/lib/mpich/lib/tls/sse2:/usr/lib/mpich/lib/tls:/usr/lib/mpich/lib/i686/sse2:/usr/lib/mpich/lib/i686:/usr/lib/mpich/lib/sse2:/usr/lib/mpich/lib:/usr/lib/alliance/lib/tls/i686/sse2:/usr/lib/alliance/lib/tls/i686:/usr/lib/alliance/lib/tls/sse2:/usr/lib/alliance/lib/tls:/usr/lib/alliance/lib/i686/sse2:/usr/lib/alliance/lib/i686:/usr/lib/alliance/lib/sse2:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/tls/i686/sse2/libdl.so.2
19199: trying file=/usr/lib/mpich/lib/tls/i686/libdl.so.2
19199: trying file=/usr/lib/mpich/lib/tls/sse2/libdl.so.2
19199: trying file=/usr/lib/mpich/lib/tls/libdl.so.2
19199: trying file=/usr/lib/mpich/lib/i686/sse2/libdl.so.2
19199: trying file=/usr/lib/mpich/lib/i686/libdl.so.2
19199: trying file=/usr/lib/mpich/lib/sse2/libdl.so.2
19199: trying file=/usr/lib/mpich/lib/libdl.so.2
19199: trying file=/usr/lib/alliance/lib/tls/i686/sse2/libdl.so.2
19199: trying file=/usr/lib/alliance/lib/tls/i686/libdl.so.2
19199: trying file=/usr/lib/alliance/lib/tls/sse2/libdl.so.2
19199: trying file=/usr/lib/alliance/lib/tls/libdl.so.2
19199: trying file=/usr/lib/alliance/lib/i686/sse2/libdl.so.2
19199: trying file=/usr/lib/alliance/lib/i686/libdl.so.2
19199: trying file=/usr/lib/alliance/lib/sse2/libdl.so.2
19199: trying file=/usr/lib/alliance/lib/libdl.so.2
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libdl.so.2
19199:
19199: find library=librt.so.1 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/librt.so.1
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/librt.so.1
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/librt.so.1
19199: trying file=/usr/lib/alliance/lib/librt.so.1
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/librt.so.1
19199:
19199: find library=libpthread.so.0 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libpthread.so.0
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libpthread.so.0
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/libpthread.so.0
19199: trying file=/usr/lib/alliance/lib/libpthread.so.0
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libpthread.so.0
19199:
19199: find library=libstdc++.so.6 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libstdc++.so.6
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libstdc++.so.6
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/libstdc++.so.6
19199: trying file=/usr/lib/alliance/lib/libstdc++.so.6
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libstdc++.so.6
19199:
19199: find library=libm.so.6 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libm.so.6
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libm.so.6
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/libm.so.6
19199: trying file=/usr/lib/alliance/lib/libm.so.6
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libm.so.6
19199:
19199: find library=libgcc_s.so.1 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libgcc_s.so.1
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libgcc_s.so.1
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/libgcc_s.so.1
19199: trying file=/usr/lib/alliance/lib/libgcc_s.so.1
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libgcc_s.so.1
19199:
19199: find library=libc.so.6 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libc.so.6
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libc.so.6
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/libc.so.6
19199: trying file=/usr/lib/alliance/lib/libc.so.6
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libc.so.6
19199:
19199: find library=libz.so.1 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libz.so.1
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libz.so.1
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libz.so.1
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/libz.so.1
19199: trying file=/usr/lib/alliance/lib/libz.so.1
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libz.so.1
19199:
19199:
19199: calling init: /lib/libpthread.so.0
19199:
19199:
19199: calling init: /lib/libc.so.6
19199:
19199:
19199: calling init: /lib/libz.so.1
19199:
19199:
19199: calling init: /lib/libgcc_s.so.1
19199:
19199:
19199: calling init: /lib/libm.so.6
19199:
19199:
19199: calling init: /lib/libstdc++.so.6
19199:
19199:
19199: calling init: /lib/librt.so.1
19199:
19199:
19199: calling init: /lib/libdl.so.2
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libjulia.so
19199:
19199:
19199: initialize program: ./julia
19199:
19199:
19199: transferring control: ./julia
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/lib/julia/sys.so
19199:
19199: find library=libpcre2-8.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libpcre2-8.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libpcre2-8.so
19199:
19199: find library=libgmp.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libgmp.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libgmp.so
19199:
19199: find library=libmpfr.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libmpfr.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libmpfr.so
19199:
19199: find library=libdSFMT.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libdSFMT.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libdSFMT.so
19199:
19199: find library=libopenblas.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libopenblas.so
19199:
19199: find library=libgfortran.so.3 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libgfortran.so.3
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libgfortran.so.3
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/libgfortran.so.3
19199: trying file=/usr/lib/alliance/lib/libgfortran.so.3
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libgfortran.so.3
19199:
19199: find library=libquadmath.so.0 [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/libquadmath.so.0
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libquadmath.so.0
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/libquadmath.so.0
19199: trying file=/usr/lib/alliance/lib/libquadmath.so.0
19199: search cache=/etc/ld.so.cache
19199: trying file=/lib/libquadmath.so.0
19199:
19199:
19199: calling init: /lib/libquadmath.so.0
19199:
19199:
19199: calling init: /lib/libgfortran.so.3
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libopenblas.so
19199:
19199: find library=libcholmod.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libcholmod.so
19199:
19199: find library=libcolamd.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libcolamd.so
19199:
19199: find library=libamd.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libamd.so
19199:
19199: find library=libcamd.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libcamd.so
19199:
19199: find library=libccolamd.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libccolamd.so
19199:
19199: find library=libsuitesparseconfig.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libsuitesparseconfig.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libsuitesparseconfig.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libccolamd.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libcamd.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libamd.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libcolamd.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libcholmod.so
19199:
19199: find library=libsuitesparse_wrapper.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libsuitesparse_wrapper.so
19199:
19199: find library=libumfpack.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libumfpack.so
19199:
19199: find library=libspqr.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/libspqr.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libspqr.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libumfpack.so
19199:
19199:
19199: calling init: /usr/local/src/julia/julia/usr/bin/../lib/libsuitesparse_wrapper.so
19199:
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+5700 (2015-06-29 20:31 UTC)
_/ |\__'_|_|_|\__'_| | Commit 147fa0b (0 days old master)
|__/ | i686-redhat-linux
julia> Libdl.find_library(["cardsvalue.so"],["/home/rick/Julia/pokerth"])
19199:
19199: calling init: /home/rick/Julia/pokerth/cardsvalue.so
19199:
19199: /home/rick/Julia/pokerth/cardsvalue.so: error: symbol lookup error: undefined symbol: _ZN5boost6system16generic_categoryEv (fatal)
19199: find library=cardsvalue.so.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/cardsvalue.so.so
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/cardsvalue.so.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/cardsvalue.so.so
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/cardsvalue.so.so
19199: trying file=/usr/lib/alliance/lib/cardsvalue.so.so
19199: search cache=/etc/ld.so.cache
19199: search path=/lib/tls/i686/sse2:/lib/tls/i686:/lib/tls/sse2:/lib/tls:/lib/i686/sse2:/lib/i686:/lib/sse2:/lib:/usr/lib/tls/i686/sse2:/usr/lib/tls/i686:/usr/lib/tls/sse2:/usr/lib/tls:/usr/lib/i686/sse2:/usr/lib/i686:/usr/lib/sse2:/usr/lib (system search path)
19199: trying file=/lib/tls/i686/sse2/cardsvalue.so.so
19199: trying file=/lib/tls/i686/cardsvalue.so.so
19199: trying file=/lib/tls/sse2/cardsvalue.so.so
19199: trying file=/lib/tls/cardsvalue.so.so
19199: trying file=/lib/i686/sse2/cardsvalue.so.so
19199: trying file=/lib/i686/cardsvalue.so.so
19199: trying file=/lib/sse2/cardsvalue.so.so
19199: trying file=/lib/cardsvalue.so.so
19199: trying file=/usr/lib/tls/i686/sse2/cardsvalue.so.so
19199: trying file=/usr/lib/tls/i686/cardsvalue.so.so
19199: trying file=/usr/lib/tls/sse2/cardsvalue.so.so
19199: trying file=/usr/lib/tls/cardsvalue.so.so
19199: trying file=/usr/lib/i686/sse2/cardsvalue.so.so
19199: trying file=/usr/lib/i686/cardsvalue.so.so
19199: trying file=/usr/lib/sse2/cardsvalue.so.so
19199: trying file=/usr/lib/cardsvalue.so.so
19199:
19199: find library=cardsvalue.so [0]; searching
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/cardsvalue.so
19199: search path=/usr/local/src/julia/julia/usr/bin/../lib/julia:/usr/local/src/julia/julia/usr/bin/../lib (RPATH from file ./julia)
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/julia/cardsvalue.so
19199: trying file=/usr/local/src/julia/julia/usr/bin/../lib/cardsvalue.so
19199: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19199: trying file=/usr/lib/mpich/lib/cardsvalue.so
19199: trying file=/usr/lib/alliance/lib/cardsvalue.so
19199: search cache=/etc/ld.so.cache
19199: search path=/lib/tls:/lib/i686:/lib/sse2:/lib:/usr/lib/tls:/usr/lib/i686:/usr/lib/sse2:/usr/lib (system search path)
19199: trying file=/lib/tls/cardsvalue.so
19199: trying file=/lib/i686/cardsvalue.so
19199: trying file=/lib/sse2/cardsvalue.so
19199: trying file=/lib/cardsvalue.so
19199: trying file=/usr/lib/tls/cardsvalue.so
19199: trying file=/usr/lib/i686/cardsvalue.so
19199: trying file=/usr/lib/sse2/cardsvalue.so
19199: trying file=/usr/lib/cardsvalue.so
19199:
19205: find library=libtinfo.so.5 [0]; searching
19205: search path=/usr/lib/mpich/lib/tls/i686/sse2:/usr/lib/mpich/lib/tls/i686:/usr/lib/mpich/lib/tls/sse2:/usr/lib/mpich/lib/tls:/usr/lib/mpich/lib/i686/sse2:/usr/lib/mpich/lib/i686:/usr/lib/mpich/lib/sse2:/usr/lib/mpich/lib:/usr/lib/alliance/lib/tls/i686/sse2:/usr/lib/alliance/lib/tls/i686:/usr/lib/alliance/lib/tls/sse2:/usr/lib/alliance/lib/tls:/usr/lib/alliance/lib/i686/sse2:/usr/lib/alliance/lib/i686:/usr/lib/alliance/lib/sse2:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19205: trying file=/usr/lib/mpich/lib/tls/i686/sse2/libtinfo.so.5
19205: trying file=/usr/lib/mpich/lib/tls/i686/libtinfo.so.5
19205: trying file=/usr/lib/mpich/lib/tls/sse2/libtinfo.so.5
19205: trying file=/usr/lib/mpich/lib/tls/libtinfo.so.5
19205: trying file=/usr/lib/mpich/lib/i686/sse2/libtinfo.so.5
19205: trying file=/usr/lib/mpich/lib/i686/libtinfo.so.5
19205: trying file=/usr/lib/mpich/lib/sse2/libtinfo.so.5
19205: trying file=/usr/lib/mpich/lib/libtinfo.so.5
19205: trying file=/usr/lib/alliance/lib/tls/i686/sse2/libtinfo.so.5
19205: trying file=/usr/lib/alliance/lib/tls/i686/libtinfo.so.5
19205: trying file=/usr/lib/alliance/lib/tls/sse2/libtinfo.so.5
19205: trying file=/usr/lib/alliance/lib/tls/libtinfo.so.5
19205: trying file=/usr/lib/alliance/lib/i686/sse2/libtinfo.so.5
19205: trying file=/usr/lib/alliance/lib/i686/libtinfo.so.5
19205: trying file=/usr/lib/alliance/lib/sse2/libtinfo.so.5
19205: trying file=/usr/lib/alliance/lib/libtinfo.so.5
19205: search cache=/etc/ld.so.cache
19205: trying file=/lib/libtinfo.so.5
19205:
19205: find library=libdl.so.2 [0]; searching
19205: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19205: trying file=/usr/lib/mpich/lib/libdl.so.2
19205: trying file=/usr/lib/alliance/lib/libdl.so.2
19205: search cache=/etc/ld.so.cache
19205: trying file=/lib/libdl.so.2
19205:
19205: find library=libc.so.6 [0]; searching
19205: search path=/usr/lib/mpich/lib:/usr/lib/alliance/lib (LD_LIBRARY_PATH)
19205: trying file=/usr/lib/mpich/lib/libc.so.6
19205: trying file=/usr/lib/alliance/lib/libc.so.6
19205: search cache=/etc/ld.so.cache
19205: trying file=/lib/libc.so.6
19205:
19205:
19205: prelink checking: ok
19205:
19205: calling init: /lib/libc.so.6
19205:
19205:
19205: calling init: /lib/libdl.so.2
19205:
19205:
19205: calling init: /lib/libtinfo.so.5
19205:
19205:
19205: initialize program: sh
19205:
19205:
19205: transferring control: sh
19205:
""
julia> Libdl.find_library(["cardsvalue.so"],["/home/rick/Julia/pokerth"])
"/home/rick/Julia/pokerth/cardsvalue.so"
julia> Libdl.find_library(["cardsvalue.so"],["/home/rick/Julia/pokerth"])
"/home/rick/Julia/pokerth/cardsvalue.so"
julia> Libdl.find_library(["cardsvalue"],["/home/rick/Julia/pokerth"])
"/home/rick/Julia/pokerth/cardsvalue"
|
Not "finding" the library seems to be related to whether all the symbols are resolved or not. Here's another example using $ ./julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+5700 (2015-06-29 20:31 UTC)
_/ |\__'_|_|_|\__'_| | Commit 147fa0b (0 days old master)
|__/ | i686-redhat-linux
julia> Libdl.find_library(["libpari"],["/usr/local/src/sage/sage-6.7/local/lib"])
""
julia> Libdl.find_library(["libpari"],["/usr/local/src/sage/sage-6.7/local/lib"])
""
julia> Libdl.find_library(["libpari"],["/usr/local/src/sage/sage-6.7/local/lib"])
""
julia> Libdl.find_library(["libgmp"],["/usr/local/src/sage/sage-6.7/local/lib"])
"/usr/local/src/sage/sage-6.7/local/lib/libgmp"
julia> Libdl.dlopen("/usr/local/src/sage/sage-6.7/local/lib/libgmp")
Ptr{Void} @0x0a7cf278
julia> Libdl.find_library(["libpari"],["/usr/local/src/sage/sage-6.7/local/lib"])
"/usr/local/src/sage/sage-6.7/local/lib/libpari"
|
Right, You could also add paths to This is the relevant error in the
|
@ihnorton I suppose it's not clear to me what the intended use/behavior of Even though not all symbols in In the other example, should |
Can you check these libraries in |
Should |
It's not a restriction imposed by Julia, but by operating systems' dynamic linkers. Every C FFI I'm aware of has this limitation. |
Right, I can't fully explain some of the behavior you've described @rickhg12hs -- specifically: being able to Barring that, it would be helpful to at least know if you can |
If this is still an issue, please comment with more information and we can reopen. |
The text was updated successfully, but these errors were encountered: