Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71389 - new ebuild: net-analyzer/scli
Summary: new ebuild: net-analyzer/scli
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-11-16 06:05 UTC by Gudleik Rasch
Modified: 2005-01-28 06:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
scli-0.2.12.ebuild (scli-0.2.12.ebuild,531 bytes, text/plain)
2004-11-16 06:07 UTC, Gudleik Rasch
Details
Updated ebuild (scli.patch,536 bytes, patch)
2005-01-27 12:34 UTC, Gudleik Rasch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gudleik Rasch 2004-11-16 06:05:16 UTC
scli is an SNMP Command Line Interface
Comment 1 Gudleik Rasch 2004-11-16 06:07:23 UTC
Created attachment 44056 [details]
scli-0.2.12.ebuild
Comment 2 Otavio Piske (RETIRED) gentoo-dev 2005-01-27 03:52:03 UTC
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.
Comment 3 Gudleik Rasch 2005-01-27 12:31:51 UTC
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.
Comment 4 Gudleik Rasch 2005-01-27 12:34:39 UTC
Created attachment 49683 [details, diff]
Updated ebuild
Comment 5 Aaron Walker (RETIRED) gentoo-dev 2005-01-28 03:49:27 UTC
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.
Comment 6 Gudleik Rasch 2005-01-28 05:06:14 UTC
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
Comment 7 Aaron Walker (RETIRED) gentoo-dev 2005-01-28 06:08:51 UTC
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