Software :: Stdio.h - File Missing During GCC Compile
Mar 3, 2011
I have looked at the other threads and found nothing which pertains to my issue. I am using an older version of Debian 4.0 I cannot upgrade until I have a 2nd server running. I lost the 4.0 installation disks. During an apt-get install i did, I foolishly changed sources.list to other sources on the net which changed dependencies and removed needed packages, such as perlmagick, Crypt-SSLeay, aptitude, and possibly the glibc - ( my current glibc was changed to glic6). Since I have found my original 4.0 disk. restored the sources.list. ran an update. and restored many of the packages that were removed. (a big lesson to me I will never do that again)
Here is a simple program:
#include <stdio.h>
When I run a gcc or I use cc compile
I get this message: "stdio.h": No such file or directory found.
Yes I know I missing the file stdio.h. I have looked
in /usr/include /usr/lib nothing.
Apparently during my mistake the system installed the glibc6 and removed the "stdio.h" file and other dependencies. I would like to get back to where as was in terms of the glibc version I had. Aptitude currently shows the following packages that are available to me
Code:
DEB1:/etc# aptitude search glibc
v glibc-2.3.6-2 -
v glibc-2.3.6.ds1-1 -
p glibc-doc
- GNU C Library: Documentation
v glibc-pic
p libg++2.8.1.3-glibc2.2
GNU C++ extension library - runtime version
p libstdc++2.10-glibc2.2
- The GNU stdc++ library
DEB1:/etc#
The question is which one should I install, to get my "stdio.h" back again? Would I have to uninstall glibc6 first? Uninstalling glibc6 displays a big warning. Is there a way I can download just the "stdio.h" files?
I am trying to upgrade my NAS with anew toolchain, gcc-4.5.2. The NAS have been "hacked" fonz_plug, that contain a gcc version 4.1.3 with uClibc. I have download all needed tar files and done the following.My goal is to upgrade the gcc to 4.5.2 and replace the ucLibc on the system with a GNU libc.
# Pass one # # binutils ./configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --with-gmp=/ffp --with-mpfr=/ffp But when I try to compile the gcc with ../configure --prefix=/ffp --libdir=/ffp/lib --includedir=/ffp/include --enable-__cxa_atexit --with-float=soft --enable-languages=c,c++ --with-build-sysroot=/ffp --with-build-time-tools=/ffp/bin --with-system-zlib --enable-threads=posix --disable-bootstrap
I am trying to compile a memory map module cmem.ko from TI codec tools. This is for the DSPlink software development for the OMAP3530. I am compiling this on the host(Ubuntu). First error could not find cc1 and i re-installed gcc and added it to the path. That fixed that error but then I get to this:
cmem.c:38:19: error: stdio.h: No such file or directory cmem.c:39:20: error: unistd.h: No such file or directory cmem.c:40:22: error: sys/mman.h: No such file or directory
I tried compiling a simple Hello World with gcc but didn't have any luck. I got this message: Code: junk.c:1:19: error: stdio.h: No such file or directory gcc was installed and configured correctly at one point but I think I changed the the .bash_profile since then. I checked where stdio.h lives. The path is:
So I am new to linux and i upgraded my kernel to 4.3.3 and to add the bfq patch. When i enter the command make install I get the following Code:
Select allupdate-initramfs: Generating /boot/initrd.img-4.3.3 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-1.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-1.fw for module r8169
I am trying to compile Zabbix on Centos 5.4 and while tying to compile it with mysql and some other parameters it gets failed because missing components.
Quote:
I couldn't find any jabber-devel or jabber pckg in repo.
This may sound ridiculous, but after installing Debian 5 (from CD 1) in my laptop, ASUS UL80VT, it fails to detect the Ethernet device. The device is "Atheros AR8131 PCI-E Ethernet Controller". I guess the problem comes with the old kernel of version 5. I was intending to compile the latest kernel anyway. But the problem is is there any heads up i need to download the kernel and trying to compile it? Is there anyone who uses Debian on UL80VT. If there is, does it works okay?In short I want to compile the latest kernel, hoping it will fix the Ethernet device. There are installers available with the latest kernel. But I want to do it on my own.
I am using Fedora 12, and I recently downloaded the source of Empathy from the git repo. When I issue a ./configure on the console, I get the following output, please look at the last line:
[root@localhost empathy]# ./configure checking whether to enable maintainer-specific portions of Makefiles... yes checking for a BSD-compatible install... /usr/bin/install -c
I am trying to compile a kernel in the following directory:/usr/src/kernels/2.6.30.9-102.fc11.x86_64
Note I am not trying to build an rpm but just do a simple make. After configuring with make menuconfig I issue the make command and get the following error:
Code: [root@compaq 2.6.30.9-102.fc11.x86_64]# make CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 make[1]: *** No rule to make target `missing-syscalls'. Stop. make: *** [prepare0] Error 2
how to resolve this error? It seems to be fedora-centric.
I have a monitoring program ( GIT link to sourceforge ) which I'm trying to use to track when a child exits/dies/whatever. I'm calling fork(), then close for 0,1,2, and then opening /dev/null, monitored.stdout, and monitored.stderr as a replacement. I'm not sure if I've done something incorrect (perhaps I should use dup2 for explicit assignment?) but it appears that printf() messages are just being blackholed. I've tried setting the line buffering as a last ditch effort. On a different system, using code similar to the spawn_monitor() function, this appears to work fine, which makes me think I'm relying on some implementation specific detail.
Relevant function, for those who don't click links:
I am using Opensuse 11.2 on an HP Pavilion laptop. The internal wireless (Broadcom device) quit on me - It is no longer detected at boot so I assume it is dead. No problem since I have a D_Link USB adaptor (DWL-G132). To get it working however I need ndiswrapper. I then installed ndiswrapper 1.55 and the user interface supplied with Opensuse. Problem1- The interface says "The program 'kernel-headers' is missing on your system".
I have checked with Yast and the kernel-headers are installed. Problem2- I have downloaded ndiswrapper 1.55 from Sourceforge.net to attempt the traditional installation method. The 'make' command returns the following message: "Cannot find kernel version in /lib/modules/2.6.31.8-0.1-desktop/build, is it configured?."
I need to downgrade my firefox from 5 to 3.6 I downloade the tar.bz2 file but after I extracted and cd to the file I got these errors when trying to install code...
unable to compile a simple C++ programme (.cpp file), on compiling the file with gcc or g++ the following error is displayed, but the above command works in Redhat EL. the error message is:"fatal error: iostream.h: No such file or directorycompilation terminated."an anybody suggest to compile a C++ programme in Fedora 14.
Recently I've started to learn cpp language on linux,and now I run a cpp file using following commands. g++ -o xxx xxx.cpp./xxxIs there a way to make it one line command such as compile-and-run xxx.cpp?
[root@nisserver tmp]# rpmbuild --rebuild nmap-5.21-1.src.rpm Installing nmap-5.21-1.src.rpm warning: user fyodor does not exist - using root warning: group fyodor does not exist - using root warning: user fyodor does not exist - using root warning: group fyodor does not exist - using root Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.49535 .....
RPM build errors: user fyodor does not exist - using root group fyodor does not exist - using root user fyodor does not exist - using root group fyodor does not exist - using root Bad exit status from /var/tmp/rpm-tmp.73783 (%build)
What next step need to be taken to install the rpm file from the source file.
i trying to compile courier-imap-3.0.8 (no te latest version but that's a requirement) using gcc 4.4.5 (Debian 5) I ran:Quote:./configure --enable-unicode=iso-8859-1,utf-8And went Ok with the verification, but when ran Quote:makeI got:
Code: Compiling checkpassword.c checkpassword.c: In function 'authcheckpassword':
im trying to compile a file in ubuntu and it says i need libzmq. anyone could post a link or something so that i could install it i would be very happy.
I become successful to download kernel, compile it and run it.BUTWhen i modify tcp.c file or any other file in this /usr/src/linux/net/ipv4 location, (just modifying c files) i have to compile the complete kernel every time, which is very time consuming procedure.So Please help, How to compile that net/ipv4 package or etc.
im nirmal r ..i have installed ns2 in redhat 5.i have added an cc file to an tcl script and while compiling the make in terminal it shows me like this..(i have tried to enable the propertise but i con't)
i was trying to Compile my c++ program..cme across this problem....but my c programs are getting compilied without any problem.I am using fedora 14. Below is the way terminal reacted to my program..
gcc prog1.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory
i have just modify tcp.c file in/usr/src/linux/net/ ipv4 location.Now should i compile the complete kernel?if not then how to compile that net/ipv4 package or etc.
I am trying to replace just the kernel (no modules) for my default kernel on FC 11. I use the default .config file and just change a few things and then run the make command. After I replace the kernel and reboot the system the password comes up for the encrypted filesystem and it does not take my password for some reason. what I need to do to get this working?
Here any know how to compile the driver file manually?
For example i have been insert the Realtek Ethernet card in my customized kernel and kernel can't detect the card. I know the c file 8139too.c which going to use by the realtek Ethernet card.but i don't know to how to compile the file and make this as a kernel module..
I am new to the embedded domain.I am learning about cross compilation. Just i want to compile an application and an driver file for ARM platform. I have downloaded the toolchain binaries from [URL]..