So I had a need to install Asterisk the other day on my laptop and doing the atypical:

./configure
make
make install

Gave me a whole bunch of suck

snmp/agent.c: In function ‘init_asterisk_mib’:
snmp/agent.c:835: error: ‘RONLY’ undeclared (first use in this function)
snmp/agent.c:835: error: (Each undeclared identifier is reported only once
snmp/agent.c:835: error: for each function it appears in.)
make[1]: *** [snmp/agent.o] Error 1
make[1]: *** Waiting for unfinished jobs....
   [LD] chan_unistim.o -> chan_unistim.so
make: *** [res] Error 2

Little bit of digging led to a bunch of solution thats didn’t seem to work, but after a little bit of trail and error I found a quick, and working solution, which I figured I would share

./configure --host=x86_64-darwin
make menuselect ( remove res_snmp under Resource Modules )
sudo make -j 4
sudo make install
sudo make samples

Worked for me, and I hope it helps someone else!

-John


johntdyer

John T Dyer