pkgsrc-Bulk archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc-current Linux 2.6.24-1-686/i686 bulk build results 20081201.1911



 >> Linux 2.6.24-1-686/i686
 >> 
 >>   
 >> http://mova.org/~cheusov/pub/pkgsrc-distbb/Linux/current/logs//20081201.1911/META/report.html

> Can someone with a Linux system please tell me what I have to do to
> make this build.  It seems like the problem is in the system includes
> but that seems unlikely.  Am I #defining something that causes this
> problem or what?

The problem is again caused by -ansi option passed to gcc.  With this
option u_char used in arpa/nameser.h seems not defined.

This is either because NetBSD headers are not strict enough or because
GNU libc headers are too restrictive. I have no ISO/ANSI C documents
to check.

More explanations are below

     /usr/include/arpa/nameser.h:
     ...
     56 #include <sys/param.h>
     57 #if (!defined(BSD)) || (BSD < 199306)
     58 # include <sys/bitypes.h>
     59 #else
     60 # include <sys/types.h>
     61 #endif
     62 #include <sys/cdefs.h>


0 ~>echo '#include <sys/bitypes.h>' | cpp -D__STRICT_ANSI__ | grep u_char
typedef unsigned char __u_char;

0 0 0 ~>echo '#include <sys/types.h>' | cpp -D__STRICT_ANSI__ | grep u_char
typedef unsigned char __u_char;

0 0 0 ~>echo '#include <sys/types.h>' | cpp | grep u_char
typedef unsigned char __u_char;
typedef __u_char u_char;

0 0 0 ~>echo '#include <sys/bitypes.h>' | cpp | grep u_char
typedef unsigned char __u_char;
typedef __u_char u_char;

0 0 0 ~>

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index