Problems with XDMCP and gnome 2.26 on 7.2-RELEASE-amd64-dvd1

Nathan nathan.stocks at gmail.com
Wed May 13 19:50:31 UTC 2009


On Wed, May 13, 2009 at 1:16 PM, Joe Marcus Clarke <marcus at marcuscom.com> wrote:
> On Wed, 2009-05-13 at 13:08 -0600, Nathan wrote:
>> On Wed, May 13, 2009 at 12:38 PM, Nathan <nathan.stocks at gmail.com> wrote:
>> > On Wed, May 13, 2009 at 9:18 AM, Nathan <nathan.stocks at gmail.com> wrote:
>> >> On Wed, May 13, 2009 at 8:12 AM, Nathan <nathan.stocks at gmail.com> wrote:
>> >>> Hi, this is my first time with FreeBSD.  I'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.  I spent all day
>> >>> yesterday (with two coworkers) reading, googling, and trying
>> >>> everything we read or could think of to get either login manager
>> >>> working.  They both work on the local console, but the configurations
>> >>> for enabling XDMCP don't seem to work.  Then 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.  I just installed the "X-Kern-Developer" distribution, and
>> >>> then installed gnome2 off the DVD).  What do I need to do to use those
>> >>> patches referenced in the email above?  Do I need to update ports,
>> >>> then download those patches, and then upgrade all of gnome from ports
>> >>> somehow?  Or 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.  (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.  I'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:
>> >>
>> >> -------------------------------
>> >> ===>  Vulnerability check disabled, database not found
>> >> ===>  Found saved configuration for gdm-2.26.1_1
>> >> => gdm-2.26.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/gnome2.
>> >> => Attempting to fetch from
>> >> ftp://ftp.belnet.be/mirror/ftp.gnome.org/sources/gdm/2.26/.
>> >> gdm-2.26.1.tar.bz2                            100% of 2467 kB   53 kBps 00m00s
>> >> ===>  Extracting for gdm-2.26.1_1
>> >> => MD5 Checksum OK for gnome2/gdm-2.26.1.tar.bz2.
>> >> => SHA256 Checksum OK for gnome2/gdm-2.26.1.tar.bz2.
>> >> ===>  Patching for gdm-2.26.1_1
>> >> ===>  Applying FreeBSD patches for gdm-2.26.1_1
>> >> ===>   gdm-2.26.1_1 depends on executable: zenity - found
>> >> ===>   gdm-2.26.1_1 depends on executable: gmake - found
>> >> ===>   gdm-2.26.1_1 depends on file:
>> >> /usr/local/libdata/pkgconfig/dmxproto.pc - found
>> >> ===>   gdm-2.26.1_1 depends on file: /usr/local/libdata/pkgconfig/dmx.pc - found
>> >> ===>   gdm-2.26.1_1 depends on file: /usr/local/bin/intltool-extract - not found
>> >> ===>    Verifying install for /usr/local/bin/intltool-extract in
>> >> /usr/ports/textproc/intltool
>> >> ===>  Vulnerability check disabled, database not found
>> >> => intltool-0.40.6.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/gnome.
>> >> => Attempting to fetch from
>> >> ftp://ftp.belnet.be/mirror/ftp.gnome.org/sources/intltool/0.40/.
>> >> intltool-0.40.6.tar.bz2                       100% of  137 kB   75 kBps
>> >> ===>  Extracting for intltool-0.40.6
>> >> => MD5 Checksum OK for gnome/intltool-0.40.6.tar.bz2.
>> >> => SHA256 Checksum OK for gnome/intltool-0.40.6.tar.bz2.
>> >> ===>   intltool-0.40.6 depends on file: /usr/local/bin/perl5.8.9 - found
>> >> ===>  Patching for intltool-0.40.6
>> >> ===>   intltool-0.40.6 depends on file: /usr/local/bin/perl5.8.9 - found
>> >> ===>   intltool-0.40.6 depends on file:
>> >> /usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser.pm - found
>> >> ===>   intltool-0.40.6 depends on executable: gmake - found
>> >> ===>   intltool-0.40.6 depends on file: /usr/local/bin/perl5.8.9 - found
>> >> ===>   intltool-0.40.6 depends on shared library: iconv.3 - found
>> >> ===>  Configuring 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..  -I. -I.. -I../common
>> >> -DAUTHDIR=\"/var/gdm\" -DBINDIR=\"/usr/local/bin\"
>> >> -DDATADIR=\"/usr/local/share\" -DDMCONFDIR=\"/usr/local/etc/dm\"
>> >> -DGDMCONFDIR=\"/usr/local/etc/gdm\" -DLIBDIR=\"/usr/local/lib\"
>> >> -DLIBEXECDIR=\"/usr/local/libexec\" -DLOGDIR=\"/var/log/gdm\"
>> >> -DSBINDIR=\"/usr/local/sbin\"
>> >> -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"
>> >> -DGDM_XAUTH_DIR=\"/var/run/gdm\"
>> >> -DGDM_SESSION_DEFAULT_PATH=\"/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   -Wall -Wmissing-prototypes
>> >> -DG_ENABLE_DEBUG -DLANG_CONFIG_FILE=\"/usr/local/etc/sysconfig/i18n\"
>> >> -I/usr/local/include -DHAS_SA_LEN  -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
>> >> <command-line>: 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..  -I. -I.. -I../common
>> >> -DAUTHDIR=\"/var/gdm\" -DBINDIR=\"/usr/local/bin\"
>> >> -DDATADIR=\"/usr/local/share\" -DDMCONFDIR=\"/usr/local/etc/dm\"
>> >> -DGDMCONFDIR=\"/usr/local/etc/gdm\" -DLIBDIR=\"/usr/local/lib\"
>> >> -DLIBEXECDIR=\"/usr/local/libexec\" -DLOGDIR=\"/var/log/gdm\"
>> >> -DSBINDIR=\"/usr/local/sbin\"
>> >> -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"
>> >> -DGDM_XAUTH_DIR=\"/var/run/gdm\"
>> >> -DGDM_SESSION_DEFAULT_PATH=\"/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   -Wall -Wmissing-prototypes
>> >> -DG_ENABLE_DEBUG -DLANG_CONFIG_FILE=\"/usr/local/etc/sysconfig/i18n\"
>> >> -I/usr/local/include -DHAS_SA_LEN  -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..  -I. -I.. -I../common
>> >> -DAUTHDIR=\"/var/gdm\" -DBINDIR=\"/usr/local/bin\"
>> >> -DDATADIR=\"/usr/local/share\" -DDMCONFDIR=\"/usr/local/etc/dm\"
>> >> -DGDMCONFDIR=\"/usr/local/etc/gdm\" -DLIBDIR=\"/usr/local/lib\"
>> >> -DLIBEXECDIR=\"/usr/local/libexec\" -DLOGDIR=\"/var/log/gdm\"
>> >> -DSBINDIR=\"/usr/local/sbin\"
>> >> -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"
>> >> -DGDM_XAUTH_DIR=\"/var/run/gdm\"
>> >> -DGDM_SESSION_DEFAULT_PATH=\"/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   -Wall -Wmissing-prototypes
>> >> -DG_ENABLE_DEBUG -DLANG_CONFIG_FILE=\"/usr/local/etc/sysconfig/i18n\"
>> >> -I/usr/local/include -DHAS_SA_LEN  -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 type
>> >> 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!  The
>> > 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.  The solution
>> > in xdm's case was to add "LISTEN 0.0.0.0" to the top of
>> > "/usr/local/lib/X11/xdm/Xaccess".  I suspect that my problem with gdm
>> > may be similar, but I haven't verified that.  I'm reinstalling the
>> > system right now, so I'll check and see if gdm is only binding to udp6
>> > when it's back up.  If that did happen to be gdm's problem, how could
>> > I instruct it to listen on regular udp as well?  There 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 patches).
>>
>> 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?
>
> No.  GDM is currently broken with it comes to XDMCP.  I have not been
> able to create a working patch set.
>
> Joe

Good to know.  I'll stop spinning my wheels on that and simply use xdm
for now.  Thanks!

~ Nathan


More information about the freebsd-gnome mailing list