I must say that this is mystic to me. When I do check the shared
library, it looks weird:

$ file /usr/lib/python2.7/dist-packages/GDL.x86_64-linux-gnu.so 
/usr/lib/python2.7/dist-packages/GDL.x86_64-linux-gnu.so: ELF 64-bit LSB shared 
object, x86-64, version 1 (SYSV), dynamically linked, 
BuildID[sha1]=e26bdadb883325ace849f99998ce1fe326d6ddcb, stripped

$ ldd /usr/lib/python2.7/dist-packages/GDL.x86_64-linux-gnu.so 
        statically linked

$ ls -l /usr/lib/python2.7/dist-packages/GDL.x86_64-linux-gnu.so 
-rw-r--r-- 1 root root 5608 Oct 27 14:47 /usr/lib/python2.7/dist-packages/GDL.x8

I have no idea where this "statically linked" comes from. The linking
call in the build log is the same as in Debian (reformatted; the one
exception is marked):

/usr/bin/c++
    -fPIC -g  -O2
    -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
    -fstack-protector-strong
    -Wformat
    -Werror=format-security
    -DBUILD_DATE="\"Oct 27 2017\""
    -Wdate-time
    -D_FORTIFY_SOURCE=2
    -Wl,-Bsymbolic-functions   # This one is only in the Ubuntu call
    -Wl,-z,relro
    -Wl,-z,now
    -shared
    -o GDL.x86_64-linux-gnu.so
    CMakeFiles/pythongdl.dir/pythongdl.cpp.o
    -L/usr/lib/x86_64-linux-gnu/hdf5/serial
    libgnudatalanguage.so.0
    -lantlr-pic
    -fopenmp
    -L/usr/lib/x86_64-linux-gnu
    -pthread
    -ldl
    -lncurses
    -lform
    -lreadline
    -lhistory
    -lz
    -lpng
    -lgsl
    -lgslcblas
    -lplplot
    -lplplotcxx
    -lGraphicsMagick
    -lGraphicsMagick++
    -lwx_baseu-3.0
    -lwx_gtk2u_core-3.0
    -lwx_gtk2u_adv-3.0
    -lnetcdf
    -lhdf5_hl
    -lhdf5
    -lpthread
    -lsz
    -lz
    -lm
    -lcurl
    -lmfhdfalt
    -ldfalt
    -ljpeg
    /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
    -lpthread
    -lsz
    -ldl
    -lncurses
    -lform
    -lreadline
    -lhistory
    -lz
    -lpng
    -lgsl
    -lgslcblas
    -lplplot
    -lplplotcxx
    -lGraphicsMagick
    -lGraphicsMagick++
    -lwx_baseu-3.0
    -lwx_gtk2u_core-3.0
    -lwx_gtk2u_adv-3.0
    -lnetcdf
    -lhdf5_hl
    -lhdf5
    -lpthread
    -lsz
    -lz
    -lm
    -lcurl
    -lmfhdfalt
    -ldfalt
    -ljpeg
    /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
    -lpthread
    -lsz
    -ldl
    -lm
    -lfftw3
    -lfftw3f
    -lpython2.7
    -ludunits2
    -lps
    -lgrib_api
    -lqhull
    -lSM
    -lICE
    -lX11
    -lXext
    
I have no idea why this produces an unusable shared library on Ubuntu.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1665355

Title:
  import GDL fails in python (ImportError: dynamic module does not
  define init function (initGDL))

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnudatalanguage/+bug/1665355/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to