On Thu, 2002-10-17 at 13:57, Nathan . wrote:
> Hello All,
> 
> I'm not sure if this is the right place for me to post my problem. If not 
> then apologies and please direct me to appropriate mailing list. Ok now the 
> problem.
> 
It is not, this list is for cooker, to prepare the next Mandrake
version, and 8.1 is irrelevant here. The beginners, expert or gcc
mailing lists might be more appropriate:

http://www.mandrakelinux.com/en/flists.php3

http://gcc.gnu.org/onlinedocs/gcc/Service.html#Service


> #1. I am porting our existing application from solaris to linux using 
> mandrake 8.1.
> Somehow I am still compiling the code on madrake using g++ and it has been 
> complaining about quite a few missing files which are present in 
> /usr/include.
> Not only are there are missing files, there are files with different 
> function signatures.
> 
> We've used those functions in our existing application. I could probably fix 
> those calls to the ones on mandrake, but what do i with files which are 
> missing on mandrake.
> e.g. /usr/include/sys/systeminfo.h , ttold.h etc. These are standard headers 
> from AT&T or SGI etc. I'm not sure what to do.
> 
> Why are these files aren't included on mandrake?
> 
/usr/include/sys/sysinfo.h is in the glibc-devel rpm. ttold.h is
apparently not a standard linux header (obsolete?). That's what
'porting' is, isn't it? Linux is different from HP-UX, BSD or Solaris.
By the way, you may want to install Mandrake9.0 to get gcc-3.2. 

> 
> #2. Is it correct to leave a space in declaring args to following function. 
> This has been cut paste from  file  /usr/include/netdb.h.
> Quite surprisingly there is no compilation error but please explain me this 
> novel syntax. All these lines have a space ..looks a space if not some 
> invisible character. plz expalin this anomaly.
> 
> ======= from /usr/include/netdb.h ===================
> extern int gethostbyname_r (__const char *__restrict __name,   <<<<see this 
> line
>                             struct hostent *__restrict __result_buf,     
> <<<<see this line
>                             char *__restrict __buf, size_t __buflen,
>                             struct hostent **__restrict __result,      
> <<<<see this line
>                             int *__restrict __h_errnop) __THROW;
> 
> ==================================================
> 
>
I think __restrict__ is a C99 feature for restricted pointer, to be sure
__name points to an unaliased char. Not an expert, someone may have a
better explanation.
 
=o=
kk1

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to