Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

missing inttypes.h

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> missing inttypes.h Page: [1]
Login
Message << Older Topic   Newer Topic >>
missing inttypes.h - Apr. 7, '04, 3:31:41 PM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
While trying to port mailfilter from here: http://mailfilter.sourceforge.net/

I came across a stop - missing inttabs.h file.

the make output lokks like:
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include                 -I../sr
c                -DLOCALEDIR=\"/usr/local/share/locale\"  -I../intl   -D_ALL_SOU
RCE -I/usr/local/include  -D_ALL_SOURCE -MT md5c.o -MD -MP -MF ".deps/md5c.Tpo"
 -c -o md5c.o `test -f 'md5c.c' || echo './'`md5c.c;  then mv -f ".deps/md5c.Tpo
" ".deps/md5c.Po";  else rm -f ".deps/md5c.Tpo"; exit 1;  fi
In file included from md5c.c:26:
md5.h:30:22: inttypes.h: No such file or directory


I tried to install md5 package but that doesn't work

Is the inttabs.h included in any library package provided?
Post #: 1
RE: missing inttypes.h - Apr. 7, '04, 5:29:39 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The file "inttabs.h" is not a standard file.
There are many files found on various systems that will
not be found on other systems. Often when a bit of software
is being written the author(s) write to the platform they
are on and leave it at that. This 'mailfilter' sounds like
it fits that.

When you come across file such as this the thing to do is
edit the source code and just comment the "#include" out.
Then try to compile again. Sometimes things just work merrily
along after that. Other times warnings/errors will appear about
missing prototypes and/or macro definitions. At that point you
look in "/usr/include/*.h" and "/usr/include/*/*.h" to find a file
with these. Occationally you might need to look in "/usr/local/include"
too. Add the "#include" to the source file to have the header file(s)
included and then try to compile again.

The above will get a lot of porting done with a lot of applications.
Sometimes you will run into ones you can't find. At that point you need
to look at the code and see what is happening and why. You may discover
a conditional that should have been set for different code to be built.
You may find you need to write new code or stub/comment out this code.

The md5 package is a utility build using the libraries and headers
tha come with SFU. If 'mailfilter' is trying to build an 'md5' utility
perhaps there is an option to it's configure to not build it (and thus
you can use the already packaged one); or you might wack the Makefile
to skip it being built.

Regardless, the mailfilter author(s) haven't written portable code.
The porting process is to work around what they haven't done.

(in reply to cortez_)
Post #: 2
RE: missing inttypes.h - May 17, '06, 2:10:15 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
I realize a while later that these are the c99 specification header files.
Interix doesn't come with the c99 header files and related API's right now.

(in reply to Rodney)
Post #: 3
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> missing inttypes.h Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031