[plug] Woody 'make xconfig' won't run, 'make menuconfig' does.

Anthony J. Breeds-Taurima tony at cantech.net.au
Thu Oct 31 10:00:46 WST 2002


On 31 Oct 2002, Daniel wrote:

> Hello plug,
> thanks for the good stuff on 'Which linux is that ?'
> 
> I may have overlooked something obvious on my woody: 
> I can use 'make menuconfig' but 'make xconfig' doesn't come up.  
> Any pointers would be appreciated.

You have no $DISPLAY set.  I'm guessing you have logged into X as daniel
and then su'd to root sto run the xconfig.

There are 2 options:
	allow root logins with ssh, turn on x forwarding and then:
		ssh root at localhost instead of su
	Allow root to connect to daniels X display.
		login as daniel
		open 2 xterms
		xterm1 (daniel) run : xauth list $DISPLAY
		xterm2 : su to root
		         export DISPLAY=:0
		         xauth add $DISPLAY . <cookie>
		where <cookie> is the md5 cookie displayed in the first xterm

Then you should be able to run make xconfig (or any other X app as root).
There may also be a typo on line 51 of
/usr/src/linux-2.4.19/scripts/kconfig.tk"  remove the ' ' from "button .ref"

However I don't use TK nor xconfig so I don't really know if I'm right there.
 
> Thanks very much,
> Daniel.
> [send someone to linuxconf for free!] 
> ----------------------
> # make xconfig
> rm -f include/asm
> ( cd include ; ln -sf asm-i386 asm)
> make -C scripts kconfig.tk
> make[1]: Entering directory `/usr/src/linux-2.4.19/scripts'
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkparse.o
> tkparse.c
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkcond.o
> tkcond.c
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkgen.o
> tkgen.c
> gcc -o tkparse tkparse.o tkcond.o tkgen.o
> cat header.tk >> ./kconfig.tk
> ./tkparse < ../arch/i386/config.in >> kconfig.tk
> echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
> echo "set ARCH \"i386\"" >> kconfig.tk
> cat tail.tk >> kconfig.tk
> chmod 755 kconfig.tk
> make[1]: Leaving directory `/usr/src/linux-2.4.19/scripts'
> wish -f scripts/kconfig.tk
> Application initialization failed: no display name and no $DISPLAY
> environment variable
> Error in startup script: invalid command name "button"
>     while executing
> "button .ref"
>     (file "scripts/kconfig.tk" line 51)
> make: *** [xconfig] Error 1
> 
> 
> 


Yours Tony

   Jan 22-25 2003           Linux.Conf.AU            http://linux.conf.au/
		  The Australian Linux Technical Conference!



More information about the plug mailing list