Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58243 - Porting: trafshow-5.2.3
Summary: Porting: trafshow-5.2.3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC All
: High minor
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-24 22:23 UTC by Ryan Ramsey
Modified: 2006-11-16 10:18 UTC (History)
0 users

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


Attachments
trafshow-4.0-gentoo.patch (rediffed patch from 3.1) (trafshow-4.0-gentoo.patch,522 bytes, patch)
2004-08-22 03:20 UTC, Kalin KOZHUHAROV
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Ramsey 2004-07-24 22:23:49 UTC
net-analyzer/trafshow-3.1-r1.ebuild does not build on OS X 10.3.4, but after a quick google search, I found trafshow-4.0 does build on OS X. I copied the ebuild from trafshow-3.1-r1 and commented the patch out. I downloaded the file and placed it in /usr/portage/distfiles and created a new digest. I started the build which went correctly until the install process.  Error as follows:

gcc -O -DHAVE_CONFIG_H -I.   -o trafshow trafshow.o display.o keyb.o color.o interfaces.o addrtoname.o machdep.o util.o getarptab.o version.o  -lpcap -ltermcap -lncurses
>>> Test phase [not enabled]: net-analyzer/trafshow-4.0

>>> Install trafshow-4.0 into /var/tmp/portage/trafshow-4.0/image/ category net-analyzer
./install-sh -c -s -m 550 -o bin -g 0 trafshow /var/tmp/portage/trafshow-4.0/image//usr/bin/trafshow
chown: bin: Invalid argument
make: *** [install] Error 1

!!! ERROR: net-analyzer/trafshow-4.0 failed.
!!! Function src_install, Line 42, Exitcode 2
!!! make install failed

END DEBUG

Reproducible: Always
Steps to Reproduce:
1. download trafshow-4.0.tgz from ftp://ftp.nsk.su/pub/RinetSoft/trafshow-4.0.tgz and place in /usr/portage distfiles
2. copy trafshow-3.1-r1.ebuild to trafshow-4.0.ebuild
3. comment epatch step from ebuild and generate digest
4. Build and watch die
Actual Results:  
The build completes but make install process fails

Expected Results:  
installed into correct directory

Portage 2.0.51_pre13 (default-macos-10.3, gcc-3.3, unavailable, 7.4.0 Power Macintosh powerpc)
===============================================================
==
System uname: 7.4.0 Power Macintosh powerpc
cat: /etc/gentoo-release: No such file or directory
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.57
Automake: sys-devel/automake-1.6.3
Binutils: 
ACCEPT_KEYWORDS="macos"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe"
CHOST="powerpc-apple-darwin"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache cvs keepwork"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="macos X berkdb ldap mysql perl python ruby"
Comment 1 Kalin KOZHUHAROV 2004-08-22 03:20:18 UTC
Created attachment 37925 [details, diff]
trafshow-4.0-gentoo.patch (rediffed patch from 3.1)

Please try this patch.

Just put it in the files/ directory and rename the ebuild to -4.0. (do not
comment out the epatch line, it is needed).

Please report back here.
Comment 2 Lina Pezzella (RETIRED) gentoo-dev 2005-01-04 19:13:17 UTC
I'm going to try to assign this bug to the net-analyzer herd, since it involves updating one of their packages. Once a 4.0 version is in the portage tree, osx-porters would be happy to take a look at any required patches to make it work on Gentoo for OSX.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-01-08 02:47:04 UTC
0.4 added -thankyou.

osx porters - this now installs as user:group= root:bin rather than owner bin. Hope this works.
Comment 4 Lina Pezzella (RETIRED) gentoo-dev 2005-01-09 17:33:36 UTC
It works great, except it segfaults with:

ach_port_type() failed (ipc/rcv) msg too large
task_get_bootstrap_port() failed (ipc/mig) wrong reply message ID                                                                                                               Abort trap

Apple provides libpcap-0.8, which does not meet the >=0.8.3 requirement for version 4.0. Does this error message have something to do with the version of libpcap?

Netmon herd: any ideas?
Comment 5 Markus Ullmann (RETIRED) gentoo-dev 2006-07-02 13:26:35 UTC
Do newer versions work with it already?
Comment 6 Fabian Groffen gentoo-dev 2006-07-03 10:40:36 UTC
domain_resolver.c: In function 
Comment 7 Fabian Groffen gentoo-dev 2006-07-03 10:40:36 UTC
domain_resolver.c: In function nameserver_request:
domain_resolver.c:467: error: MAXDNAME undeclared (first use in this function)
domain_resolver.c:467: error: (Each undeclared identifier is reported only once
domain_resolver.c:467: error: for each function it appears in.)
domain_resolver.c:467: warning: unused variable buf
domain_resolver.c: In function nameserver_send:
domain_resolver.c:543: error: HEADER undeclared (first use in this function)
domain_resolver.c:543: error: hp undeclared (first use in this function)
domain_resolver.c:543: error: parse error before ) token
domain_resolver.c:552: error: HFIXEDSZ undeclared (first use in this function)
domain_resolver.c:558: error: QFIXEDSZ undeclared (first use in this function)
domain_resolver.c:571: warning: implicit declaration of function PUTSHORT
domain_resolver.c:571: error: T_A undeclared (first use in this function)
domain_resolver.c:574: error: T_PTR undeclared (first use in this function)
domain_resolver.c:577: error: T_MX undeclared (first use in this function)
domain_resolver.c:580: error: C_IN undeclared (first use in this function)
domain_resolver.c: In function nameserver_reply:
domain_resolver.c:629: error: NOERROR undeclared (first use in this function)
domain_resolver.c: In function parse_packet:
domain_resolver.c:662: error: HEADER undeclared (first use in this function)
domain_resolver.c:662: error: hp undeclared (first use in this function)
domain_resolver.c:662: error: parse error before ) token
domain_resolver.c:663: error: HFIXEDSZ undeclared (first use in this function)
domain_resolver.c:669: error: MAXDNAME undeclared (first use in this function)
domain_resolver.c:686: error: NOERROR undeclared (first use in this function)
domain_resolver.c:686: error: REFUSED undeclared (first use in this function)
domain_resolver.c:719: error: INT16SZ undeclared (first use in this function)
domain_resolver.c:724: warning: implicit declaration of function GETSHORT
domain_resolver.c:726: error: C_IN undeclared (first use in this function)
domain_resolver.c:731: error: T_A undeclared (first use in this function)
domain_resolver.c:732: error: T_PTR undeclared (first use in this function)
domain_resolver.c:733: error: T_MX undeclared (first use in this function)
domain_resolver.c:752: error: INT32SZ undeclared (first use in this function)
domain_resolver.c:759: warning: implicit declaration of function GETLONG
domain_resolver.c:837: error: T_CNAME undeclared (first use in this function)
domain_resolver.c:669: warning: unused variable name
make: *** [domain_resolver.o] Error 1
make: *** Waiting for unfinished jobs....

probably patchable by including the right thing(tm):
% grep -R MAXDNAME /usr/include/*
/usr/include/arpa/nameser.h:#define NS_MAXDNAME 1025    /* maximum domain name */
/usr/include/arpa/nameser.h:    char            name[NS_MAXDNAME];
/usr/include/arpa/nameser.h:        char name[NS_MAXDNAME], alg[NS_MAXDNAME];
/usr/include/arpa/nameser8_compat.h:#define MAXDNAME    256             /* maximum domain name */
/usr/include/arpa/nameser_compat.h:#define MAXDNAME     NS_MAXDNAME

but I don't feel like stepping into it, now.
Comment 8 Fabian Groffen gentoo-dev 2006-11-16 10:18:09 UTC
closing bug.  Won't fix here.  Maybe in prefix if still an issue there.