FAQ:Compiling 09

From Net-SNMP Wiki

Jump to: navigation, search

Why does 'make test' complain about a pid file?

Typically it says something like:

 cat:  cannot open /tmp/snmp-test-1-8694/*pid*

It's trying to tell you the port is blocked - typically because another copy of the agent is still running, left over from from a previous testing run.

If you type 'ps -ef' you should notice an orphaned process like:

 snmpd -d -r -U -P /tmp/snmp-test-5-27295/snmpd.pid...

Kill this process.

This could be happening for several reasons including:

  1. You are trying to do concurrent runs of 'make test'.
  2. On a slow machine, the agent might be taking too long to start up. Try changing the value of the variable SNMP_SLEEP in testing/RUNTESTS from 1 to something higher - say 3 or 5.
   FAQ:Compiling
   
  1. How do I compile with 'cc' instead of 'gcc'?
  2. The compilation is complaining about missing libraries. Why?
  3. I'm getting an error "autoheader: not found" - what's wrong?
  4. How can I reduce the memory footprint?
  5. How can I reduce the installation footprint or speed up compilation?
  6. How can I compile the project to use static linking?
  7. Why is the project workspace empty under Visual C++?
  8. Why does 'make test' skip five tests?
  9. Why does 'make test' complain about a pid file?
Personal tools