Hi Stephen,

I have successfully compiled your test program using gcc 3.4.2. on
Solaris 8.

My sys/task.h file has the version string:
#pragma ident   "@(#)task.h     1.1     00/02/14 SMI"

in it. Maybe you need an upgrade?

HTH

|\/|artin

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Stephen Ayotte
> Sent: 19 June 2007 15:29
> To: net-snmp-users@lists.sourceforge.net
> Subject: gcc-3.x fails on #include <sys/task.h> on Solaris 8, 
> 9, 10,gcc-2.95.3 succeeds
> 
> 
> Just a note for anyone having trouble building on these 
> platforms, a brief test program shows failure on this include 
> file (which is included for ucd-snmp, among others I'm sure). 
> Here's my test program: #include <sys/task.h>
> 
> int main(int argc, char** argv)
> {
>         return 0;
> }
> 
> Output from gcc-3.3.2:
> [EMAIL PROTECTED]> gcc3 test.c
> In file included from test.c:1:
> /usr/include/sys/task.h:59: error: parse error before "settaskid"
> /usr/include/sys/task.h:59: error: parse error before "uint_t"
> /usr/include/sys/task.h:60: error: parse error before 
> "gettaskid" [EMAIL PROTECTED]>
> 
> Output from gcc-2.95.3:
> [EMAIL PROTECTED]> gcc test.c
> [EMAIL PROTECTED]>
> (it succeeded)
> 
> I succeeded building all of net-snmp-5.4 using gcc-2.95.3 
> without further problems.
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and 
> take control of your XML. No limits. Just data. Click to get 
> it now. http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
> 


*************************************************************************************
The message is intended for the named addressee only and may not be disclosed 
to or used by anyone else, nor may it be copied in any way. 

The contents of this message and its attachments are confidential and may also 
be subject to legal privilege.  If you are not the named addressee and/or have 
received this message in error, please advise us by e-mailing [EMAIL PROTECTED] 
and delete the message and any attachments without retaining any copies. 

Internet communications are not secure and COLT does not accept responsibility 
for this message, its contents nor responsibility for any viruses. 

No contracts can be created or varied on behalf of COLT Telecommunications, its 
subsidiaries or affiliates ("COLT") and any other party by email Communications 
unless expressly agreed in writing with such other party.  

Please note that incoming emails will be automatically scanned to eliminate 
potential viruses and unsolicited promotional emails. For more information 
refer to www.colt.net or contact us on +44(0)20 7390 3900.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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