Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 May 2014 01:07:26 +0200
From:      Datasmurf <datasmurf@mail.ru>
To:        freebsd-questions@freebsd.org
Subject:   Same named binaries in $PATH && build error
Message-ID:  <20140503010726.b63583bbe330ea61b27576b7@mail.ru>

next in thread | raw e-mail | index | archive | help
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









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