Issue #2 resolved

ldc link fails

ariovistus
repo owner created an issue

Mr. John Colvin is seeing link errors on linux 64/ldc from github HEAD.

quote: running test.py brings up this error:

  Traceback (most recent call last):
    File "test.py", line 14, in <module>
      import hello 
  ImportError: /usr/local/lib/python2.7/dist-packages/celerid/examples/hello/build/lib.linux-x86_64-2.7/hello.so: undefined symbol: _D15TypeInfo_Struct6__vtblZ

I am seeing similar (but possibly not the same) errors:

Traceback (most recent call last):
  File "test.py", line 14, in <module>
    import hello
ImportError: /home/ellery/mercurial/pyd/examples/hello/build/lib.linux-x86_64-2.7/hello.so: undefined symbol: _D6deimos6python12methodobject11PyMethodDef6__initZ

Comments (7)

  1. Dmitry Vakhrushev

    Hello! I still get the same error in the same conditions:

    Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
    [GCC 4.6.3] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import hello
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: /home/krat/.virtualenvs/pyd/local/lib/python2.7/site-packages/hello.so: undefined symbol: _D15TypeInfo_Struct6__vtblZ
    >>> exit()
    
    $ uname -a
    Linux krat-pc 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
    

    LDC from github HEAD

  2. ariovistus reporter

    (Reply via elle...@utulsa.edu):

    CeleriD is configured to work with ldc/shared libs. Don't know if it will work with static libs.

    Could you try ldc with shared libs and see if that works?

    On Sat, Dec 22, 2012 at 10:58 AM, Dmitry Vakhrushev issues-reply@bitbucket.org wrote:

  3. Dmitry Vakhrushev

    I've rebuild ldc with druntime & phobos as shared libs and it works. Actually it fires a warning message "WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-zFxBmb/pkcs11: No such file or directory." But I think it's a ldc issue.

  4. Log in to comment