Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jul 2015 22:37:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 201348] devel/py-tables: libgcc_s.so.1 raises ImportError on libgfortran.so.3 not found due to missing rpath
Message-ID:  <bug-201348-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201348

            Bug ID: 201348
           Summary: devel/py-tables: libgcc_s.so.1 raises ImportError on
                    libgfortran.so.3 not found due to missing rpath
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: wen@FreeBSD.org
          Reporter: john@saltant.com
                CC: python@FreeBSD.org
             Flags: maintainer-feedback?(wen@FreeBSD.org)
          Assignee: wen@FreeBSD.org

Created attachment 158354
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158354&action=edit
devel/py-tables: Add USES=fortran to link extensions with gcc rpath

Upon import tables, the following ImportError exception is raised.

    ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc48/libgfortran.so.3 not found

The root cause is that utilsextension.so is linked without
-Wl,-rpath=${_GCC_RUNTIME} (/usr/local/lib/gcc48, in this case) combined with
the dependency on numpy.

For full analysis see:
    https://lists.freebsd.org/pipermail/freebsd-python/2015-June/008420.html

A possible fix for this bug is available in the attached patch, which
effectively performs USES+=fortran, thereby invoking ports machinery that sets
the necessary linker flags.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201348-13>