Find the answer to your Linux question:
Results 1 to 5 of 5
I'm running unsupported Mandrake 9.1 and I need to update some dependencies for the newer programs I want to install. I don't have any experience installing them manually but I ...
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    20

    Need help installing gcc-3.2 and glibc-2.4

    I'm running unsupported Mandrake 9.1 and I need to update some dependencies for the newer programs I want to install. I don't have any experience installing them manually but I believe I've gotten pretty far. I attempted to compile glibc-2.4 from Index of /gnu/glibc following the INSTALL instructions in the package and found that I needed gcc-3.2 in order to do compile glibc-2.4

    I downloaded gcc-3.2 from ftp://ftp.gnu.org/pub/gnu/gcc/ and began following the instructions from INSTALL. Source files are in /usr/local/src/gnu/gcc-3.2/ and I'm running commands from /usr/local/src/gnu/gcc-build/ so the building takes place in a separate directory as suggested. ../gcc-3.2/configure worked and so I tried running make bootstrap, but after a lot of compiler output I ended up with these errors:

    make bootstrap
    Code:
    ./genattrtab ../../gcc-3.2/gcc/config/i386/i386.md > tmp-attrtab.c
    make[2]: *** [s-attrtab] Error 139
    make[2]: Leaving directory `/usr/local/src/gnu/gcc-build/gcc'
    make[1]: *** [stage2_build] Error 2
    make[1]: Leaving directory `/usr/local/src/gnu/gcc-build/gcc'
    make: *** [bootstrap] Error 2
    So I tried just running make and after a lot of compiler output ended up with these errors:

    make
    Code:
    ../../gcc-3.2/gcc/java/decl.c: In function `check_local_unnamed_variable':
    ../../gcc-3.2/gcc/java/decl.c:187: internal error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:https://qa.mandrakesoft.com/> for instructions.
    make[1]: *** [java/decl.o] Error 1
    make[1]: Leaving directory `/usr/local/src/gnu/gcc-build/gcc'
    make: *** [all-gcc] Error 2
    I'm willing to do whatever it takes but I'm at a loss about what these errors mean and what I have to do to correct them. What can I do to ensure that I am compiling gcc-3.2 properly?

  2. #2
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    I've never used Mandrake but can't you use RPM's since it's based on Red Hat? If this is so it'll make life MUCH easier than compiling from source. Here is a list of RPM for the file you are looking for:

    glibc-2.4-4.i686.rpm - FTP Mirror Search (Downloads)

    If you are newer to linux or have never compiled from source there is no reason to for most bigger distros (unless you want some new software that isn't very popular) or if you want the latest and greatest alpha releases sometimes you'll have to do source, otherwise, you should be able to avoid it
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    20
    My last distro was Gentoo so RPMs seems like a great replacement for Portage, which always did all the hard work for me. However, I've had quite a lot of trouble getting RPMs to work so far. I tried to install glibc-2.4 from an RPM before and it stopped with an error and kinda broke my system (although that was in part because of the cold reboot I had to do after that.) Since then I get the message "Everything already installed" when I start it using a file browser. So that's why I've resorted to building it myself for the time being.

  4. #4
    Just Joined!
    Join Date
    Oct 2008
    Posts
    20
    I guess I'm just having trouble getting RPM to work for me. When I start one using Nautilus I get a "Everything already installed" message. If I start glibc-2.4-4.i686.rpm using a terminal I get dependency errors.

    Code:
    # rpm -Uv glibc-2.4-4.i686.rpm
    error: failed dependencies:
            glibc-common = 2.4-4 is needed by glibc-2.4-4
            gdb < 6.3.0.0-1.111 conflicts with glibc-2.4-4
            shadow-utils < 2:4.0.3-20 conflicts with glibc-2.4-4
            kernel < 2.6.9 conflicts with glibc-2.4-4
            glibc = 2.3.1 is needed by locales-2.3.1.4-6mdk
            glibc = 2.3.1 is needed by locales-2.3.1.4-6mdk
            glibc = 2.3.1-10mdk is needed by glibc-devel-2.3.1-10mdk
    I thought RPM was supposed to download packages and dependencies automatically, but I don't know much about RPM. Am I trying it wrong?

  5. #5
    Just Joined!
    Join Date
    Oct 2008
    Posts
    20
    As far as compiling gcc and glibc from source, I'll try to find advice in gnu forums or dev forums here. In the meantime, I'll read up on RPM to see if I can learn to use it correctly. I'd really like to use programs that depend on the latest version of glib.

Posting Permissions

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