From owner-freebsd-hackers Wed Sep 15 15:55:46 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by hub.freebsd.org (Postfix) with ESMTP id 31AA114DE4 for ; Wed, 15 Sep 1999 15:55:43 -0700 (PDT) (envelope-from crossd@cs.rpi.edu) Received: from cs.rpi.edu (z.cs.rpi.edu [128.213.7.2]) by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id SAA27625; Wed, 15 Sep 1999 18:37:35 -0400 (EDT) Message-Id: <199909152237.SAA27625@cs.rpi.edu> To: John Baldwin Cc: "David E. Cross" , freebsd-hackers@FreeBSD.ORG, crossd@cs.rpi.edu Subject: Re: perl stangeness on 3.3-RC In-Reply-To: Message from John Baldwin of "Wed, 15 Sep 1999 18:01:19 EDT." <0FI4005LDFU3PL@gkar.cc.vt.edu> Date: Wed, 15 Sep 1999 18:37:34 -0400 From: "David E. Cross" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Umm, you can edit /usr/X11R6/lib/X11/xdm/Xservers to configure xdm to > run say /usr/config/X (which would be stored on the local machiens hard > drive) instead of /usr/X11R6/bin/X. This is a much simpler solution. > :) (Just symlink /usr/config/X to /usr/X11R6/bin/XF86_Whatever.) Simpler? It has modifications made on each machine rather in one file in a central location. Plus many things expect to find /usr/X11R6/bin/X (ala startx and xinit), and we use this on multiple architectures, and some network/diskless booting systems where mutliple machines share the same root partition. This is kinda moot however, since I am more interested in what caused it to stop working in the first place. It really seems to be an a bug. At glancing through the perl module that does this (Sys/hostname.pm) it would appear that there is no PATH environ variable set when init is run, and that is causing the last statemnt in each function block to fail, thus making the whole block fail. It is interesting however that the syscall method isn't working. FreeBSD doesn't have a gethostname _system_ call, but it does have the gethostname() library call (which uses sysctl(2)). Any ideas how to get perl to use this? -- David Cross | email: crossd@cs.rpi.edu Systems Administrator/Research Programmer | Web: http://www.cs.rpi.edu/~crossd Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message