I'd say that this is a bug in CentOS resolv.h. Each include file should make sure to have all it depends on for types etc defined by including the required include files.
The C7 resolv.h seem to not do that... On 6/4/19 12:18 PM, Joachim Hein wrote: > Hi, > > i got a libsoup easyconfig from a member of this group and when trying > to build it, I hit: > > > In file included from > /sw/easybuild/software/Compiler/GCCcore/7.3.0/GLib/2.54.3/include/glib-2.0/gio/gnetworking.h:44:0, > from ../libsoup-2.65.2/libsoup/soup-address.c:14: > /usr/include/resolv.h:75:15: error: unknown type name ‘u_char’ > const u_char **__query, > ^~~~~~ > /usr/include/resolv.h:77:9: error: unknown type name ‘u_char’; did you > mean ‘guchar’? > u_char *__ans, > ^~~~~~ > guchar > /usr/include/resolv.h:82:15: error: unknown type name ‘u_char’ > const u_char *__query, > ^~~~~~ > /usr/include/resolv.h:84:9: error: unknown type name ‘u_char’; did you > mean ‘guchar’? > u_char *__ans, > ^~~~~~ > guchar > > When using google, I found a few references to this kind of issues when > working on libsoup with easybuild. So I am wondering whether this is a > reasonable common issue, but unfortunately I couldn’t get any references > on how to fix the issue. Any pointers appreciated. > > We are using lentos 7.6 > > Thanks in advance for reading. > > Best wishes > Joachim -- Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden Internet: [email protected] Phone: +46 90 7866134 Fax: +46 90-580 14 Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se

