LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2008, 05:09 PM   #1
Thuyenv Vu
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Unhappy Looking for header file #include <fonticon.h>! Help, URGENT!


I am trying to compile a C program that used to work on a UX machine, on my Linux machine and got a problem with the header file fonticon.h. The C file has a line:

#include <fonticon.h>

error when compiled:

fonticon.h: No such file or directory

Can you one tell me what I have to do!? I have to search around on the internet and on the site yolinux.com with on luck!

Thanks,
Thuyen
 
Old 12-10-2008, 01:46 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,500

Rep: Reputation: 91
Do you have access to the original machine?

If you can, an approach might be to search that system and copy the .h file off it to yours. Put the file somewhere where it is accessible to your compiler and try compiling the program again.

However, often such .h files contain functions that are actually defined in some library you have to link at compile time. So you'll probably need something like fonticon.a or fonticon.so in your /usr/lib or /usr/local/lib to get the program to compile. This can be a problem since it is unlikely that you'll just be able to copy the library file from the other machine, and have it work on a recent linux kernel due to different binary formats for the two systems. You'll need to find the source somehow and compile the library on linux, then link it against your program with the fonticon.h file accessible.

You'll probable need more information about the program you are trying to port (such as a list of dependencies it requires to compile) before you'll be able to start solving this problem. Just try it - get the file off the other system, make it accessible to the compiler on yours, and if the program compiles, good. But most likely you'll just get a host of other errors, if the fonticon.h file is, in fact (and as I strongly suspect) a library link header.
 
Old 12-10-2008, 03:10 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Originally Posted by rylan76 View Post
Do you have access to the original machine?

If you can, an approach might be to search that system and copy the .h file off it to yours. Put the file somewhere where it is accessible to your compiler and try compiling the program again.

However, often such .h files contain functions that are actually defined in some library you have to link at compile time. So you'll probably need something like fonticon.a or fonticon.so in your /usr/lib or /usr/local/lib to get the program to compile. This can be a problem since it is unlikely that you'll just be able to copy the library file from the other machine, and have it work on a recent linux kernel due to different binary formats for the two systems. You'll need to find the source somehow and compile the library on linux, then link it against your program with the fonticon.h file accessible.

You'll probable need more information about the program you are trying to port (such as a list of dependencies it requires to compile) before you'll be able to start solving this problem. Just try it - get the file off the other system, make it accessible to the compiler on yours, and if the program compiles, good. But most likely you'll just get a host of other errors, if the fonticon.h file is, in fact (and as I strongly suspect) a library link header.
Wrong!

Check in /usr/src/your_current_running_kernel/include/linux.

This is where you can view available kernel headers. I have both 2.6.22 and 2.6.26 kernels in my lappy and did not see any header by that name, only font.h. Chances are it does not exist in recent kernels, may never even existed in the Linux kernel.
I have had such errors with a missing ioctl32.h file that is not part of the Linux kernel anymore. I saved a copy of it by re-installing an older kernel that had it, now when I compile the drivers that require it, I copy it into the include/linux directory of the new kernel and it does the job.
 
Old 12-11-2008, 12:02 PM   #4
Thuyenv Vu
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Smile Found solution

Thanks for all the responses. I was able to ask my sysadmin to install the header file fonticon.h on my Linux machine. So, everything is fine now. Now you all know that there is a Linux version of that file.

Thuyen
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant include libipq.h header file rohit83.ken Programming 3 04-04-2008 01:53 AM
unable to include header file.. nick021 Programming 2 05-05-2006 03:11 PM
header include path KDE4me Linux - Newbie 6 01-06-2005 06:17 AM
Clarifiacation on header file "/usr/include/a.out.h" swathisat Linux - Software 0 09-05-2003 12:12 AM
need perl fuction like c #include statement for header file mrtwice Programming 5 06-19-2003 02:42 PM


All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration