Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
here is a snippet of the message including error information:
-----------------------------------------------------------
gcc -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I. -I../.././libiberty/../include -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic ../.././libiberty/pex-common.c -o pex-common.o
../.././libiberty/pex-common.c: In function `pex_input_file':
../.././libiberty/pex-common.c:390: error: `EINVAL' undeclared (first use in this function)
../.././libiberty/pex-common.c:390: error: (Each undeclared identifier is reported only once
../.././libiberty/pex-common.c:390: error: for each function it appears in.)
../.././libiberty/pex-common.c: In function `pex_input_pipe':
../.././libiberty/pex-common.c:453: error: `EINVAL' undeclared (first use in this function)
make[3]: *** [pex-common.o] error 1
make[3]: Leaving directory `/usr/src/gcc-4.4.0/host-i686-pc-linux-gnu/libiberty'
make[2]: *** [all-stage1-libiberty] error 2
make[2]: Leaving directory `/usr/src/gcc-4.4.0'
make[1]: *** [stage1-bubble] error 2
make[1]: Leaving directory `/usr/src/gcc-4.4.0'
make: *** [all] error 2
-----------------------------------------------------
RHEL 4, kernel 2.6.9-22
this happened when I trying upgrading the GCC
who know how to resolve this problem?
thank you very much!!
Did you try "yum update gcc" in a root-shell before compiling this from source? I mean, compiling from source can be a pain, while using the package manager of your distro is usually more straightforward (also in terms of dependencies between software packages).
If you have further questions (like, "what is a distro?", "package manager?" ...), I suggest refering to e.g. google (like here: google search for "redhat update package" <- that's where I found the "yum update <package>" command), and if you still don't manage to update your GCC, asking here.
../.././libiberty/pex-common.c:390: error: `EINVAL' undeclared (first use in this function)
../.././libiberty/pex-common.c:453: error: `EINVAL' undeclared (first use in this function)
It looks like you do not have the standard headers installed.
thanks you for your guide.
To use "yum",I have to make sure my PC is connected to the internet,which I can't.
because I access the internet via ADSL. and the ISP doesn't supply the Connecting software for Linux.
I assume you downloaded a source ball (a *.tar.gz file or similar). You can still use the package manager of Red Hat to install a package you download from somewhere, it just has to be in RPM format. I don't know a good source for RPM packages, though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.