From lechner@cs.uml.edu Wed Feb 9 20:30:26 2005 Subject: imake link rules in /usr/lib/X11/config/Imake.rules In /usr/lib/X11/config/Imake.rules: ... /* * LinkRule - link a program */ #ifndef LinkRule #define LinkRule(program,options,objects,libraries) \ $(CCLINK) -o program options objects libraries $(EXTRA_LOAD_FLAGS) #endif /* LinkRule */ /* * HostLinkRule - link a utility to be used on the build host * (differs from LinkRule if cross compiling) */ #ifndef HostLinkRule #define HostLinkRule LinkRule #endif #ifndef CplusplusLinkRule #define CplusplusLinkRule(program,options,objects,libraries) \ $(CXXLINK) -o program options objects libraries $(EXTRA_LOAD_FLAGS) #endif /* CplusplusLinkRule */ ... :q From lechner@cs.uml.edu Wed Mar 16 22:15:41 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 j2H3Few13905; Wed, 16 Mar 2005 22:15:40 -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 j2H3FeYn337903; Wed, 16 Mar 2005 22:15:40 -0500 (EST) Received: (from lechner@localhost) by saturn.cs.uml.edu (8.12.9/8.12.9/Submit) id j2H3FeMP341276; Wed, 16 Mar 2005 22:15:40 -0500 (EST) From: Bob Lechner Message-Id: <200503170315.j2H3FeMP341276@saturn.cs.uml.edu> Subject: HOSTTYPE and xmkmf -a To: ralmonte@cs.uml.edu (Robert Almonte) Date: Wed, 16 Mar 2005 22:15:40 -0500 (EST) Cc: lechner@cs.uml.edu (Bob Lechner) In-Reply-To: <000501c529c3$f797cf10$38493040@f9e0x9> from "Robert Almonte" at Mar 14, 2005 08:37:29 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Status: X-Keywords: X-UID: 80 Status: RO I and Scott mave emailed back/forth on the $HOSTTYPE change. Unless you ask to be on 05s523 alias you're bound to miss emails I forget to send to you also. One possibility is that you forget (as I do) when you switch platform $HOSTTYPES, to re-run xmkmf -a to get new Makefiles (because libraries change) and also rm */*.o files (so timestamps don't fool make). If you can read bde's Imakefiles you are welcome to suggest changes that will put platform-dependent .o files not just .exe's under the proper HOSTYPE directory. That would help. But Makefiles also change so a solution should also make xmkmf -a generate platform-specific Makefile names in bde and bde/pr* and bde//src. You could generalize the $HOSTYPE dependency in Imakefiles to accept either i386 or i386-linux to solve the bash problem. Imake.rules and Imake.tmpl are relevant to imake behavior. Imake.rules might help us make the g++ link command be ld instead of cxx which does not work on saturn . (My workaround is link[no]log.csh after make.) -------------------------------------- (RJLRef: ~/hlp/imake.hlp) - imake link rules include: In /usr/lib/X11/config/Imake.rules: ... /* * LinkRule - link a program */ #ifndef LinkRule #define LinkRule(program,options,objects,libraries) \ $(CCLINK) -o program options objects libraries $(EXTRA_LOAD_FLAGS) #endif /* LinkRule */ /* * HostLinkRule - link a utility to be used on the build host * (differs from LinkRule if cross compiling) */ #ifndef HostLinkRule #define HostLinkRule LinkRule #endif #ifndef CplusplusLinkRule #define CplusplusLinkRule(program,options,objects,libraries) \ $(CXXLINK) -o program options objects libraries $(EXTRA_LOAD_FLAGS) #endif /* CplusplusLinkRule */ ... ---------------------- > From ralmonte@cs.uml.edu Tue Mar 15 20:00:58 2005 > From: "Robert Almonte" > To: "Bob Lechner" > References: <200503150049.j2F0nH8q275124@saturn.cs.uml.edu> > Subject: Re: Good luck;...I can't help you without a typescript to look at. > Hi, > > Sorry about that. > > It was that the HOSTTYPE variable inside the Makefile holds different value > depending > in which shell it runs. My default shell is bash, so HOSTTYPE = i386, not > i386-linux in csh shell. > > Even though it is really strange, before I was getting a lot of errors > during the compilation of the files and today I just got this simple error. > > Well, that is luck... > > -------------- * ------------------ > Have you seen or read this book. ---> > http://www.cs.princeton.edu/software/cii/ > He offers the code free and he makes a really nice interface using just C. > > > Thanks for you reply.... > > > ----- Original Message ----- > From: "Bob Lechner" > To: "Robert Almonte" > Cc: > Sent: Monday, March 14, 2005 7:49 PM > Subject: Gen: Good luck;...I can't help you without a typescript to look at. > > > > > From ralmonte@cs.uml.edu Mon Mar 14 17:53:12 2005 > > > Subject: Building Gen... > > > Hi Prof. Lechner, > > > > > > I tried to build gen12 with the code in the directory of 'sjaganat\src', > > > but it giving me an error in mercury and my PC with Linux., too. > > > I will try to build it in saturn to see if it works. > > > > > > I am trying to build it before I start to make any change so I can set > up a > > > CVS respository using eclipse as IDE. > > > > Your report is not very helepful > > without a typescript to look at. :-( > > > > R Lechner > > > >