rings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -pipe -fforce-addr -fmove-all-movables -mfpmath=sse,387 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o value.lo `test -f 'value.cpp' || echo './'`value.cpp In file included from /usr/include/net-snmp/utilities.h:39, from /usr/include/net-snmp/net-snmp-includes.h:68, from value_p.h:24, from value.cpp:22: /usr/include/net-snmp/library/system.h:139: error: declaration of C function `size_t strlcpy(char*, const char*, size_t)' conflicts with ../../../config.h:293: error: previous declaration `long unsigned int strlcpy(char*, const char*, long unsigned int)' here make[4]: *** [value.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/portage/ksim-3.4.0_beta1/work/ksim-3.4.0_beta1/ksim/monitors/snmp' make[3]: *** [all-recursive] Error 1 configure: checking net-snmp/library/snmp_api.h presence... yes configure: WARNING: net-snmp/library/snmp_api.h: present but cannot be compiled configure: WARNING: net-snmp/library/snmp_api.h: check for missing prerequisite headers? configure: WARNING: net-snmp/library/snmp_api.h: see the Autoconf documentation configure: WARNING: net-snmp/library/snmp_api.h: section "Present But Cannot Be Compiled" configure: WARNING: net-snmp/library/snmp_api.h: proceeding with the preprocessor's result configure: WARNING: net-snmp/library/snmp_api.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## checking for net-snmp/library/snmp_api.h... yes
We just need to apply to ksim the fix that went into kdeutils (bug 78071)
Thanks carlo and greg_g. Now it should be fixed. But I've got another question: If you look at kdeutils-x.x.x/monitors/snmp/configure.in.in you'll see that this line is used: AC_SUBST( LIBSNMP, "-lnetsnmp -lcrypto" ) So this makes me think that if we don't have libcrypto (openssl) installed the linking will fails. I don't think this is needed as we can compile net-snmp also with the USE=-ssl that will disable it. I think that we can remove "-lcrypto" from that configure.in.in line but this will need some testing with the various combinations of useflags.
It seems that test (link to netsnmp with "-lnetsnmp -lcrypto") is only run if the previous one (link to netsnmp with "-lnetsnmp") failed, so it should not be a problem...
I don't know what I read from that file. But I know that I have to use the computer only after 2 hours that I'm awake. :P