saturn.cs.uml.edu(9)> cat $RBGB/bdemakebugs_linux060716 RJLRef: $RBGB/bdemakebugs_linux060716 Xm and Xm/Xm.h are now found. make bugs still exist in bde/pr_util_*log from std.h e.g., #include files still not available: #include ----------------------------------------------------- From omacneil@cs.uml.edu Sun Jul 16 08:54:57 2006 Subject: Re: bde build progress: Can't find Xm or Xm.h on mercury! I installed the openmotif and openmotif-dev packages. [RJL: --------------------- saturn.cs.uml.edu(15)> lg /usr/include/Xm|wc 126 1127 8065 is now on mercury also: ------------------------- mercury.cs.uml.edu(5)> lg /usr/include/Xm|wc 225 1794 11351 mercury.cs.uml.edu(6)> date Sun Jul 16 16:51:07 EDT 2006 mercury.cs.uml.edu(7)> ---------------------------- /RJL] I'll give the library search another go tomorrow afternoon. On Sat, 15 Jul 2006, Bob Lechner wrote: > I have modified Imakefile so Linux .uses /usr/share/X11/config > However, now I can't find Motif (/usr/lib/Xm and Xm.h on saturn). > And: > /usr/share/X11/config/Imake.tmpl: > line 2193:#include INCLUDE_IMAKEFILE <<<<<< [has bug?] > (I don't know where INCLUDE_IMAKEFILE is defined) > > > On saturn: > -------------------------------- > saturn.cs.uml.edu(58)> lg /usr/include/Xm|wc > 126 1127 8065 > saturn.cs.uml.edu(66)> lg /usr/include/Xm/Xm.h > -r--r--r-- 1 bin bin 47978 Apr 5 2000 /usr/include/Xm/Xm.h > saturn.cs.uml.edu(67)> > --------------------------------- > > (Mercury has only Xmu which appears to be a small subset of Xm > I tried it but it doesn't work - too many missing Xm files.) > > /usr/share/X11/config has 121 files and I have NO IDEA which ones apply > to the temp mercury or the next one (or even which one is online) > There are plenty of refs to XMU and Xmu but not to Xm. > > Imake.tmpl defines two mutex symbols: > #define SharedLibXmu HasSharedLibraries > and > #define NormalLibXmu (!SharedLibXmu | ForceNormalLib) > > I ignored this distinction in the past. > I didn't adapt to it now: > > On mercury: /usr/share/X11/config/Imake.tmpl > On saturn: /usr/lib/X11/config/Imake.tmpl > > New Imakefile has IMKPATH to locate X11 libraries: > (does order of MKPATH and MKPATH/config make any difference?) > ------------------- > #ifdef LinuxArchitecture > XmLIB = /usr/include/X11/Xmu <<<<<<<<< Xmu because I can't find Xm > IMKPATH = /usr/share/X11 > #endif > > #ifndef LinuxArchitecture > XmLIB = /usr/lib/Xm > IMKPATH = /usr/lib/X11 > #endif > > MakeSubdirs($(SUBDIRS)) > DependSubdirs($(SUBDIRS)) > > #ifdef LOG > IMAKE_CMD = $(IMAKE) -j1 -DUseInstalled -Dnostdinc -I$(IMKPATH)/config -I$(XmLIB) -I$(IMKPATH) $(IMAKE_DEFINES) -DLOG > #endif > > #ifndef LOG > IMAKE_CMD = $(IMAKE) -j1 -DUseInstalled -Dnostdinc -I$(IMKPATH)/config -I$(XmLIB) -I$(IMKPATH) $(IMAKE_DEFINES) > #endif > . > . > . > > --------------------------- > > mercury.cs.uml.edu(183)> ls /usr/share/X11 > app-defaults fonts locale x11perfcomp xkb > config lbxproxy rgb.txt XErrorDB XKeysymDB > ========================== > > > HOST= mercury.cs.uml.edu ; DISPLAY= localhost:13.0 > End of .login: resize TBD in .tcshrc: > .login exits to .tcshrc > .tcshrc exits > 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/share/X11/config > In file included from /usr/share/X11/config/Imake.tmpl:2194, > from Imakefile.c:35: > /tmp/IIf.d3NlY9:367: error: #endif without #if > imake: Exit code 1. > Stop. > xmkmf -a finished. > >> From /usr/share/X11/config/Imake.tmpl: > [Imake.tmpl:2193:#include INCLUDE_IMAKEFILE <<<<<< [has bug?] > (I don't know where INCLUDE_IMAKEFILE is defined) > > ======================= > XCOMM ---------------------------------------------------------------------- > XCOMM Makefile generated from IMAKE_TEMPLATE and INCLUDE_IMAKEFILE > XCOMM $Xorg: Imake.tmpl,v 1.4 2000/08/17 19:41:46 cpqbld Exp $ > XCOMM $XdotOrg: xc/config/cf/Imake.tmpl,v 1.9 2005/01/24 06:37:31 daniels Exp $ > XCOMM > XCOMM > XCOMM > XCOMM > XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.155 2003/12/24 18:58:41 dickey Exp $ > XCOMM ---------------------------------------------------------------------- > . > . > . > XCOMM ---------------------------------------------------------------------- > XCOMM start of Imakefile > #include INCLUDE_IMAKEFILE <<<<<< Line 2193 [has bug?] > > XCOMM ---------------------------------------------------------------------- > XCOMM common rules for all Makefiles - do not edit > . > . > . > ===================================================== > RJL060716.2240 ====================== new bde make liux 060717 (/usr/include/Xm/Xm.h now found) ... Running gmake withOUT log/replay in /usr/cs/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde making all in ././pr_util_nolog... make[1]: Entering directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/pr_util_nolog' gcc -g -c -Wall -I/usr/include -I.. -I../include -I../pr_util_nolog -DGENV13 ../pr_util_nolog/i386-linux/probj/pr_load.c -o ../pr_util_nolog/i386-linux/probj/pr_load.o In file included from ../include/strings.h:30, from ../pr_util_nolog/i386-linux/probj/pr_load.c:34: ../include/std.h:42:19: error: cstdlib: No such file or directory ../include/std.h:43:19: error: cstring: No such file or directory ../include/std.h:45:19: error: cstdio: No such file or directory ../include/std.h:46:18: error: cerrno: No such file or directory In file included from ../include/strings.h:30, from ../pr_util_nolog/i386-linux/probj/pr_load.c:34: include/std.h:49: error: expected identifier or â(â before string constant ../pr_util_nolog/i386-linux/probj/pr_load.c: In function âpr_linkâ: ../pr_util_nolog/i386-linux/probj/pr_load.c:1282: error: invalid lvalue in assignment [repeats] ... ./xmkmflog.csh: ... 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/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -- rm: cannot remove `mdep25283.tmp': No such file or directory 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.. -I/usr/local/lib/g++-include -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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 bdeReplay.cc rm: cannot remove `mdep25289.tmp': No such file or directory rm: cannot remove `mdep25289.tmp*': No such file or directory make[1]: Leaving directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/src' xmkmf -a finished. .. making all in ././pr_util_log... make[1]: Entering directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/pr_util_log' gcc -g -c -Wall -I/usr/include -I../include -I../pr_util_log -I.. -DGENV13 -DGENLOG ../pr_util_log/i386-linux/probj/pr_load.c -o ../pr_util_log/i386-linux/probj/pr_load.o In file included from ../include/strings.h:30, from ../pr_util_log/i386-linux/probj/pr_load.c:41: ../include/std.h:42:19: error: cstdlib: No such file or directory ../include/std.h:43:19: error: cstring: No such file or directory ../include/std.h:45:19: error: cstdio: No such file or directory ../include/std.h:46:18: error: cerrno: No such file or directory In file included from ../include/strings.h:30, from ../pr_util_log/i386-linux/probj/pr_load.c:41: ../include/std.h:49: error: expected identifier or â(â before string constant make[1]: *** [../pr_util_log/i386-linux/probj/pr_load.o] Error 1 make[1]: Leaving directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/:sandbox/bdeNT050526/bdegen13/bde/pr_util_log' gmake: *** [all] Error 2 gmake finished In file included from ../include/strings.h:30, from ../pr_util_log/i386-linux/probj/pr_load.c:41: ../include/std.h:42-46: cstdlib cstring cstdio cerrno: No such file or directory [RJLNote: #include worked (nocomplaint)] In file included from ../include/strings.h:30, from ../pr_util_log/i386-linux/probj/pr_load.c:41: ../include/std.h:49: error: expected identifier or â(â before string constant -------- extern "C" { //<<<< line 49 int strcasecmp _G_ARGS((const char*, const char*)) throw(); } --------- History: in my cc of std.h: ------- #include <_G_config.h> /* contents of #include - Mercury doesn't find this - RJL 030821 */ /* but it's there now: - RJL050812 - fix typo 050814 1300: insert '_' below: mercury.cs.uml.edu(240)> lg /usr/include/_*_/stddef.h -rw-r--r-- 1 root root 227 Jan 20 2000 /usr/include/linux/stddef.h */ Currently 060717: [mercury.cs.uml.edu1](7)> date Sun Jul 16 17:14:27 EDT 2006 [mercury.cs.uml.edu1](8)> lg /usr/include/_*_/stddef.h ls: No match. [mercury.cs.uml.edu1](10)> find /usr/include -name stddef.h /usr/include/linux/stddef.h [mercury.cs.uml.edu1](11)> lg /usr/include/linux/stddef.h -rw-r--r-- 1 root 227 Oct 23 2001 /usr/include/linux/stddef.h [mercury.cs.uml.edu1](12)> ------------------- So stddef.h is in /usr/include/linux: ------------- [mercury.cs.uml.edu1](12)> cat /usr/include/linux/stddef.h #ifndef _LINUX_STDDEF_H #define _LINUX_STDDEF_H #undef NULL #if defined(__cplusplus) #define NULL 0 #else #define NULL ((void *)0) #endif #undef offsetof #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #endif -------------- --------------------- [mercury.cs.uml.edu1](22)> find /usr -name include /usr/local/plt/include /usr/local/sml/src/runtime/include /usr/local/java/include /usr/local/jdk1.5.0_01/include /usr/local/j2sdk1.4.2_03/include /usr/local/include /usr/local/mosml/include /usr/local/jdk1.5.0_04/include /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include /usr/lib/dbus-1.0/include /usr/lib/evolution-openldap/include /usr/lib/gcc/i386-redhat-linux/4.1.0/include /usr/lib/gcc/i386-redhat-linux/4.1.1/include /usr/lib/gcc/i386-redhat-linux/4.1.1/include /usr/lib/gnome-vfs-2.0/include /usr/lib/glib-2.0/include /usr/lib/qt-3.3/include /usr/lib/gtk-2.0/include /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/include /usr/include /usr/src/kernels/2.6.15-1.2054_FC5-xenU-i686/include /usr/src/kernels/2.6.17-1.2145_FC5-xenU-i686/include /usr/share/cmake/include /usr/share/apps/kapptemplate/include /usr/share/selinux/devel/include /usr/share/selinux/targeted/include find /usr -name std.h /usr/share/doc/doxygen-1.4.6/examples/include Suspended [mercury.cs.uml.edu1](23)> ps PID TTY TIME CMD 24884 pts/14 00:00:00 tcsh 25599 pts/14 00:00:00 find 25617 pts/14 00:00:00 ps [mercury.cs.uml.edu1](24)> fg find /usr -name include find: /usr/share/systemtap/tapset/x86_64: Permission denied find: /usr/share/systemtap/tapset/i686: Permission denied [mercury.cs.uml.edu1](25)> h 1 16:57 rbgb 2 16:57 ./xmkmfnolog.csh 3 17:01 =================================== 4 17:01 ./xmkmflog.csh 5 17:07 vi include/std.h 6 17:12 lg /usr/include/_*_/stddef.h 7 17:14 date 8 17:14 lg /usr/include/_*_/stddef.h 9 17:15 find /usr/include stddef.h 10 17:15 find /usr/include -name stddef.h 11 17:15 lg /usr/include/linux/stddef.h 12 17:17 cat /usr/include/linux/stddef.h 13 17:18 grep cstdio /usr/include/linux/stddef.h 14 17:18 grep cstdlib /usr/include/linux/stddef.h 15 17:19 wc /usr/include/linux/stddef.h 16 17:19 cat /usr/include/linux/stddef.h 17 17:19 lg /usr/include/linux/std.h 18 17:19 lg /usr/include/std.h 19 17:20 lg /usr/share/std.h 20 17:20 lg /usr/share/*.h 21 17:20 lg /usr/share/include 22 17:20 find /usr -name include 23 17:21 ps 24 17:21 fg 25 17:22 h [mercury.cs.uml.edu1](26)> find /usr -name std.h find: /usr/share/systemtap/tapset/x86_64: Permission denied find: /usr/share/systemtap/tapset/i686: Permission denied [mercury.cs.uml.edu1](27)> ========================================= [mercury.cs.uml.edu1](35)> cat /usr/lib/gcc/i386-redhat-linux/4.1.1/include/README This README file is copied into the directory for GCC-only header files when fixincludes is run by the makefile for GCC. Many of the files in this directory were automatically edited from the standard system header files by the fixincludes process. They are system-specific, and will not work on any other kind of system. They are also not part of GCC. The reason we have to do this is because GCC requires ANSI C headers and many vendors supply ANSI-incompatible headers. Because this is an automated process, sometimes headers get "fixed" that do not, strictly speaking, need a fix. As long as nothing is broken by the process, it is just an unfortunate collateral inconvenience. We would like to rectify it, if it is not "too inconvenient". [mercury.cs.uml.edu1](36)> ==========================================