[Bug: 21.4.18] compile command path not that of login shell

Larry Evans cppljevans at cox-internet.com
Sun May 28 13:29:40 EDT 2006


--text follows this line--
================================================================
Dear Bug Team!

The following is my response to Stephen Tumbull's post:

To:	Larry Evans <cppljevans at cox-internet.com>
Cc:	xemacs-news at xemacs.org
Subject: Re: Why doesn't compile command set path from login shell
References: <e5994t$5pa$1 at sea.gmane.org>
	<87ac92a5x3.fsf at tleepslib.sk.tsukuba.ac.jp>
	<4479964B.3040505 at cox-internet.com>
Organization: The XEmacs Project
From:	"Stephen J. Turnbull" <stephen at xemacs.org>
X-Attribution: sjt
Date:	Mon, 29 May 2006 00:53:37 +0900

Here's the reponse:
{--------------- cut here ------------------

On 05/28/2006 10:53 AM, Stephen J. Turnbull wrote:
 > If you want to follow this up further, it's time to submit a bug
 > report using M-x report-xemacs-bug (also available from the Help
 > menu).  In the report, please respond to the following questions as
 > best you can.

Unfortunately, I couldn't get it to send from xemacs; hence,
I'm sending from thunderbird.

 >
 >
 >>>>>>"Larry" == Larry Evans <cppljevans at cox-internet.com> writes:
 >
 >
 >     Larry> Yes. It has the same PATH value as set by my .bash_profile.
 >
 > Do you have a .bashrc?  If so, does it set PATH?  Does either one
 > source the other?
My .bashrc is:

{------- begin .bashrc ----------
# Get System .bashrc
if [ -f /etc/bash.bashrc ]; then
	source /etc/bash.bashrc
fi
source ~/.bash_env

}------- end .bashrc ----------

The PATH is set in ~/.bash_env.  However, I don't understand the
question:

   Does either one source the other?

since only one file, .bashrc, was referenced in the above paragraph.
If .bash_env "sourced" .bashrc, then I could see where this might
raise a question; however:

find . -maxdepth 1 -name .bash* -exec grep .bashrc {} \; -ls

showed only the single find in ~/.bashrc.  I've been using these
.bash* files for years now.  It's only when I've tried to use
xemacs (because of its oo browing capability) that I've encountered
this problem.
[snip]
 >
 >     Larry> But it's inconsistent that the eshell and the command shell
 >     Larry> (I'm referring to the command invoked from 'tools.
 >     Larry> shell.shell command' as the 'command shell'.) get
 >     Larry> inconsistent values
 >
 > What is the PATH that you set, and what is the PATH that you get from
 > the shell command tool?  (`echo $PATH' should do the trick.)

The PATH set by my ~/.bash_env is:

PATH=$HOME/bin:$BJAM_PATH:$INTEL_CXX_base/bin:/usr/local/bin:$COMO_PATH/bin:$PATH
PATH=$HOME/prog_dev/d-language/dmd/bin:$PATH

and from 'shell command tool', `echo $PATH` shows:

cd /home/evansl/
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11

OTOH, as mentioned, from the eshell, I get:

evansl at null:~$ echo $PATH
/home/evansl/prog_dev/d-language/dmd/bin:/home/evansl/bin:/home/evansl/prog_dev/boost-cvs/ro/boost/tools/build/v2/../jam_src/bin.linuxx86:/opt/intel/cc/9.0/bin:/usr/local/bin:/home/evansl/prog_dev/como.ln/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
evansl at null:~$

 >
 > What does M-x getenv RET PATH RET tell you?
 >

It shows the value from 'shell command tool', i.e.

   "/usr/local/bin:/usr/bin:/bin:/usr/bin/X11"

[snip]
 >
 > Do you get the same results (bad behavior with compile, and the
 > various values for PATH I've requested above for your usual
 > environment) if XEmacs is invoked with "xemacs -vanilla"?

No! With "xemacs -vanilla", in the 'shell command toll', I get
the correct, longer value.  Maybe that's the important clue!

}--------------- cut here ------------------

================================================================

System Info to help track down your bug:
---------------------------------------

uname -a: Linux penell 2.6.15 #1 Fri Jan 13 21:35:48 JST 2006 i686 GNU/Linux

./configure  '--with-sound=none,native' '--with-x11' '--extra-verbose' 
'--with-site-lisp' '--with-database=berkdb' '--statedir=/var/lib' 
'--infodir=/usr/share/info/xemacs21' 
'--infopath=/usr/share/info/xemacs21' '--prefix=/usr' '--dynamic' 
'--error-checking=none' '--debug=no' '--with-pop' '--with-file-coding' 
'--pdump' '--with-system-malloc' '--with_menubars=lucid' 
'--with_scrollbars=lucid' '--with_dialogs=athena' 
'--docdir=/usr/lib/xemacs-21.4.18/i386-debian-linux/nomule/' 
'--with-mule=no' 
'--package-path=~/.xemacs:~/.xemacs/packages:~/.xemacs/xemacs-packages::/usr/share/xemacs21/site-packages:/usr/share/xemacs21/xemacs-packages' 
'i386-debian-linux'


XEmacs 21.4.18 "Social Property" configured for `i386-debian-linux'.


Compilation / Installation:
   Source code location: 
/home/mohura/packages/build-area/xemacs21-21.4.18
   Installation prefix:               /usr
   Operating system description file: `s/linux.h'
   Machine description file:          `m/intel386.h'
   Compiler:                          gcc -g -O3 -Wall -Wno-switch 
-Winline -Wmissing-prototypes -Wsign-compare -fno-strict-aliasing -Wshadow
   Compiler version:                  gcc (GCC) 4.0.3 20060115 
(prerelease) (Debian 4.0.2-7)
   Compiler specs file:               specs.
   Relocating allocator for buffers:  no
   GNU version of malloc:             no
     - User chose not to use GNU allocators.
Need to guess glibc1/2/etc here

Window System:
   Compiling in support for the X window system:
     - X Windows headers location:                 /usr/X11R6/include
     - X Windows libraries location:               /usr/X11R6/lib
     - Handling WM_COMMAND properly.
   Compiling in support for the Athena widget set:
     - Athena headers location:                    X11/Xaw
     - Athena library to link:                     Xaw
   Using Lucid menubars.
   Using Lucid scrollbars.
   Using Athena dialog boxes.
   Using Athena native widgets.

TTY:
   Compiling in support for ncurses.
   Compiling in support for GPM (General Purpose Mouse).

Images:
   Compiling in support for GIF  images (builtin).
   Compiling in support for XPM  images.
   Compiling in support for PNG  images.
   Compiling in support for JPEG images.
   Compiling in support for TIFF images.
   Compiling in support for X-Face message headers.

Sound:
   Compiling in support for sound (native).

Databases:
   Compiling in support for Berkeley database.
   Compiling in support for LDAP.

Internationalization:
   Compiling in support for file coding.

Mail:
   Compiling in support for POP mail retrieval.
   Compiling in support for "dot-locking" mail spool file locking method.

Other Features:
   Inhibiting IPv6 canonicalization at startup.
   Compiling in support for dynamic shared object modules.
   Using the new portable dumper.



Load-Path Lisp Shadows:
----------------------
(/usr/share/xemacs21/xemacs-packages/lisp/build/build-report
/usr/lib/xemacs-21.4.18/lisp/build-report)


Installed XEmacs Packages:
-------------------------
(zenirc ver: 1.16 upstream: 2.112)
(xwem ver: 1.21 upstream: lg at xwem.org--2005/xwem--main--2.1--versionfix-1)
(xslt-process ver: 1.12 upstream: 1.2.1)
(xslide ver: 1.09 upstream: 0.2.2)
(xlib ver: 1.14 upstream: lg at xwem.org--2005/xlib--main--2.1--version-0)
(xetla ver: 1.0 upstream: steve at eicq.org--2005/xetla--main--1.0--version-0)
(xemacs-devel ver: 1.72 upstream: No-Upstream-Ver)
(xemacs-base ver: 2.0 upstream: No-Upstream-Ver)
(x-symbol ver: 1.1 upstream: 4.5.1)
(w3 ver: 1.31 upstream: 4.0pre47)
(vm ver: 7.22 upstream: 7.17)
(viper ver: 1.47 upstream: 3.09)
(view-process ver: 1.13 upstream: 2.4)
(vhdl ver: 1.2 upstream: 3.33.2)
(vc-cc ver: 1.22 upstream: No-Upstream-Ver)
(vc ver: 1.41 upstream: No-Upstream-Ver)
(tramp ver: 1.28 upstream: 2.0.51)
(tpu ver: 1.14 upstream: 4.2X)
(tooltalk ver: 1.15 upstream: No-Upstream-Ver)
(tm ver: 1.38 upstream: No-Upstream-Ver)
(time ver: 1.14 upstream: 1.17)
(textools ver: 1.15 upstream: No-Upstream-Ver)
(text-modes ver: 1.9 upstream: No-Upstream-Ver)
(texinfo ver: 1.3 upstream: No-Upstream-Ver)
(supercite ver: 1.21 upstream: 3.55x3)
(strokes ver: 1.1 upstream: No-Upstream-Ver)
(speedbar ver: 1.28 upstream: 0.14beta4)
(sounds-wav ver: 1.12 upstream: No-Upstream-Ver)
(sounds-au ver: 1.12 upstream: No-Upstream-Ver)
(sml-mode ver: 0.12 upstream: 3.9.5)
(slider ver: 1.15 upstream: 0.3x1)
(sieve ver: 1.18 upstream: No-Upstream-Ver)
(sh-script ver: 1.21 upstream: 2.0f)
(sgml ver: 1.11 upstream: No-Upstream-Ver)
(semantic ver: 1.19 upstream: 1.4.2)
(scheme ver: 1.14 upstream: No-Upstream-Ver)
(sasl ver: 1.16 upstream: 1.14.4)
(ruby-modes ver: 1.02 upstream: 1.6.8)
(rmail ver: 1.14 upstream: No-Upstream-Ver)
(riece ver: 1.21 upstream: 2.0.2)
(reftex ver: 1.34 upstream: 4.21)
(re-builder ver: 1.05 upstream: 1.20)
(python-modes ver: 1.06 upstream: No-Upstream-Ver)
(psgml-dtds ver: 1.03 upstream: No-Upstream-Ver)
(psgml ver: 1.44 upstream: 1.3.1)
(ps-print ver: 1.11 upstream: 6.5.6)
(prog-modes ver: 2.06 upstream: No-Upstream-Ver)
(pgg ver: 1.06 upstream: 0.1)
(perl-modes ver: 1.08 upstream: No-Upstream-Ver)
(pcomplete ver: 1.04 upstream: 1.1.6)
(pcl-cvs ver: 1.66 upstream: R-2_9_9)
(pc ver: 1.28 upstream: No-Upstream-Ver)
(os-utils ver: 1.36 upstream: No-Upstream-Ver)
(oo-browser ver: 1.04 upstream: 4.08)
(ocaml ver: 0.05 upstream: 3.06)
(net-utils ver: 1.48 upstream: N/A)
(mmm-mode ver: 1.02 upstream: 0.4.7)
(misc-games ver: 1.18 upstream: No-Upstream-Ver)
(mine ver: 1.16 upstream: 1.9)
(mh-e ver: 1.29 upstream: 7.4.2)
(mew ver: 1.19 upstream: 1.94.2)
(mailcrypt ver: 2.14 upstream: 3.5.8)
(mail-lib ver: 1.75 upstream: No-Upstream-Ver)
(jde ver: 1.48 upstream: 2.3.2)
(ispell ver: 1.32 upstream: 3.6)
(ilisp ver: 1.33 upstream: 5.12.0)
(igrep ver: 1.14 upstream: 2.111)
(idlwave ver: 1.32 upstream: 5.1)
(ibuffer ver: 1.09 upstream: No-Upstream-Ver)
(hyperbole ver: 1.16 upstream: 4.18)
(hm--html-menus ver: 1.23 upstream: 5.9)
(haskell-mode ver: 1.07 upstream: 1.45)
(gnus ver: 1.87 upstream: 5.10.7)
(gnats ver: 1.17 upstream: 3.101)
(general-docs ver: 1.04 upstream: No-Upstream-Ver)
(games ver: 1.17 upstream: 1.04)
(fsf-compat ver: 1.15 upstream: No-Upstream-Ver)
(frame-icon ver: 1.11 upstream: No-Upstream-Ver)
(fortran-modes ver: 1.04 upstream: No-Upstream-Ver)
(forms ver: 1.15 upstream: 2.37)
(footnote ver: 1.16 upstream: 0.18x)
(eudc ver: 1.39 upstream: 1.32)
(eterm ver: 1.17 upstream: No-Upstream-Ver)
(eshell ver: 1.1 upstream: 2.4.1)
(escreen ver: 1.01 upstream: 1.16)
(erc ver: 0.19 upstream: Version 5.0 Revision: 1.776)
(emerge ver: 1.11 upstream: No-Upstream-Ver)
(elib ver: 1.11 upstream: 1.0)
(eieio ver: 1.05 upstream: 0.17)
(efs ver: 1.33 upstream: 1.23)
(edt ver: 1.13 upstream: No-Upstream-Ver)
(edit-utils ver: 2.32 upstream: No-Upstream-Ver)
(ediff ver: 1.6 upstream: 2.75)
(edebug ver: 1.21 upstream: No-Upstream-Ver)
(ecrypto ver: 0.2 upstream: 2.0)
(ecb ver: 1.22 upstream: 2.31)
(docbookide ver: 0.07000000000000001 upstream: 0.1)
(dired ver: 1.17 upstream: 7.13)
(dictionary ver: 1.16 upstream: 1.8)
(debug ver: 1.17 upstream: No-Upstream-Ver)
(crisp ver: 1.15 upstream: 1.34)
(cookie ver: 1.15 upstream: No-Upstream-Ver)
(clearcase ver: 1.1 upstream: /main/laptop/165)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calendar ver: 1.23 upstream: No-Upstream-Ver)
(calc ver: 1.26 upstream: 2.02fX3)
(c-support ver: 1.22 upstream: No-Upstream-Ver)
(build ver: 1.14 upstream: 2.02)
(bbdb ver: 1.29 upstream: 2.34)
(auctex ver: 1.46 upstream: 11.55)
(apel ver: 1.32 upstream: 10.6)
(ada ver: 1.14 upstream: 2.27)
(Sun ver: 1.16 upstream: No-Upstream-Ver)



Installed Modules:
-----------------


Features:
--------

(mail-abbrevs xemacsbug shadow sendmail rfc822 annotations gdbsrc
advice advice-preload gdb debug-toolbar shell comint ring compile
zenirc-autoloads xwem-autoloads xslt-process-autoloads
xslide-autoloads xlib-autoloads xetla-autoloads xemacs-devel-autoloads
xemacs-base-autoloads x-symbol-autoloads w3-autoloads vm-autoloads
viper-autoloads view-process-autoloads vhdl-autoloads vc-cc-autoloads
vc-autoloads tramp-autoloads tpu-autoloads tooltalk-autoloads
tm-autoloads time-autoloads textools-autoloads text-modes-autoloads
texinfo-autoloads supercite-autoloads strokes-autoloads
speedbar-autoloads sounds-wav-autoloads sounds-au-autoloads
sml-mode-autoloads slider-autoloads sieve-autoloads
sh-script-autoloads sgml-autoloads semantic-autoloads scheme-autoloads
sasl-autoloads ruby-modes-autoloads rmail-autoloads riece-autoloads
reftex-autoloads re-builder-autoloads python-modes-autoloads
psgml-dtds-autoloads psgml-autoloads ps-print-autoloads
prog-modes-autoloads pgg-autoloads perl-modes-autoloads
pcomplete-autoloads pcl-cvs-autoloads pc-autoloads os-utils-autoloads
oo-browser-autoloads ocaml-autoloads net-utils-autoloads
mmm-mode-autoloads misc-games-autoloads mine-autoloads mh-e-autoloads
mew-autoloads mailcrypt-autoloads mail-lib-autoloads jde-autoloads
ispell-autoloads ilisp-autoloads igrep-autoloads idlwave-autoloads
ibuffer-autoloads hyperbole-autoloads hm--html-menus-autoloads
haskell-mode-autoloads gnus-autoloads gnats-autoloads
general-docs-autoloads games-autoloads fsf-compat-autoloads
frame-icon-autoloads fortran-modes-autoloads forms-autoloads
footnote-autoloads eudc-autoloads eterm-autoloads eshell-autoloads
escreen-autoloads erc-autoloads emerge-autoloads elib-autoloads
eieio-autoloads efs-autoloads edt-autoloads edit-utils-autoloads
ediff-autoloads edebug-autoloads ecrypto-autoloads ecb-autoloads
docbookide-autoloads dired-autoloads dictionary-autoloads
debug-autoloads crisp-autoloads cookie-autoloads clearcase-autoloads
cc-mode-autoloads calendar-autoloads calc-autoloads
c-support-autoloads build-autoloads bbdb-autoloads auctex-autoloads
apel-autoloads ada-autoloads Sun-autoloads lisp-autoloads loadhist
auto-show fontl-hooks x-iso8859-1 code-cmds gutter-items menubar-items
x-menubar mode-motion mouse itimer auto-save lisp-mode easymenu
iso8859-1 page buff-menu lib-complete help-nomule cus-file derived
frame text-props obsolete cus-start custom widget cl-extra mini-cl cl
cl-19 packages backquote very-early-lisp file-coding lucid-scrollbars
cut-buffer lucid-menubars athena-dialogs x c-balloon-help tty-frames
tty toolbar native-sound scrollbar unix-processes multicast
network-streams subprocesses modules menu-accelerator-support menubar
berkeley-db md5 xemacs gutter tiff png gif jpeg xface xpm xbm
lisp-float-type linux dialog devices window-system base64)


Recent keystrokes:
-----------------

misc-user C-a C-k e c h o SPC $ P A T H RET button1
button1up button1 button1up misc-user misc-user ESC
x C-g ESC x r e p o r t - x e m a c s - b u g RET


Recent messages (most recent first):
-----------------------------------

Loading xemacsbug...done
Loading xemacsbug...
Quit
Symbol's value as variable is void: file-p
Quit
Key read has no ASCII equivalent #<misc-user-event (eval (funcall 
(lambda (image-instance event) (gui-button-action image-instance (quote 
#<compiled-function (foo) "...(3)" [abort-recursive-edit] 1>) (quote 
nil))) #<image-instance (widget) on #<window on " *mouse-read-file*<4>" 
0x1b23> button "Cancel" face=#<face gui-button-face "Face used for gui 
buttons"> 72x27 on #<x-frame> 0x0x85f5370 0x1bf0> #<misc-user-event 
(eval #1)>))>
Minibuffer already active: abort it with `^]', enable new one with `n':
Loading annotations...done
Loading annotations...
Loading compile...done
Loading compile...




More information about the XEmacs-Beta mailing list