Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51241 - xfs not opening tcp (or udp) port
Summary: xfs not opening tcp (or udp) port
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-16 19:49 UTC by Pupeno
Modified: 2006-03-31 19:39 UTC (History)
1 user (show)

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 Pupeno 2004-05-16 19:49:21 UTC
I configured xfs (X Font Server) to server on tcp port 7100 but it never opens it. I tried several different configurations and I ended up with this:
lab root # grep PORT /etc/conf.d/xfs
XFS_PORT="7100"

lab root # grep tcp /etc/X11/fs/config
# no tcp, use sockets!
#no-listen 
Comment 1 Pupeno 2004-05-16 19:49:21 UTC
I configured xfs (X Font Server) to server on tcp port 7100 but it never opens it. I tried several different configurations and I ended up with this:
lab root # grep PORT /etc/conf.d/xfs
XFS_PORT="7100"

lab root # grep tcp /etc/X11/fs/config
# no tcp, use sockets!
#no-listen  =  tcp

lab root # grep port /etc/X11/fs/config
port = 7100

(I tried with the lattest option and without it, it didn't chage)

I started xfs:
lab root # /etc/init.d/xfs start
 * Scanning font directories...                 [ ok ]
 * Starting X Font Server...                    [ ok ]

and this two commands show that xfs is not opening any tcp or udp port:
lab root # netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
udp        0      0 *:32771                 *:*
udp        0      0 *:xdmcp                 *:*
udp        0      0 *:bootps                *:*
raw        0      0 *:icmp                  *:*                     7

# lsof | grep xfs
xfs       32608    xfs  cwd    DIR        3,3     4096        2 /
xfs       32608    xfs  rtd    DIR        3,3     4096        2 /
xfs       32608    xfs  txt    REG        3,3    89068
10895498 /usr/X11R6/bin/xfs
xfs       32608    xfs  mem    REG        3,3    82944
2326578 /lib/ld-2.3.2.so
xfs       32608    xfs  mem    REG        3,3   723061
6373606 /usr/X11R6/lib/libXfont.so.1.4
xfs       32608    xfs  mem    REG        3,3   154728
2326556 /lib/libm-2.3.2.so
xfs       32608    xfs  mem    REG        3,3  1292284
2326595 /lib/libc-2.3.2.so
xfs       32608    xfs  mem    REG        3,3    64440
6373503 /usr/X11R6/lib/libXext.so.6.4
xfs       32608    xfs  mem    REG        3,3  1006970
6373490 /usr/X11R6/lib/libX11.so.6.2
xfs       32608    xfs  mem    REG        3,3    10864
2326604 /lib/libdl-2.3.2.so
xfs       32608    xfs  mem    REG        3,3    27752
2326603 /lib/libnss_compat-2.3.2.so
xfs       32608    xfs  mem    REG        3,3    76652
2326617 /lib/libnsl-2.3.2.so
xfs       32608    xfs  mem    REG        3,3    33328
2326553 /lib/libnss_nis-2.3.2.so
xfs       32608    xfs  mem    REG        3,3    35640
2326532 /lib/libnss_files-2.3.2.so
xfs       32608    xfs    0u   CHR        1,3              3303 /dev/null
xfs       32608    xfs    1u   CHR        1,3              3303 /dev/null
xfs       32608    xfs    2u   CHR        1,3              3303 /dev/null
xfs       32608    xfs    3u  unix 0xde181200
2716499 /tmp/.font-unix/fs7100

just as a side not:
$ ps ax | grep xfs
32608 ?        S      0:00 /usr/X11R6/bin/xfs -daemon -config /etc/X11/fs/config -droppriv -user xfs -port 7100


Reproducible: Always
Steps to Reproduce:
1. Configure XFS to open a tcp port
2. Run XFS
3. Check that the port is not being opened

Actual Results:  
XFS run without opening the tcp port 

Expected Results:  
Opening the tcp port. 

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 
2.6.5-gentoo-r1) 
================================================================= 
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2400+ 
Gentoo Base System version 1.4.10 
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distcc sandbox" 
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ 
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ 
http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ 
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ 
http://ftp.snt.utwente.nl/pub/os/linux/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X aalib acl acpi alsa apache2 apm arts audiofile avi berkdb cdr 
crypt cscope cups curl dvb dvd dvdr encode fam fftw flac foomaticdb gd gdbm gif 
ginac gmp imagemagick imap imlib innodb ipv6 jabber jpeg kde ladcca lcms ldap 
libg++ libwww linguas_en mad maildir mbox mcal mikmod mmx motif mozilla mpeg 
mysql ncurses nls odbc oggvorbis opengl oss pam pda pdflib perl plotutils png 
ppds python qt quicktime readline sasl scanner sdl slang slp speex spell ssl 
svga tcpd theora tiff truetype unicode usb vhosts videos x86 xinerama xml xml2 
xosd xv zeo zlib"
Comment 2 Benoit Boissinot 2004-08-27 12:53:05 UTC
>> 2716499 /tmp/.font-unix/fs7100

It looks like it opened an unix socket. Btw do you still have this problem ?
What are you using ? xfree ? xorg ? wich version ?
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-31 19:39:56 UTC
This is an upstream issue. Please file an upstream bug if this problem remains with modular X at bugs.freedesktop.org in the xorg product. Then post the URL here.