Can't install gcc on Redhat 9 - Redhat

This is a discussion on Can't install gcc on Redhat 9 - Redhat ; Hi, I am failing to install the gcc compiler from a standard Redhat 9 distribution - and I am really stuck, needing your help badly. glibc-devel-2.3.2-11.9.i386.rpm asks for kernel-headers >= 2.2.1 and I don't know where to get it from. ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Can't install gcc on Redhat 9

  1. Can't install gcc on Redhat 9

    Hi,

    I am failing to install the gcc compiler from a standard Redhat 9
    distribution - and I am really stuck, needing your help badly.

    glibc-devel-2.3.2-11.9.i386.rpm asks for kernel-headers >= 2.2.1 and I
    don't know where to get it from.

    I need gcc for a tomcat servlet engine installation but I did not
    select development tools during the initial Redhat installation.

    The scenario:

    rpm -ivh binutils-2.13.90.0.18-9.i386.rpm
    rpm -ivh cpp-3.2.2-5.i386.rpm
    rpm -ivh glibc-devel-2.3.2-11.9.i386.rpm
    warning: glibc-devel-2.3.2-11.9.i386.rpm: V3 DSA signature: NOKEY, key
    ID db42a60e
    error: Failed dependencies:
    kernel-headers is needed by glibc-devel-2.3.2-11.9
    kernel-headers >= 2.2.1 is needed by glibc-devel-2.3.2-11.9

    I found no trace of a kernel-headers package in RH9, so I did:

    rpm -ivh --nodeps glibc-devel-2.3.2-11.9.i386.rpm
    rpm -ivh gcc-3.2.2-5.i386.rpm

    Later on when I run make while trying install jsvc for the tomcat 5.5
    servlet engine as described at
    http://jakarta.apache.org/tomcat/tom...doc/setup.html

    then I get errors and I suspect the --nodeps option in the rpm install
    of glibc-devel-2.3.2-11.9.i386.rpm is the initial cause for this:

    make -C native all
    make[1]: Entering directory `/usr/local/tomcat5/bin/jsvc-src/native'
    gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
    -I/usr/java/j2sdk1.4.2_07/inclu
    de -I/usr/java/j2sdk1.4.2_07/include/linux -Wall -Wstrict-prototypes
    -c jsvc-uni
    x.c -o jsvc-unix.o
    In file included from /usr/include/signal.h:313,
    from jsvc-unix.c:19:
    /usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file
    or directory
    In file included from jsvc-unix.c:25:
    /usr/include/sys/prctl.h:23:66: linux/prctl.h: No such file or
    directory
    In file included from jsvc-unix.c:26:
    /usr/include/sys/syscall.h:25:24: asm/unistd.h: No such file or
    directory
    jsvc-unix.c:28:30: linux/capability.h: No such file or directory
    jsvc-unix.c: In function `set_caps':
    jsvc-unix.c:118: storage size of `caphead' isn't known
    jsvc-unix.c:119: storage size of `cap' isn't known
    jsvc-unix.c:122: `_LINUX_CAPABILITY_VERSION' undeclared (first use in
    this funct
    ion)
    jsvc-unix.c:122: (Each undeclared identifier is reported only once
    jsvc-unix.c:122: for each function it appears in.)
    jsvc-unix.c:128: `__NR_capset' undeclared (first use in this function)
    jsvc-unix.c:118: warning: unused variable `caphead'
    jsvc-unix.c:119: warning: unused variable `cap'
    jsvc-unix.c: In function `linuxset_user_group':
    jsvc-unix.c:137: `CAP_NET_BIND_SERVICE' undeclared (first use in this
    function)
    jsvc-unix.c:137: `CAP_SETUID' undeclared (first use in this function)
    jsvc-unix.c:137: `CAP_SETGID' undeclared (first use in this function)
    jsvc-unix.c:141: `PR_SET_KEEPCAPS' undeclared (first use in this
    function)
    make[1]: *** [jsvc-unix.o] Error 1
    make[1]: Leaving directory `/usr/local/tomcat5/bin/jsvc-src/native'
    make: *** [native/all] Error 2

    Any help is highly appreciated.

    Bernard


  2. Re: Can't install gcc on Redhat 9

    [ comp.os.linux.redhat not a valid ng here - Followup-To -->
    comp.os.linux.setup ]

    In comp.os.linux.setup Bernard :
    > Hi,


    > I am failing to install the gcc compiler from a standard Redhat 9
    > distribution - and I am really stuck, needing your help badly.


    > glibc-devel-2.3.2-11.9.i386.rpm asks for kernel-headers >= 2.2.1 and I
    > don't know where to get it from.

    [..]

    > I found no trace of a kernel-headers package in RH9, so I did:


    > rpm -ivh --nodeps glibc-devel-2.3.2-11.9.i386.rpm

    ^^^^^^^^
    This is the point you shot yourself effectively in the foot.

    Try installing the *glibc-kernheaders* package from:
    http://download.fedoralegacy.org/redhat/9/os/i386/
    This should satisfy the needed deps.

    You might need other updates from there, RH 9 is already EOL
    since a year or so, it can't be suggested installing. Check out
    for a recent distro with patches available.

    --
    Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
    mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
    #bofh excuse 177: sticktion

+ Reply to Thread