Skip to content

Commit

Permalink
Revert "igraph: Build only the static lib"
Browse files Browse the repository at this point in the history
This reverts commit 4b1d6dd.

Installing the Python package [python-igraph][1] importing it fails
with the error below.

    $ pip install --user leidenalg
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
    Collecting leidenalg
      Downloading https://files.pythonhosted.org/packages/b6/cc/d76baf78a3924ba6093a3ce8d14e2289f1d718bd3bcbb8252bb131d12daa/leidenalg-0.7.0.tar.gz (92kB)
         |████████████████████████████████| 102kB 3.3MB/s
    Collecting python-igraph>=0.7.1.0 (from leidenalg)
      Downloading https://files.pythonhosted.org/packages/0f/a0/4e7134f803737aa6eebb4e5250565ace0e2599659e22be7f7eba520ff017/python-igraph-0.7.1.post6.tar.gz (377kB)
         |████████████████████████████████| 378kB 7.5MB/s
    Building wheels for collected packages: leidenalg, python-igraph
      Building wheel for leidenalg (setup.py) ... done
      Stored in directory: /scratch/local/pmenzel/.cache/pip/wheels/29/55/48/5a04693a10f50297bcda23819ca23ab3470a61dd911851c8bd
      Building wheel for python-igraph (setup.py) ... done
      Stored in directory: /scratch/local/pmenzel/.cache/pip/wheels/41/d6/02/34eebae97e25f5b87d60f4c0687e00523e3f244fa41bc3f4a7
    Successfully built leidenalg python-igraph
    Installing collected packages: python-igraph, leidenalg
    Successfully installed leidenalg-0.7.0 python-igraph-0.7.1.post6
    pmenzel@godsavethequeen:~> python
    Python 2.7.16 (default, May 15 2019, 14:45:23)
    [GCC 7.3.0] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import igraph as ig
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/pmenzel/.local/lib/python2.7/site-packages/igraph/__init__.py", line 34, in <module>
        from igraph._igraph import *
    ImportError: /home/pmenzel/.local/lib/python2.7/site-packages/igraph/_igraph.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE

Somehow it’s not linked against stdc++ correctly? [Missing stdc++ in during
linking?*][2] might be a similar issue.

Anyway, having the shared library for igraph around, python-igraph builds fine
and can be imported too. So add it back again.

[1]: https://github.com/igraph/python-igraph/
[2]: https://github.com/sensational/sassphp/issues/4
  • Loading branch information
pmenzel committed Jun 28, 2019
1 parent a9d8ac4 commit 4a69bd4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions igraph.be0
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

SRCURL[0]="https://github.com/igraph/igraph/releases/download/${PKGVERSION}/igraph-${PKGVERSION}.tar.gz"

export CFLAGS='-fPIC -O2'

###############################################################################
## Add URLs/pathes to patch files to the PATCHURL array.
## The sources will be patched in the order of the array.
Expand Down Expand Up @@ -49,9 +47,9 @@ build_in_sourcedir
# bee_patch "${@}"
#}

mee_configure() {
bee_configure --enable-shared=no
}
#mee_configure() {
# bee_configure
#}

#mee_build() {
# bee_build
Expand Down

0 comments on commit 4a69bd4

Please sign in to comment.