Same named binaries in $PATH && build error

Datasmurf datasmurf at mail.ru
Fri May 2 22:57:39 UTC 2014


Hello,

while building www/chromium on 

FreeBSD monolith03.lan 9.2-RELEASE-p5 

devel/binutils installs those binaries

        /usr/local/bin/ar
        /usr/local/bin/as
        /usr/local/bin/c++filt
        /usr/local/bin/gprof
        /usr/local/bin/ld
        /usr/local/bin/ld.bfd
        /usr/local/bin/ld.gold
        /usr/local/bin/nm
        /usr/local/bin/objcopy
        /usr/local/bin/objdump
        /usr/local/bin/ranlib
        /usr/local/bin/readelf
        /usr/local/bin/size
        /usr/local/bin/strings
        /usr/local/bin/strip

in /usr/bin are ar,as,c++filt etc. are the system binutils.

audio/alsa-lib

would not find libphyton2.7 with system /usr/bin/ld after 

Making all in simple
  CC       sbase.lo
  CCLD     smixer-sbase.la
  CC       ac97.lo
  CC       sbasedl.lo
  CCLD     smixer-ac97.la
  CC       hda.lo
  CCLD     smixer-hda.la
  CC       smixer_python_la-python.lo
  CCLD     smixer-python.la
/usr/bin/ld: cannot find -lpython2.7
*** [smixer-python.la] Error code 1

Stop
in /usr/ports/audio/alsa-lib/work/alsa-lib-1.0.27.2/modules/mixer/simple.
*** [all-recursive] Error code 1

Stop in /usr/ports/audio/alsa-lib/work/alsa-lib-1.0.27.2/modules/mixer.
*** [all-recursive] Error code 1

Stop in /usr/ports/audio/alsa-lib/work/alsa-lib-1.0.27.2/modules.
*** [all-recursive] Error code 1

Stop in /usr/ports/audio/alsa-lib/work/alsa-lib-1.0.27.2.
*** [do-build] Error code 1

Stop in /usr/ports/audio/alsa-lib.
*** [stage] Error code 1

Stop in /usr/ports/audio/alsa-lib.



after mv /usr/bin/ld /usr/bin/ld.bsd

The Port audio/alsa-lib continued to build without a error.

I wonder why there are 2 binaries on the system with the same name?
Why arent the system binutils are not renamed after installation of
port devel/binutils or those are named gld and gar etc.

Doesn't make much sense to me, and i am confused. 

What does freebsd-questions@ think?

best regards 

dan








More information about the freebsd-questions mailing list