Thursday, June 14, 2018 6:40 AM > This won't work when cross compiling. That is an important use case, > and we should support it.
Will do the check like done for clock_adjtime user_flags() { # Needed for vasprintf(). printf " -D_GNU_SOURCE" # Get list of directories searched for header files. dirs=$(echo "" | ${CROSS_COMPILE}cpp -Wp,-v 2>&1 >/dev/null | grep ^" /") # Look for clock_adjtime(). ... # Look for posix_spawn(). ... # Look for libsnmp presence for d in $dirs; do files=$(find $d -type f -name net-snmp-agent-includes.h) for f in $files; do if grep -q NET_SNMP_AGENT_INCLUDES_H $f; then printf " `net-snmp-config --cflags`" break 2 fi done done } Same goes for ldlibs.sh and optprg.sh > Or is net-snmp-config a shell script (or similar) that delivers > correct paths when cross compiling? Im not that familiar with this cross compiling thing. I had the config script net-snmp-config tried in a cross-compiling environment and it did add extra path information. If all of it is correct, I cannot say. What I was told by the guy with the envir was that if the lib and script are installed in the cross-compiling envir, it would probably work. A suggestion from the guy with the envir was to build a dummy program including the lib and neglect build errors (if any) from that build. If it succeeds, build in snmp, otherwise skip it. I have not found anything that points to that netsnmp provide pkg-config files. Neither google nor search in lib has given me anything that point in that direction. Will you be able to try this cross compiling and see if it works with the updated version (I can send in a updated version if that is the case)? /Anders ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel