I am using Ubuntu 11.04 with PGroup C/C++ Workstation 11.7. It would not compile because it could not find the errno.h file include file. In the previous versions of Ubuntu that file was in
/usr/include/asm/errno.h
but it 11.04 it is in
/usr/include/generic-asm/errno.h
once the compiler finds the file then everything is okay. But it must find the file.
I believe that this can be corrected using a softlink. But I am unsure of the syntax.
I am using Ubuntu 11.04 with PGroup C/C++ Workstation 11.7. It would not compile because it could not find the errno.h file include file. In the previous versions of Ubuntu that file was in
/usr/include/asm/errno.h
but it 11.04 it is in
/usr/include/generic-asm/errno.h
I almost lost all info on my harddrive after a fualty Valgrind install. But everything seems to be back to normal now. I do have an issue with this softlink, however. The directory asm-generic does exist and in it is the errno.h file. This causes an error whenever, I run a Prgoup c program that uses the errno.h header file. It looks for it in /usr/include/asm directory which of course is not there. The asm directory does not even exist.
When ever I run the command
ln -s /usr/include/asm-generic /usr/include/asm
nothing happens. It says the file asm exists and stops. Now the file exists in reverse video with a link to asm-generic as shown:
/usr/include/asm -> /usr/include/asm-generic
Now this is a link, but I believe it is in the wrong direction.
When I try the command in the /usr/include/ directory
mkdir asm, nothing happens.
The output states that asm is a file thus no directory is created.
So I am stuck with a reverse link
/usr/include/asm -> /usr/include/asm-generic
and I am unable to create a directory - asm. I also cannot create the correct link
/usr/include/asm-generic -> /usr/inlcude/asm
I am reluctant to delete this link because I believe that it might remove a needed Ubuntu file.
So what do I do.
The problem as stated at the begining of this thread exists again with the new backwards link as I stated above.