From lechner@cs.uml.edu Sun Nov 13 23:17:48 2005 Received: from saturn.cs.uml.edu (saturn.cs.uml.edu [129.63.8.2]) by earth.cs.uml.edu (8.11.6/8.11.6) with ESMTP id jAE4HbY23273; Sun, 13 Nov 2005 23:17:37 -0500 Received: from saturn.cs.uml.edu (localhost [127.0.0.1]) by saturn.cs.uml.edu (8.12.9/8.12.9) with ESMTP id jAE4HbXi033072; Sun, 13 Nov 2005 23:17:37 -0500 (EST) Received: (from lechner@localhost) by saturn.cs.uml.edu (8.12.9/8.12.9/Submit) id jAE4Hblg027739; Sun, 13 Nov 2005 23:17:37 -0500 (EST) From: Bob Lechner Message-Id: <200511140417.jAE4Hblg027739@saturn.cs.uml.edu> Subject: Re: 91-523: BDE lock files (chown -R 05f523 $BDEROOT) To: jingyoko@hotmail.com (jingyoko@hotmail.com Tan) Date: Sun, 13 Nov 2005 23:17:36 -0500 (EST) Cc: ralmonte@cs.uml.edu (Almonte), mandava_s@yahoo.com, smandava@cs.uml.edu, jtan@cs.uml.edu, jingyoko@hotmail.com, uguntu@cs.uml.edu (Guntu), kpatel1@cs.uml.edu (Patel), lechner@cs.uml.edu (Bob Lechner) In-Reply-To: from "jingyoko@hotmail.com Tan" at Nov 12, 2005 07:43:47 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1513 Lines: 38 X-Status: X-Keywords: X-UID: 480 X-Evolution: 00000274-0000 Status: RO > From jingyoko@hotmail.com Sat Nov 12 14:43:59 2005 > From: "jingyoko@hotmail.com Tan" > To: lechner@cs.uml.edu > Subject: Re: 91-523: BDE lock files > > By the way, I have chown -R my owned file to 05f523, and it will allow > anyone in our group to access them. > > Thanks, > Jing > > drwxrwxrwx 2 jtan 05f523 4096 Sep 21 11:26 CVS > -rwxrwxrwx 1 jtan 05f523 2388 May 18 10:55 dprint.h > -rwxrwxrwx 1 jtan 05f523 4118 Jun 22 1996 meets_view.hlp > -rwxrwxrwx 1 jtan 05f523 534 Jun 22 1996 NEW_VERSION_FLAG.hlp I can't find man page info on how jtan came to own these files, but Ken did a chown back to lechner and I reset access modes to make it harder (but not impossible). CVS assumes collaboration among trusted users [access group members] which is less secure. cvs passwords are lightly encrypted. CVS does not over-ride protections on directories like RCS does. Noone should take advantage of 770 mode on directories which allows cvs to update repository files by rm and mv back. An accidental over-write to a repository file is prevented by mode 444. You should NOT do rm and mv back directly. A good ref: MBDoar: Practical Development Environments, OReilly 2005. It covers many alternatives to cvs and make. E.g. p. 98: 'Paul's Rules of Makefiles'. Doar p. 53 recommends separate server machines and smrsh (ssh?) access. Our only protection is write access to the Unix group only, not to the world. R Lechner From lechner@cs.uml.edu Sun Nov 13 21:36:31 2005 Received: from saturn.cs.uml.edu (cs.uml.edu [129.63.8.2]) by earth.cs.uml.edu (8.11.6/8.11.6) with ESMTP id jAE2aGY22111; Sun, 13 Nov 2005 21:36:16 -0500 Received: from saturn.cs.uml.edu (localhost [127.0.0.1]) by saturn.cs.uml.edu (8.12.9/8.12.9) with ESMTP id jAE2aFXi024912; Sun, 13 Nov 2005 21:36:15 -0500 (EST) Received: (from lechner@localhost) by saturn.cs.uml.edu (8.12.9/8.12.9/Submit) id jAE2aFNR029753; Sun, 13 Nov 2005 21:36:15 -0500 (EST) From: Bob Lechner Message-Id: <200511140236.jAE2aFNR029753@saturn.cs.uml.edu> Subject: Re: bde [g]make - ran OK on Mercury. To: ralmonte@cs.uml.edu (Robert Almonte) Date: Sun, 13 Nov 2005 21:36:15 -0500 (EST) Cc: ralmonte@cs.uml.edu (Almonte), mandava_s@yahoo.com, smandava@cs.uml.edu, jtan@cs.uml.edu, jingyoko@hotmail.com, uguntu@cs.uml.edu (Guntu), kpatel1@cs.uml.edu (Patel), lechner@cs.uml.edu (Bob Lechner) In-Reply-To: <1131917089.3386.4.camel@localhost.localdomain> from "Robert Almonte" at Nov 13, 2005 04:24:48 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Length: 10793 Lines: 226 X-Status: X-Keywords: X-UID: 478 X-Evolution: 00000270-0000 Status: RO Robert can't make bde on his Linux PC. I recommend you first try it on [a remote login to] uml/cs/mercury. I can run xmkmf[no]log.csh there and bde compiles OK (refs below). (The first run halts when it can't find rule for bde.exe._man. A second run of xmkmf[no]log.csh (or just gmake) completes the link of bde.exe. After checkout on Mercury you can do cvs diff file* or diff $RBGB/file* file* to compare files with mine Windows users should check if the downloaded file syntax is affected by the Windows/Unix diffs in EOLine. [KFogel: OSDev with CVS p. 229 Line-end conversion]) Unix has dos2unix for the return conversion (remove extra ^M=CR). Fogel p. 231 says CVS remote protocol is logged to logfname.{in,out} after 'CVS_CLIENT_LOG = logfname; export CVS_CLIENT_LOG', as a last resort. As RA says, I AM ' generating the bde.exe inside the pr_util_nolog' (or pr_util_log) The symlinks are for backward compatibility - bde/executables/bde[log] automatically calls bde/executables/$HOSTTYPE/bde[log].exe, which is linked to one of 4 distinct executables to avoid copying them. (TBD: change executables/bde[log] to bypass symlinks.) A summary of MY builds is at $RBGB/bdemakelinuxSummary051113.txt (163 lines) Full details are at the typescript $RBGB/bdemakelinux051113.2051 = ~lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/bdemakelinux051113.2051 (1200 lines - browse backward :-) R Lechner =========================================================== > From ralmonte@cs.uml.edu Sun Nov 13 16:24:09 2005 > Subject: Re: bde make ran OK on saturn in $RBGB/pr_util_nolog/ ( bug > changes to be tested) > From: Robert Almonte > To: Bob Lechner > > My first try of BDE in my Linux box didn't go so well. > I haven't spend time on dig it the problem, but I send you the output > in case that you have some advices. > > It seems that you are generating the bde.exe inside the pr_util_nolog > and making a symbolic link from ../executables/i386-linux/bin/... > > Regards, > Robert > > [ralmonte@localhost bde]$ ./xmkmfnolog.csh > xmkmfnolog.csh --> xmkmf -a building three Makefiles > \t\t in bde, src and pr_util_nolog > Building Makefiles withOUT the log/replay option. > xmkmf -a making 3 new Makefile[Nolog_$HOSTTYPE] files: > mv -f Makefile Makefile.bak > imake -DUseInstalled -I/usr/X11R6/lib/X11/config > make Makefiles > making Makefiles in ./pr_util_nolog... > mv -f Makefile Makefile.bak > make[1]: Entering directory `/home/ralmonte/workspace/bde' > make[1]: Leaving directory `/home/ralmonte/workspace/bde' > make[1]: Entering directory `/home/ralmonte/workspace/bde/pr_util_nolog' > make[1]: Nothing to be done for `Makefiles'. > make[1]: Leaving directory `/home/ralmonte/workspace/bde/pr_util_nolog' > making Makefiles in ./src... > mv -f Makefile Makefile.bak > make[1]: Entering directory `/home/ralmonte/workspace/bde' > make[1]: Leaving directory `/home/ralmonte/workspace/bde' > make[1]: Entering directory `/home/ralmonte/workspace/bde/src' > make[1]: Nothing to be done for `Makefiles'. > make[1]: Leaving directory `/home/ralmonte/workspace/bde/src' > make includes > including in ././pr_util_nolog... > make[1]: Entering directory `/home/ralmonte/workspace/bde/pr_util_nolog' > make[1]: Nothing to be done for `includes'. > make[1]: Leaving directory `/home/ralmonte/workspace/bde/pr_util_nolog' > including in ././src... > make[1]: Entering directory `/home/ralmonte/workspace/bde/src' > make[1]: Nothing to be done for `includes'. > make[1]: Leaving directory `/home/ralmonte/workspace/bde/src' > make depend > depending in ././pr_util_nolog... > make[1]: Entering directory `/home/ralmonte/workspace/bde/pr_util_nolog' > gccmakedep -- -I/usr/include -I../include -I../pr_util_nolog -I.. > -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L > -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE > -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -- > make[1]: Leaving directory `/home/ralmonte/workspace/bde/pr_util_nolog' > depending in ././src... > make[1]: Entering directory `/home/ralmonte/workspace/bde/src' > gccmakedep -- -I/usr/include -I../include -I../pr_util_nolog > -I/usr/local/lib/g++-include -I/usr/X11R6/include -Dlinux -D__i386__ > -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE > -D_XOPEN_SOURCE -D_BSD_SOURCE > -D_SVID_SOURCE -DFUNCPROTO=15 > -DNARROWPROTO -- bde.cc bendpt.cc bendptops.cc buttonevent.cc > captionops.cc cursor.cc dialog.cc display.cc draw.cc edit.cc fileio.cc > font.cc fprint.cc graphobject.cc graphops.cc handler.cc help.cc hlink.cc > infodialog.cc infomessage.cc init.cc initClasses.cc leftmenu.cc > leftmenu_cb.cc linkops.cc menubar.cc menubar_cb.cc msgBox.cc nodeops.cc > select.cc smselect.cc strdup.cc text.cc textops.cc > make[1]: Leaving directory `/home/ralmonte/workspace/bde/src' > xmkmf -a finished. > ================================================= > Copying bde/Makefile to bde/MakefileNolog_i386-linux > -rw-rw-r-- 1 ralmonte 32283 Nov 13 16:19 Makefile > -rw-rw-r-- 1 ralmonte 32283 Nov 13 16:19 MakefileNolog_i386-linux > Copying bde/*/Makefile to bde/*/MakefileNolog_i386-linux > -rw-rw-r-- 1 ralmonte 166544 Nov 13 16:20 src/Makefile > -rw-rw-r-- 1 ralmonte 166544 Nov 13 16:20 src/MakefileNolog_i386-linux > -rw-rw-r-- 1 ralmonte 28570 Nov 13 16:19 pr_util_nolog/Makefile > -rw-rw-r-- 1 ralmonte 28570 Nov 13 16:19 > pr_util_nolog/MakefileNolog_i386-linux > ================================================= > Running gmake withOUT log/replay in /home/ralmonte/workspace/bde > making all in ././pr_util_nolog... > make[1]: Entering directory `/home/ralmonte/workspace/bde/pr_util_nolog' > cp > -p ../pr_util_nolog/pr_load.c ../pr_util_nolog/pr_free.c ../pr_util_nolog/pr_dump.c ../pr_util_nolog/pr_delete.c ../pr_util_nolog/pr_stats.c ../pr_util_nolog/pr_accessors.c ../pr_util_nolog/lut.c ../pr_util_nolog/dprint.c ../pr_util_nolog/i386-linux/probj > cp -p ../dprint.h ../pr_util_nolog/i386-linux > cp -p ../pr_util_nolog/lut.h ../pr_util_nolog/i386-linux/probj > cp -p ../pr_util_nolog/94sbde_schema.h ../pr_util_nolog/i386-linux/probj > gcc -g -c -Wall -DGENV13 ../pr_util_nolog/i386-linux/probj/pr_load.c > -o ../pr_util_nolog/i386-linux/probj/pr_load.o > ../pr_util_nolog/i386-linux/probj/pr_load.c: In function ‘pr_init’: > ../pr_util_nolog/i386-linux/probj/pr_load.c:772: warning: implicit > declaration of function ‘lut_init’ > ../pr_util_nolog/i386-linux/probj/pr_load.c: In function ‘pr_link’: > ../pr_util_nolog/i386-linux/probj/pr_load.c:1269: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1269: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1270: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1270: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1275: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1275: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1276: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1276: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1277: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1277: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1278: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1278: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1283: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1283: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1288: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1288: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1289: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1289: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1290: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1290: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1291: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1291: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1296: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1296: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1301: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1301: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1306: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1306: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1307: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1307: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1312: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c:1312: error: invalid lvalue > in assignment > ../pr_util_nolog/i386-linux/probj/pr_load.c: In function ‘load_data’: > ../pr_util_nolog/i386-linux/probj/pr_load.c:1613: error: missing > terminating " character > ../pr_util_nolog/i386-linux/probj/pr_load.c:1614: error: missing > terminating " character > ../pr_util_nolog/i386-linux/probj/pr_load.c:1615: error: syntax error > before ‘;’ token > make[1]: *** [../pr_util_nolog/i386-linux/probj/pr_load.o] Error 1 > make[1]: Leaving directory `/home/ralmonte/workspace/bde/pr_util_nolog' > gmake: *** [all] Error 2 > gmake finished. > bde executable finished withOUT log/replay. > executables/i386-linux/bdenolog.exe is a sym-link > to pr_util_nolog/i386-linux/bin/bde.exe > chmod: cannot access `pr_util_nolog/i386-linux/bin/bde.exe': No such > file or directory > ls: pr_util_nolog/i386-linux/bin/bde.exe: No such file or directory > 4 lrwxrwxrwx 1 ralmonte 36 Nov 13 16:20 > executables/i386-linux/bdenolog.exe -> > pr_util_nolog/i386-linux/bin/bde.exe > ls: executables/i386-linux/bde.exe: No such file or directory > 4 lrwxrwxrwx 1 ralmonte 36 Nov 13 16:18 > executables/i386-linux/bdenolog.bak -> > pr_util_nolog/i386-linux/bin/bde.exe > [ralmonte@localhost bde]$ > > From lechner@cs.uml.edu Sun Nov 13 22:23:35 2005 Received: from saturn.cs.uml.edu (cs.uml.edu [129.63.8.2]) by earth.cs.uml.edu (8.11.6/8.11.6) with ESMTP id jAE3MOY22629; Sun, 13 Nov 2005 22:22:24 -0500 Received: from saturn.cs.uml.edu (localhost [127.0.0.1]) by saturn.cs.uml.edu (8.12.9/8.12.9) with ESMTP id jAE3MNXi031261; Sun, 13 Nov 2005 22:22:24 -0500 (EST) Received: (from lechner@localhost) by saturn.cs.uml.edu (8.12.9/8.12.9/Submit) id jAE3MNbp031234; Sun, 13 Nov 2005 22:22:23 -0500 (EST) From: Bob Lechner Message-Id: <200511140322.jAE3MNbp031234@saturn.cs.uml.edu> Subject: xmkmf[no]log.csh diffs (RA vs. RJL) ' -DUSE_MAKEDEPEND --' To: ralmonte@cs.uml.edu (Almonte) Date: Sun, 13 Nov 2005 22:22:23 -0500 (EST) Cc: ralmonte@cs.uml.edu (Almonte), mandava_s@yahoo.com, smandava@cs.uml.edu, jtan@cs.uml.edu, jingyoko@hotmail.com, uguntu@cs.uml.edu (Guntu), kpatel1@cs.uml.edu (Patel), lechner@cs.uml.edu (Bob Lechner) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 2474 Lines: 42 X-Status: X-Keywords: X-UID: 479 X-Evolution: 00000272-0000 Status: RO I notice the only diff betweene the makedepend command line in RAlmonte's PC is that my makedepend on Mercury includes ' -DUSE_MAKEDEPEND --' at end but his does not.??? [Of course no guarantees on environment or lib context.] Perhaps he can add that ? gnu can pass some things from Imakefiles to Makefiles (-DLOG). Also check Imakefile sources. They may differ in how they insert this.. (FYInfo, I extracted some of 'man imake' into $PH/COOL-BDE/bdegen13/imakeMercury.manpages.txt) imake resource file locations: ------------------- mercury.cs.uml.edu(87)> ls /usr/X11R6/lib/X11/config/Imake.* /usr/X11R6/lib/X11/config/Imake.cf /usr/X11R6/lib/X11/config/Imake.tmpl /usr/X11R6/lib/X11/config/Imake.rules mercury.cs.uml.edu(88)> -------------------- ================================================= >From bdemakelinux051113.2051 (last xmkmf run): [mercury.cs.uml.edu1](35)> xmkmflog.csh12D/xmkmflog.csh12D -------------------------- ... make[1]: Nothing to be done for `includes'. make[1]: Leaving directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/src' make depend depending in ././pr_util_log... make[1]: Entering directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/pr_util_log' gccmakedep -- -I/usr/include -I../include -I../pr_util_log -I.. -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DUSE_MAKEDEPEND -- make[1]: Leaving directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/pr_util_log' depending in ././src... make[1]: Entering directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/src' gccmakedep -- -I/usr/include -I../include -I../pr_util_log -I/usr/local/lib/g++-include -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DUSE_MAKEDEPEND -- bde.cc bendpt.cc bendptops.cc buttonevent.cc captionops.cc cursor.cc dialog.cc display.cc draw.cc edit.cc fileio.cc font.cc fprint.cc graphobject.cc graphops.cc handler.cc help.cc hlink.cc infodialog.cc infomessage.cc init.cc initClasses.cc leftmenu.cc leftmenu_cb.cc linkops.cc menubar.cc menubar_cb.cc msgBox.cc nodeops.cc select.cc smselect.cc strdup.cc text.cc textops.cc bdeReplay.cc ---------------------