Bug 209073 - comms/gr-osmosdr errors unless LD_PRELOAD is used with GCC
Summary: comms/gr-osmosdr errors unless LD_PRELOAD is used with GCC
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Ganael LAPLANCHE
Depends on:
Reported: 2016-04-26 15:35 UTC by Zane C. Bowers-Hadley
Modified: 2016-04-27 21:26 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (martymac)


Note You need to log in before you can comment on or make changes to this bug.
Description Zane C. Bowers-Hadley 2016-04-26 15:35:15 UTC
[kitsune@vixen42]/home/kitsune% setenv LD_PRELOAD /usr/local/lib/gcc48/libgcc_s.so
[kitsune@vixen42]/home/kitsune% osmocom_fft

gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.8
built-in source types: file fcd rtl rtl_tcp

FATAL: No supported devices found to pick from.

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.

Source has no sample rates (wrong device arguments?).
Exit 1
[kitsune@vixen42]/home/kitsune% unsetenv LD_PRELOAD
[kitsune@vixen42]/home/kitsune% osmocom_fft
Traceback (most recent call last):
  File "/usr/local/bin/osmocom_fft", line 34, in <module>
    from gnuradio import blocks
  File "/usr/local/lib/python2.7/site-packages/gnuradio/blocks/__init__.py", line 34, in <module>
    from stream_to_vector_decimator import *
  File "/usr/local/lib/python2.7/site-packages/gnuradio/blocks/stream_to_vector_decimator.py", line 23, in <module>
    from gnuradio import gr
  File "/usr/local/lib/python2.7/site-packages/gnuradio/gr/__init__.py", line 44, in <module>
    from top_block import *
  File "/usr/local/lib/python2.7/site-packages/gnuradio/gr/top_block.py", line 30, in <module>
    from hier_block2 import hier_block2
  File "/usr/local/lib/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 25, in <module>
    import pmt
  File "/usr/local/lib/python2.7/site-packages/pmt/__init__.py", line 58, in <module>
    from pmt_to_python import pmt_to_python as to_python
  File "/usr/local/lib/python2.7/site-packages/pmt/pmt_to_python.py", line 22, in <module>
    import numpy
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 180, in <module>
    from . import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/usr/local/lib/python2.7/site-packages/numpy/core/__init__.py", line 14, in <module>
    from . import multiarray
ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found
Exit 1
Comment 1 Ganael LAPLANCHE freebsd_committer 2016-04-27 21:23:33 UTC

This bug is similar to bug #201348 ; as explained, adding USES=fortran adds the correct rpath and fixes the runtime problem.

Best regards,

Comment 2 commit-hook freebsd_committer 2016-04-27 21:25:59 UTC
A commit references this bug:

Author: martymac
Date: Wed Apr 27 21:25:13 UTC 2016
New revision: 414135
URL: https://svnweb.freebsd.org/changeset/ports/414135

  Fix runtime error due to missing rpath

  PR:		209073
  Submitted by:	Zane C. Bowers-Hadley <vvelox@vvelox.net>

Comment 3 Ganael LAPLANCHE freebsd_committer 2016-04-27 21:26:57 UTC
Fixed, thanks for reporting that bug!