Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running configure on Mac OS Catalina, fails on missing constants #101

Closed
briantmeyer opened this issue Apr 23, 2020 · 3 comments
Closed

Comments

@briantmeyer
Copy link

briantmeyer commented Apr 23, 2020

Using catalina 10.15.4 (19E287)
Installing net-snmp-5.8 ( the current release )

I got the following errors compiling.
/Users/brianmeyerdesign/agility/src/net-snmp-5.8/agent/mibgroup/mibII/tcp.c:343:21: error: use of undeclared identifier 'TCPTV_MIN'
ret_value = TCPTV_MIN / PR_SLOWHZ * 1000;
^
/Users/brianmeyerdesign/agility/src/net-snmp-5.8/agent/mibgroup/mibII/tcp.c:351:21: error: use of undeclared identifier 'TCPTV_REXMTMAX'
ret_value = TCPTV_REXMTMAX / PR_SLOWHZ * 1000;

I read someone noting that they didn't have a darwinXX.h file for their specific version of darwin, these seem to just include the previous file, so I duplicated darwin17.h, made a darwin18.h and a darwin19.h ( not really sure the darwin version ), adjusted each to just include the previous header file, doing that the code compiles.

You might want to do 20 an 21 so it deals with a few more versions, or solve this in some other way.

bvanassche added a commit to bvanassche/net-snmp that referenced this issue Apr 25, 2020
@bvanassche
Copy link
Contributor

A candidate fix has been checked in on the v5.8 and master branches. Please retest.

@briantmeyer
Copy link
Author

Seems to work, using my script as is didn't as its downloading from
https://gigenet.dl.sourceforge.net/project/net-snmp/net-snmp/5.8/net-snmp-5.8.tar.gz
I am assuming that isn't updated yet, the new files are not there.

But just going in to the git code repository here, downloading the master, and using that code instead works fine instead, compiles with no problems with my having to adjust any of the files.

Thank you.

@briantmeyer
Copy link
Author

5.8-patches, from the git hub repository also compiles without issues, I'd say this issues is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants