scli is an SNMP Command Line Interface
Created attachment 44056 [details] scli-0.2.12.ebuild
Gudleik, there's a few errors in your ebuild that must be fixed before we accept this: - the header. - the IUSE. - use emake install instead of einstall if possible. - there are missing/incomplete dependencies. thank you.
i've updated the ebuild and fixed header,IUSE and the dependencies. "emake install" doesn't work (access violations due to sandbox), so i had to stick with einstall.
Created attachment 49683 [details, diff] Updated ebuild
Gudleik, thanks for the updates. I've also added support for --enable-dmalloc via USE=debug, in addition to fixing a few compiler warnings. Not sure if your ebuild worked for you, but I ended up having to add -I/usr/include/libxml2 to the includes to get it to build properly. Also, the reason "make install" doesn't work is because you forgot to set DESTDIR. It should be make DESTDIR="${D}" install.
hm, strange. I've used the ebuild on several computers with very different setups, and I never had to modify the source. The scli ./configure script uses xml2-config to determine where libxml2 is installed: ; fgrep xml config.log configure:1510: checking for xml2-config configure:1545: checking for libxml - version >= 2.0.0 configure:1647: gcc -o conftest -g -O2 -I/usr/include/libxml2 conftest.c -L/usr/lib -lxml2 -lz -lpthread -lm 1>&5
This is w/o adding -I/usr/include/libxml2. I've gotten this on two different boxes (all ~x86). It might not occur on stable for some reason (if that's what you're running). In file included from vendors.c:23: scli.h:49:30: libxml/xmlmemory.h: No such file or directory scli.h:50:25: libxml/tree.h: No such file or directory In file included from vendors.c:23: scli.h:191: error: parse error before "xmlDocPtr" scli.h:191: warning: no semicolon at end of struct or union scli.h:192: warning: type defaults to `int' in declaration of `xml_node' scli.h:192: warning: data definition has no type or storage class scli.h:202: error: parse error before '}' token scli.h:463: error: parse error before "node" scli.h:467: error: parse error before "node" scli.h:471: error: parse error before "xml_new_child" scli.h:471: error: parse error before "parent" scli.h:472: warning: type defaults to `int' in declaration of `xml_new_child' scli.h:472: warning: data definition has no type or storage class make[2]: *** [vendors.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from scli.c:26: scli.h:49:30: libxml/xmlmemory.h: No such file or directory scli.h:50:25: libxml/tree.h: No such file or directory In file included from scli.c:26: scli.h:191: error: parse error before "xmlDocPtr" scli.h:191: warning: no semicolon at end of struct or union scli.h:192: warning: type defaults to `int' in declaration of `xml_node' scli.h:192: warning: data definition has no type or storage class scli.h:202: error: parse error before '}' token scli.h:463: error: parse error before "node" scli.h:467: error: parse error before "node" scli.h:471: error: parse error before "xml_new_child" scli.h:471: error: parse error before "parent" scli.h:472: warning: type defaults to `int' in declaration of `xml_new_child' scli.h:472: warning: data definition has no type or storage class scli.c: In function `generator': scli.c:147: error: dereferencing pointer to incomplete type scli.c:164: error: dereferencing pointer to incomplete type scli.c:164: error: dereferencing pointer to incomplete type scli.c:179: error: dereferencing pointer to incomplete type scli.c: In function `main': scli.c:454: error: dereferencing pointer to incomplete type scli.c:457: error: dereferencing pointer to incomplete type scli.c:458: error: dereferencing pointer to incomplete type scli.c:459: error: dereferencing pointer to incomplete type scli.c:462: error: dereferencing pointer to incomplete type scli.c:466: error: dereferencing pointer to incomplete type scli.c:470: error: dereferencing pointer to incomplete type scli.c:474: error: dereferencing pointer to incomplete type scli.c:477: error: dereferencing pointer to incomplete type scli.c:477: error: dereferencing pointer to incomplete type scli.c:481: error: dereferencing pointer to incomplete type scli.c:481: error: dereferencing pointer to incomplete type scli.c:500: error: dereferencing pointer to incomplete type