LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make headers_install deleted header files (https://www.linuxquestions.org/questions/linux-newbie-8/make-headers_install-deleted-header-files-944363/)

ma1 05-11-2012 02:58 AM

make headers_install deleted header files
 
Hi All,

I am working on a user-space application. The application build successfully before
make headers_install INSTALL_HDR_PATH=/usr
Now my application fails during build.

The command installed the headers, but then automatically deleted
/usr/include/*.h

Now i am stuck in the middle of nowhere.

Can anyone tell me how to fix this issue?
Can i cleanup the mess created by make headers_install INSTALL_HDR_PATH=/usr

business_kid 05-11-2012 04:00 AM

That's very strange.


check /usr/include (ls /usr/include), and check for directories like asm-generic/ & linux/ in /usr. If /usr/include/*.h is gone, restore a backup or reinstall. You won't build much without header files, and I gather you are building stuff.

ma1 05-11-2012 04:57 AM

Quote:

# ls /usr/include/
arm-linux-gnueabi asm-generic drm mtd netash neteconet netiucv netrose python2.6 rpc sound xen
arpa c++ linux nautilus-sendto netatalk netinet netpacket nfs python2.7 rpcsvc video xfce4
asm dbus-1.0 mm net netax25 netipx netrom protocols rdma scsi X11 xorg
This is all i have in /usr/include/

How can i restore a backup or reinstall

ma1 05-11-2012 01:39 PM

Problem Solved.

The correct command to export kernel headers for user-space application is below

make headers_install INSTALL_HDR_PATH=/usr/include

I have given /usr instead of /usr/include

I recovered the deleted files in /usr/include by reinstalling the libc-dev using the following command

apt-get install lib6-dev --reinstall

business_kid, Thanks for your time and help.


All times are GMT -5. The time now is 02:40 PM.