Bug 34576 - net-analyzer/traffic-vis
Bug#: 34576 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: lisa@gentoo.org Reported By: spider@gentoo.org
Component: Applications
URL: 
Summary: net-analyzer/traffic-vis
Keywords:  
Status Whiteboard: 
Opened: 2003-11-27 17:02 0000
Description:   Opened: 2003-11-27 17:02 0000
Strange DEPEND tracking here :
        gif? ( media-libs/netpbm
                app-text/ghostscript
                dev-lang/perl )

Those are all fairly common , How is "gif" disabled when you already have them installed?


Also 
        >=dev-libs/glib-1.1.15"

does this work without glib 1.2 and with only glib 2 installed?

------- Comment #1 From Lisa Seelye (RETIRED) 2003-12-02 09:53:56 0000 -------
if you don't use gif then you won't have those optional things added (see the
loop in src_instal().  Until its moved to an autoconf setup I don't see any way
to optionally adding/removing gif support (aside from the src_install way)
without hacking the code and/or Makefile.


Quoting from the README:

You will also need glib. I have developed traffic-vis using
glib-1.1.15 but I think older versions should work too.
[snip]

I have not used this program (its more than cryptic) nor tested with glib 2. 
However using even Gentoo standards, you should set the minimum glibc version
to 1.1.15.  (BTW, with dev-libs/glib-1.2.10-r5 and dev-libs/glib-2.2.3
installed this _compiled_)

------- Comment #2 From Spider (RETIRED) 2003-12-02 12:11:33 0000 -------
glibc != glib

glib 2.x isn't backwards compatible, and frankly theres not much that forces somone to have "glib-1.2" installed. 

I seriously doubt this will even compile with a modern glib version, so the >=dev-libs/glib is quite much considered a bug.

here's from a clean install :

ripples / # qpkg -q -I glib
sys-libs/glibc-2.3.2-r1 *
DEPENDED ON BY:
---

Note, no glib installed. 

ripples / # USE="-gif" ACCEPT_KEYWORDS="~x86" emerge -vp traffic-vis

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] net-libs/libpcap-0.7.2  
[ebuild  N    ] dev-util/pkgconfig-0.15.0  
[ebuild  N    ] dev-libs/glib-2.2.3  -doc -debug 
[ebuild  N    ] net-analyzer/traffic-vis-0.35  -gif 




gcc -O2 -march=i686 -fstack-protector -fomit-frame-pointer -pipe -DVERSION="\"0.35"\" -DHAVE_GETOPT_LONG -Wall -Wno-conversion -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes  -g  -I/usr/include/pcap `glib-config --cflags`    -c -o util.o util.c
/bin/sh: line 1: glib-config: command not found
util.c:40:18: glib.h: No such file or directory
util.c: In function `util_malloc':
util.c:51: warning: implicit declaration of function `g_malloc'
util.c:51: warning: assignment makes pointer from integer without a cast
util.c: In function `util_zmalloc':
util.c:67: warning: assignment makes pointer from integer without a cast
util.c: In function `util_strdup':
util.c:85: warning: implicit declaration of function `g_strdup'
util.c:85: warning: assignment makes pointer from integer without a cast
util.c: In function `util_realloc':
util.c:99: warning: implicit declaration of function `g_realloc'
util.c:99: warning: assignment makes pointer from integer without a cast
/usr/include/bits/mathinline.h: At top level:
util.c:44: warning: `rcsid' defined but not used
make: *** [util.o] Error 1





So, No. this report isn't invalid. 

------- Comment #3 From Spider (RETIRED) 2003-12-06 10:59:11 0000 -------
so I got annoyed and fixed this in cvs. Bah.