LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Missing C header for Fortune-Mod (https://www.linuxquestions.org/questions/slackware-14/missing-c-header-for-fortune-mod-220982/)

goofyheadedpunk 08-22-2004 02:48 PM

Missing C header for Fortune-Mod
 
Just as a diversion I decided to install fortune, and upon compile time I and error informing me that "recode.h: No such file or directory" in line 143 of fortune.c. That line is
Code:

#include        <recode.h>
From my meger experience with C and google searches it is my understanding that I'm missing the recode header in /usr/include/.

I couldn't find any references to it in the GNU C library but this page states that "... this header file is still fairly new in C standards, and likely does not exist everywhere," but it says nothing about how to obtain it. ( I realize that this page is part of a larger book, and I have skimmed through that. )

Am I correct in believing that I'm missing a header? If so, how do I obtain recode.h?

I apologize if this would have been better suited to the software forum, but I did not know if this was Slack specific or not. I'm guessing it's not, but I'm still not quite sure.

( If anyone happens to have a suggestion on materials about GNU headers that would be appreciated too. )

Tinkster 08-22-2004 03:18 PM

Re: Missing C header for Fortune-Mod
 
Quote:

Originally posted by goofyheadedpunk
Am I correct in believing that I'm missing a header? If so, how do I obtain recode.h?

I apologize if this would have been better suited to the software forum, but I did not know if this was Slack specific or not. I'm guessing it's not, but I'm still not quite sure.

( If anyone happens to have a suggestion on materials about GNU headers that would be appreciated too. )
But why install fortune from source when Slack comes
with it pre-packed? :)

http://freshmeat.net/search/?q=recod...&Go.x=0&Go.y=0


Cheers,
Tink

goofyheadedpunk 08-22-2004 04:12 PM

Quote:

But why install fortune from source when Slack comes
with it pre-packed? :)
Two reasons. The first is the main, and the second sounds nice. I installed from source because I was silly enough not to check and see if it came pre-packaged and also because when installing from source if something breaks I have to learn a little bit to unbreak it.

Like I said, the first one is the most true. Thanks for the link to the recode sources.

Quick question. After reading the man pages I'm still confused as to how to get fortune to output anything. For example, this
Code:

fortune -w /usr/share/games/fortunes/
I thought should have output a fortune from the non offensive list of fortunes, with a little bit of a wait added in.

What am I missing?

Tinkster 08-22-2004 04:22 PM

fortune
(all by itself) should be enough to get a non-offensive quote.
The last parameter isn't necessarily explained quite well in
the man page. You don't specify a path, but a) either the
name of a particular file or b) a keyword like all.


Cheers,
Tink

goofyheadedpunk 08-22-2004 04:24 PM

Just vanilla fortune doesn't give any output either. I tried that earlier and assumed that I needed parameters.

merchtemeagle 03-06-2005 06:33 PM

Did you manage to solve this issue? Having the same problem now.


All times are GMT -5. The time now is 11:50 AM.