Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76008 - unable to start tcpserver on 0.0.0.0 or other ipv4 address (ipv6 ok)
Summary: unable to start tcpserver on 0.0.0.0 or other ipv4 address (ipv6 ok)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-29 03:43 UTC by Haralds Ulmanis
Modified: 2004-12-29 08:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Haralds Ulmanis 2004-12-29 03:43:50 UTC
I'm trying start tcpserver on ipv4 address. if i'm using ipv6 patch, than all is ok.
error is: @4000000041d1995c199d4234 tcpserver: fatal: temporarily unable to figure out IP address for 0.0.0.0: file does not exist

if i put in place of 0.0.0.0 another ip adress or host .. result is the same.
I think problem maybe is somwhere in ipv4 address transformations (byte operations) .. maybe i'm not right. 
hostname --fqdn gives me my domain name which one is right.

i've patched a little tcpserver. (used some lines from ipv6 patch :) )
i've added thease lines 
+hostname="0"; //force
....
  sig_catch(sig_term,sigterm);
  sig_ignore(sig_pipe);
+if (str_equal(hostname,"0")) {
+ byte_zero(localip,sizeof localip);
+} else {
  if (!stralloc_copys(&tmp,hostname))
    strerr_die2x(111,FATAL,"out of memory");
.....
+}

i've changed compile options in the middle of system build (added -m64 --mfpmath and others). maybe some libraries built incorrect ? 


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




Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r12 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r12 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -m64 -pipe -msse -msse2 -mmmx -m3dnow -fexpensive-optimizations
-ffast-math -mfpmath=sse,387 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias
/var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -m64 -pipe -msse -msse2 -mmmx -m3dnow -fexpensive-optimizations
-ffast-math -mfpmath=sse,387 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apm avi berkdb bitmap-fonts cdr crypt db2 dbase f77
fortran ftp gdbm gif gpm gtk gtk+ imagemagick imap java jp2 jpeg ldap libwww lzw
lzw-tiff maildir msssql multilib mysql ncurses nls opengl oss pam perl php png
python radius readline samba ssl tcltk tcpd tiff truetype usb userlocales xml2
xpm xrandr xv zlib"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-29 08:23:14 UTC
use sane c[xx]flags, if you can then reproduce the problem, please reopen