Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2001
    Posts
    161

    rebuilding usr/bin/ld

    i am running freebsd 5.1 and i deleted my ld file.

    i was given these instructions to rebuild ld

    cd /usr/src/gnu/usr.bin/binutils/ld/
    make install clean
    make install clean

    but i don't have "/usr/src/gnu/usr.bin/binutils/ld/"

    "/usr/src/gnu/usr.bin/binutils/ld/: No such file or directory."

    any other way of rebuilding usr/bin/ld?

  2. #2
    Join Date
    Apr 2001
    Location
    Pittsburgh, PA
    Posts
    1,304
    You'll need to run /stand/sysinstall and install the source packages to get that. BUT, "ld" is the linker, so depending on how it's designed, it might not self-build. You might want to look for a binary package in sysinstall, or put up a post asking a friendly person to send you the binary in question.

    Tricky situation there.

    Kevin

  3. #3
    Join Date
    Oct 2001
    Posts
    161
    it won't let me get the sources because i have 5.1... will the upgrade link in /stand/sysinstall upgrade me to 5.2 or do i run some type of cvs update

  4. #4
    Join Date
    Apr 2001
    Location
    Pittsburgh, PA
    Posts
    1,304
    5.1 is old enough that the sources probably aren't available on most mirror sites. You might be able to use 'ld' from 5.2, but who knows. At this point you might be best off building a new 5.4 system, and mounting the old drive as secondary, then moving your data onto it. It'll be tough to get a clean upgrade without a 'ld' binary.

    CVSup would get you sources, but they would be 5.4.

    OK, I meant 5.3 - 5.4 isn't out yet, but it's due in 12 days. My brain is in a time warp.

    Kevin

  5. #5
    Join Date
    Oct 2001
    Posts
    161
    do you or anyone know an ftp with 5.1 sources?

  6. #6
    Join Date
    Jun 2000
    Location
    Washington, USA
    Posts
    5,991
    I don't know of anyone with 5.1 sources. If you don't have the sources on CD, you are probably best off upgrading to 5.4 or 5.3.

  7. #7
    Join Date
    Oct 2001
    Posts
    161
    but i thought you said the upgrade won't work very well if ld is corrupted?

    if anyone has a 5.1 version of /usr/src/gnu/usr.bin/binutils/ld/ that would also solve things.

    anyone who has this, please email it to.

    learning at gmail.com

  8. #8
    Join Date
    Oct 2004
    Posts
    104
    can you build ld without ld?

    you could spend 15 bucks and get a cd http://www.bsdmall.com/fr51pr.html

  9. #9
    Join Date
    Jun 2000
    Location
    Washington, USA
    Posts
    5,991
    I suspect you can rebuild the world without ld. The build system is self-hosted, so it shouldn't matter.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •