On 10 August 2010 22:12, Ernie Lacson <elac...@successfactors.com> wrote:
> While running: make test, I get the following error.

> In file included from /usr/include/kvm.h:14,
>                  from kernel.h:11,
>                  from snmp_vars.c:143:
> /usr/include/sys/proc.h:202: error: syntax error before "p_t1_lgrpid"
> /usr/include/sys/proc.h:203: error: syntax error before "p_tr_lgrpid"
> /usr/include/sys/proc.h:337: error: syntax error before '}' token
>
> In file included from kernel.h:11,
>                  from snmp_vars.c:143:
> /usr/include/kvm.h:44: error: syntax error before '*' token
> /usr/include/kvm.h:45: error: syntax error before '*' token
> /usr/include/kvm.h:48: error: syntax error before "proc_t"


We've had this problem reported a couple of times over the last year.
But neither of the people involved came back with the requested
information to help track down the problem.

(Quoting Thomas from those earlier reports)

   What exact configure options did you use?
   What gcc version and package are you running?
   What's the value of HAVE_KVM_H and HAVE_SYS_PROC_H
       in include/net-snmp/net-snmp-config.h in the build dir after
running configure?
   Do you see similar errors wrt. kvm.h and sys/proc.h in config.log?



My questions:
   What do lines 202 & 203 of  /usr/include/sys/proc.h look like?
If they refer to a type 'lgrp_id_t',  does this appear anywhere in
the header file /usr/include/sys/types.h?

As a quick-n-dirty test, try tweaking the sys/proc.h header file
to remove the word "volatile" from lines 202 & 203, and re-compile.
Does that make any difference?


Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to