Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 18892

Summary: ucspi-tcp's tcpserver is broken on ppc with USE ipv6 and possibly on all big endian platforms
Product: Gentoo Linux Reporter: Sebastian Klemke <packet>
Component: [OLD] ServerAssignee: PPC Porters <ppc>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: net-mail+disabled
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian Klemke 2003-04-07 07:48:49 UTC
This patch fixes the problem I noticed, but there might be more of the kind...
The patch only needs to be applied if the ipv6 was also applied.

--- ucspi-tcp-0.88.orig/tcpserver.c     2003-04-06 11:01:41.000000000 +0200
+++ ucspi-tcp-0.88/tcpserver.c  2003-04-06 11:21:23.000000000 +0200
@@ -376,7 +376,7 @@
     se = getservbyname(x,"tcp");
     if (!se)
       strerr_die3x(111,FATAL,"unable to figure out port number for ",x);
-    uint16_unpack_big((char*)&se->s_port,&localport);
+    localport = ntohs (se->s_port);
   }
 
   if (!*argv) usage();


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.47-r10 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.20-ben5-int1 ppc 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/home/portage"
USE="dvd libwww mitshm esd mozilla ppc gdbm berkdb slang python crypt encode
imap ipv6 maildir mbox ncurses oggvorbis oss pam pic readline ssl spell tcpd
tetex xml2 zlib perl -cups -gif -gpm -gtk -imlib -arts -avi -java -jpeg -kde
-gnome -motif -mpeg -mikmod -nls -opengl -png -qt -quicktime -sdl -svga
-truetype -X -xv -xmms"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -fsigned-char"
CXXFLAGS="-O2 -pipe -fsigned-char"
ACCEPT_KEYWORDS="ppc ~ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache"
Comment 1 Bartosch Pixa (RETIRED) gentoo-dev 2003-04-28 00:08:29 UTC
bouncing back to bug-wranglers as we don't have a ppc-dev running ipv6 to test this, maybe someone familiar with the ipv6 stuff or one of the other bigendian arches can take a look at this
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-04-28 02:16:34 UTC
guys help each other
Comment 3 Guy Martin (RETIRED) gentoo-dev 2003-06-17 11:38:48 UTC
I don't know how this ebuild works but I can test it on a hppa station which is 
bigendian. can you tell me how to reproduce this and explain the problem you've 
noticed ? 
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-15 02:20:17 UTC
clearing up my bug tracking
Comment 5 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-22 12:25:42 UTC
I have been running .88-r5 on an ipv6 use-flag enabled machine. If you could pass me a test case I can give it a test.  
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2004-10-01 14:29:37 UTC
Reassigning to ppc, keeping net-mail in CC
Comment 7 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-10-02 07:10:40 UTC
Marking as TEST-REQUEST then.
Comment 8 Lars Weiler (RETIRED) gentoo-dev 2004-10-31 14:54:52 UTC
What's status on the test case?
Comment 9 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-01-06 12:11:11 UTC
Fixed in CVS, ucspi-tcp-0.88-r9