Re: Pthread Creation
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 25/06/07, Rajesh Balasubramanian <[email protected]> wrote: > I would like to create a separate pthread in net-snmp due to my need. > But I am getting the following error, have the statement pthread_create in > snmpd.c > > net-snmp-5.2.3/agent/snmpd.c:1034: undefined reference to `pthread_create' > collect2: ld returned 1 exit status You probably need to add '-lpthread' to the linking command. I trust that all of the SNMP processing (Net-SNMP library calls, etc) is contained within a single thread, and that you're just using this separate thread for your MIB-specific processing. Remember that the Net-SNMP agent is not designed for threaded operation. Dave ------------------------------------------------------------------------- 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users