From owner-freebsd-gnome@FreeBSD.ORG Wed May 13 19:08:39 2009 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB6701065674 for ; Wed, 13 May 2009 19:08:39 +0000 (UTC) (envelope-from nathan.stocks@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by mx1.freebsd.org (Postfix) with ESMTP id AD8D48FC0A for ; Wed, 13 May 2009 19:08:39 +0000 (UTC) (envelope-from nathan.stocks@gmail.com) Received: by rv-out-0506.google.com with SMTP id k40so558607rvb.43 for ; Wed, 13 May 2009 12:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=UFTYHPEscRFvuvKQC7A+UcxK/WBf3DsINiWrj4EcE0g=; b=ALJ96W9Nxl+w275J+4d/3GDntN6nkLFBhTJpXWhIPPpZXcuU5zRTbRXrLe5YoMB2VU rY/v8nKBgDzSg9UM9R0OAzvLtNy0qDNqS7LkuM2INiFdogtEgi/J/ZOjqAqTkt0dzY4y cGNbq7xmKmHm5Pfcvyot3NhlPVAm88yoFbWxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=D4LRSH3fx4lEgFbLHuQ4nTCETjGIRWVRWGFsQlibtgbOMCyGh/cp+Jj3qsSX7tGQhM qewU5FbwXEUF29bK3muReJUlpXgYVIKlO8+ju8rHHs8SaFlJn0NVdzk+Eo3URm+cMnDc 0VhaBnriCMAG+R5HM9PY4Vog+vVIzV35081tk= MIME-Version: 1.0 Received: by 10.140.193.15 with SMTP id q15mr414196rvf.78.1242241719157; Wed, 13 May 2009 12:08:39 -0700 (PDT) In-Reply-To: <96c9d6a80905131138v1095134ey1ee265514ca612a5@mail.gmail.com> References: <96c9d6a80905130712q2adc071eoea9a2a9e36cb85db@mail.gmail.com> <96c9d6a80905130818h28fcffcenbadcb9d6bdc4ad93@mail.gmail.com> <96c9d6a80905131138v1095134ey1ee265514ca612a5@mail.gmail.com> Date: Wed, 13 May 2009 13:08:39 -0600 Message-ID: <96c9d6a80905131208x15269130ibea95a7d9144308c@mail.gmail.com> From: Nathan To: freebsd-gnome@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Problems with XDMCP and gnome 2.26 on 7.2-RELEASE-amd64-dvd1 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 19:08:40 -0000 On Wed, May 13, 2009 at 12:38 PM, Nathan wrote: > On Wed, May 13, 2009 at 9:18 AM, Nathan wrote: >> On Wed, May 13, 2009 at 8:12 AM, Nathan wrote: >>> Hi, this is my first time with FreeBSD. =A0I'm trying to replace an old >>> linux server for a thin-client lab with a brand-new FreeBSD one on a >>> nice amd opteron box. >>> >>> I can't get XDMCP working with either xdm or gdm. =A0I spent all day >>> yesterday (with two coworkers) reading, googling, and trying >>> everything we read or could think of to get either login manager >>> working. =A0They both work on the local console, but the configurations >>> for enabling XDMCP don't seem to work. =A0Then on #freebsd this morning >>> someone pointed me to this recent email in this mailing list's >>> archive: >>> >>> http://docs.freebsd.org/cgi/mid.cgi?1241929056.88553.29.camel >>> >>> Everything I currently have installed was straight off the DVD >>> (literally. =A0I just installed the "X-Kern-Developer" distribution, an= d >>> then installed gnome2 off the DVD). =A0What do I need to do to use thos= e >>> patches referenced in the email above? =A0Do I need to update ports, >>> then download those patches, and then upgrade all of gnome from ports >>> somehow? =A0Or can I just download the patches and update gdm? >>> >>> I really don't care whether we use xdm or gdm, but I can't get either >>> one working using the freebsd handbook or any other documentation I >>> can find. =A0(though I have gotten both working on several Linux >>> distros) >>> >>> This is a fresh install, so I'll mess with stuff trying to figure it >>> out in the meantime, and I can always wipe and reinstall, but I would >>> really appreciate some guidance here! >>> >>> I'll post any progress I make to the list. =A0I'll be working on this >>> for about the next 9 hours straight. >> >> Okay, I did "portsnap fetch" and "portsnap extract" and "portsnap >> update" and then: >> >> * put "Makefile" from the patches[1] into /usr/ports/x11/gdm >> * put the rest of the patches[1] into /usr/ports/x11/gdm/files >> >> [1] http://www.marcuscom.com/downloads/gdm/ >> >> Then I ran "make build" with the default config options from >> /usr/ports/x11/gdm -- and hit the following error: >> >> ------------------------------- >> =3D=3D=3D> =A0Vulnerability check disabled, database not found >> =3D=3D=3D> =A0Found saved configuration for gdm-2.26.1_1 >> =3D> gdm-2.26.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/gn= ome2. >> =3D> Attempting to fetch from >> ftp://ftp.belnet.be/mirror/ftp.gnome.org/sources/gdm/2.26/. >> gdm-2.26.1.tar.bz2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0100% of 2467 kB =A0 53 kBps 00m00s >> =3D=3D=3D> =A0Extracting for gdm-2.26.1_1 >> =3D> MD5 Checksum OK for gnome2/gdm-2.26.1.tar.bz2. >> =3D> SHA256 Checksum OK for gnome2/gdm-2.26.1.tar.bz2. >> =3D=3D=3D> =A0Patching for gdm-2.26.1_1 >> =3D=3D=3D> =A0Applying FreeBSD patches for gdm-2.26.1_1 >> =3D=3D=3D> =A0 gdm-2.26.1_1 depends on executable: zenity - found >> =3D=3D=3D> =A0 gdm-2.26.1_1 depends on executable: gmake - found >> =3D=3D=3D> =A0 gdm-2.26.1_1 depends on file: >> /usr/local/libdata/pkgconfig/dmxproto.pc - found >> =3D=3D=3D> =A0 gdm-2.26.1_1 depends on file: /usr/local/libdata/pkgconfi= g/dmx.pc - found >> =3D=3D=3D> =A0 gdm-2.26.1_1 depends on file: /usr/local/bin/intltool-ext= ract - not found >> =3D=3D=3D> =A0 =A0Verifying install for /usr/local/bin/intltool-extract = in >> /usr/ports/textproc/intltool >> =3D=3D=3D> =A0Vulnerability check disabled, database not found >> =3D> intltool-0.40.6.tar.bz2 doesn't seem to exist in /usr/ports/distfil= es/gnome. >> =3D> Attempting to fetch from >> ftp://ftp.belnet.be/mirror/ftp.gnome.org/sources/intltool/0.40/. >> intltool-0.40.6.tar.bz2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 100%= of =A0137 kB =A0 75 kBps >> =3D=3D=3D> =A0Extracting for intltool-0.40.6 >> =3D> MD5 Checksum OK for gnome/intltool-0.40.6.tar.bz2. >> =3D> SHA256 Checksum OK for gnome/intltool-0.40.6.tar.bz2. >> =3D=3D=3D> =A0 intltool-0.40.6 depends on file: /usr/local/bin/perl5.8.9= - found >> =3D=3D=3D> =A0Patching for intltool-0.40.6 >> =3D=3D=3D> =A0 intltool-0.40.6 depends on file: /usr/local/bin/perl5.8.9= - found >> =3D=3D=3D> =A0 intltool-0.40.6 depends on file: >> /usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser.pm - found >> =3D=3D=3D> =A0 intltool-0.40.6 depends on executable: gmake - found >> =3D=3D=3D> =A0 intltool-0.40.6 depends on file: /usr/local/bin/perl5.8.9= - found >> =3D=3D=3D> =A0 intltool-0.40.6 depends on shared library: iconv.3 - foun= d >> =3D=3D=3D> =A0Configuring for intltool-0.40.6 >> checking for a BSD-compatible install... /usr/bin/install -c -o root -g = wheel >> checking whether build environment is sane... yes >> checking for gawk... no >> checking for mawk... no >> >> [snip] >> >> cc -DHAVE_CONFIG_H -I. -I.. =A0-I. -I.. -I../common >> -DAUTHDIR=3D\"/var/gdm\" -DBINDIR=3D\"/usr/local/bin\" >> -DDATADIR=3D\"/usr/local/share\" -DDMCONFDIR=3D\"/usr/local/etc/dm\" >> -DGDMCONFDIR=3D\"/usr/local/etc/gdm\" -DLIBDIR=3D\"/usr/local/lib\" >> -DLIBEXECDIR=3D\"/usr/local/libexec\" -DLOGDIR=3D\"/var/log/gdm\" >> -DSBINDIR=3D\"/usr/local/sbin\" >> -DGNOMELOCALEDIR=3D\""/usr/local/share/locale"\" >> -DGDM_XAUTH_DIR=3D\"/var/run/gdm\" >> -DGDM_SESSION_DEFAULT_PATH=3D\"/usr/local/bin:/usr/bin:/bin\" >> -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/dbus-1.0 >> -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 >> -I/usr/local/lib/glib-2.0/include -I/usr/local/include/hal >> -D_THREAD_SAFE -I/usr/local/include =A0 -Wall -Wmissing-prototypes >> -DG_ENABLE_DEBUG -DLANG_CONFIG_FILE=3D\"/usr/local/etc/sysconfig/i18n\" >> -I/usr/local/include -DHAS_SA_LEN =A0-O2 -fno-strict-aliasing -pipe -MT >> gdm-manager.o -MD -MP -MF .deps/gdm-manager.Tpo -c -o gdm-manager.o >> gdm-manager.c >> gdm-manager.c:36:1: warning: "DBUS_API_SUBJECT_TO_CHANGE" redefined >> : warning: this is the location of the previous definition >> mv -f .deps/gdm-manager.Tpo .deps/gdm-manager.Po >> cc -DHAVE_CONFIG_H -I. -I.. =A0-I. -I.. -I../common >> -DAUTHDIR=3D\"/var/gdm\" -DBINDIR=3D\"/usr/local/bin\" >> -DDATADIR=3D\"/usr/local/share\" -DDMCONFDIR=3D\"/usr/local/etc/dm\" >> -DGDMCONFDIR=3D\"/usr/local/etc/gdm\" -DLIBDIR=3D\"/usr/local/lib\" >> -DLIBEXECDIR=3D\"/usr/local/libexec\" -DLOGDIR=3D\"/var/log/gdm\" >> -DSBINDIR=3D\"/usr/local/sbin\" >> -DGNOMELOCALEDIR=3D\""/usr/local/share/locale"\" >> -DGDM_XAUTH_DIR=3D\"/var/run/gdm\" >> -DGDM_SESSION_DEFAULT_PATH=3D\"/usr/local/bin:/usr/bin:/bin\" >> -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/dbus-1.0 >> -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 >> -I/usr/local/lib/glib-2.0/include -I/usr/local/include/hal >> -D_THREAD_SAFE -I/usr/local/include =A0 -Wall -Wmissing-prototypes >> -DG_ENABLE_DEBUG -DLANG_CONFIG_FILE=3D\"/usr/local/etc/sysconfig/i18n\" >> -I/usr/local/include -DHAS_SA_LEN =A0-O2 -fno-strict-aliasing -pipe -MT >> gdm-slave-proxy.o -MD -MP -MF .deps/gdm-slave-proxy.Tpo -c -o >> gdm-slave-proxy.o gdm-slave-proxy.c >> mv -f .deps/gdm-slave-proxy.Tpo .deps/gdm-slave-proxy.Po >> cc -DHAVE_CONFIG_H -I. -I.. =A0-I. -I.. -I../common >> -DAUTHDIR=3D\"/var/gdm\" -DBINDIR=3D\"/usr/local/bin\" >> -DDATADIR=3D\"/usr/local/share\" -DDMCONFDIR=3D\"/usr/local/etc/dm\" >> -DGDMCONFDIR=3D\"/usr/local/etc/gdm\" -DLIBDIR=3D\"/usr/local/lib\" >> -DLIBEXECDIR=3D\"/usr/local/libexec\" -DLOGDIR=3D\"/var/log/gdm\" >> -DSBINDIR=3D\"/usr/local/sbin\" >> -DGNOMELOCALEDIR=3D\""/usr/local/share/locale"\" >> -DGDM_XAUTH_DIR=3D\"/var/run/gdm\" >> -DGDM_SESSION_DEFAULT_PATH=3D\"/usr/local/bin:/usr/bin:/bin\" >> -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/dbus-1.0 >> -I/usr/local/include/dbus-1.0/include -I/usr/local/include/glib-2.0 >> -I/usr/local/lib/glib-2.0/include -I/usr/local/include/hal >> -D_THREAD_SAFE -I/usr/local/include =A0 -Wall -Wmissing-prototypes >> -DG_ENABLE_DEBUG -DLANG_CONFIG_FILE=3D\"/usr/local/etc/sysconfig/i18n\" >> -I/usr/local/include -DHAS_SA_LEN =A0-O2 -fno-strict-aliasing -pipe -MT >> gdm-xdmcp-display-factory.o -MD -MP -MF >> .deps/gdm-xdmcp-display-factory.Tpo -c -o gdm-xdmcp-display-factory.o >> gdm-xdmcp-display-factory.c >> gdm-xdmcp-display-factory.c: In function 'decode_packet': >> gdm-xdmcp-display-factory.c:2839: error: cannot convert to a pointer typ= e >> gmake[3]: *** [gdm-xdmcp-display-factory.o] Error 1 >> gmake[3]: Leaving directory `/usr/ports/x11/gdm/work/gdm-2.26.1/daemon' >> gmake[2]: *** [all] Error 2 >> gmake[2]: Leaving directory `/usr/ports/x11/gdm/work/gdm-2.26.1/daemon' >> gmake[1]: *** [all-recursive] Error 1 >> gmake[1]: Leaving directory `/usr/ports/x11/gdm/work/gdm-2.26.1' >> gmake: *** [all] Error 2 >> *** Error code 1 >> >> Stop in /usr/ports/x11/gdm. >> *** Error code 1 >> >> Stop in /usr/ports/x11/gdm. >> ------------------------------- >> >> What should I try now? >> >> ~ Nathan > > I switched over to working on xdm and finally got it to work! =A0The > root of the problem seems to be that xdm was binding to udp6 (as in > udp on ipv6) ONLY, and I'm using a regular ipv4 network. =A0The solution > in xdm's case was to add "LISTEN 0.0.0.0" to the top of > "/usr/local/lib/X11/xdm/Xaccess". =A0I suspect that my problem with gdm > may be similar, but I haven't verified that. =A0I'm reinstalling the > system right now, so I'll check and see if gdm is only binding to udp6 > when it's back up. =A0If that did happen to be gdm's problem, how could > I instruct it to listen on regular udp as well? =A0There doesn't seem to > be an Xaccess file in /usr/local/etc/gdm. > > ~ Nathan > Okay, fresh install, gdm running (from CD, not ports -- and no custom patch= es). According to sockstat, it appears that gdm is doing the same thing that xdm was -- only binding to udp6 and not regular udp: root gdm-binary 999 8 udp6 *:177 *:* compare that to the entry for syslog, for example: root syslogd 536 6 udp6 *:514 *:* root syslogd 536 7 udp4 *:514 *:* Is there a config setting for gdm that I can set to make it listen on regular udp as well? ~ Nathan