Article View: comp.windows.interviews
Article #7Building IV 3.1beta3 under Ultrix 4.2A w/X11R5
From: Dan Ehrlich
Date: Tue, 27 Oct 1992 20:15
Date: Tue, 27 Oct 1992 20:15
141 lines
5649 bytes
5649 bytes
Has anyone been successful in compiling InterViews 3.1beta3 with cxx under Ultrix 4.2A? I have a few questions. First, I want to use "stock" X11R5 and not DECwindows or DECMotif what should I define "KitFlags" as? It is currently defined as nothing. Second, I am getting errors that are fatal during compilation. Here is a sample: making all for MIPSEL in ./src/lib/IV/MIPSEL /usr/bin/cxx -Dcplusplus_2_1 -Dsigned= -Dvolatile= -DLANGUAGE_C -I../../. ./.././src/include -I/package/x11r5/include -c ../../InterViews/action.c ../../../.././src/include/InterViews/resource.h:34: error: Invalid declaration. ../../../.././src/include/InterViews/resource.h:45: error: Missing ")". ../../../.././src/include/InterViews/resource.h:46: error: Missing ")". ../../../.././src/include/InterViews/resource.h:47: error: Missing ")". ../../../.././src/include/InterViews/resource.h:54: error: Missing ";". ../../../.././src/include/InterViews/resource.h:55: error: Missing ";". ../../../.././src/include/InterViews/resource.h:56: error: Invalid declaration. ../../../.././src/include/InterViews/resource.h:67: error: Missing ")". ../../../.././src/include/InterViews/resource.h:67: error: Invalid statement. ../../../.././src/include/InterViews/action.h:36: error: Invalid declaration. ../../../.././src/include/InterViews/action.h:50: error: Invalid declaration. The compilation errors seem to be caused by the DEC C++ compiler driver (cxx) handing files that end in '.c' to the DEC ANSI C compiler c89. The Sun C++ compiler will take files with a '.c' suffix as a C++ file. Any suggestions for a work around? Both DEC's and Sun's C++ will take a '.cxx' extenstion as a C++ source file. Would it be reasonable to just rename all of the '.c' files to '.cxx`? Or are there really some C source files lurking in the source tree? Third, when depending in some of the directories complaints about not being able to find "osfcn.h" are generated. What is this header file? Where should it be? What should be in it? For reference here is my local.def file. I have made no changes to the ultrix.cf. /* begin local.def */ /* * For now, just assume cfront 2.0. * If you are using cfront 2.1, then use -Dcplusplus_2_1. */ #undef LanguageCCDefines #define LanguageCCDefines -Dcplusplus_2_1 /* * If you are using gcc/g++, then uncomment the include below. */ /* #include <InterViews/gcc.def> */ /* * Default customization of kits. * Possible flags to define: * sgi_motif_kit (SMFKit), motif_kit (MFKit), * openlook_kit (OLKit), bw_kit (MonoKit) */ #ifndef KitFlags #ifdef UltrixArchitecture #define KitFlags #else #define KitFlags \ -Dmotif_kit \ -Dsgi_motif_kit \ -Dopenlook_kit \ -Dbw_kit \ -Ddefault_kit=SMFKit #endif #endif /* * If you are using g++, define BuildRPCClasses to NO. */ #if defined(SGIArchitecture) || defined(SunArchitecture) #undef BuildRPCClasses #define BuildRPCClasses YES #endif /* * Delete this definition if your /tmp space is less than five megabytes. */ #undef HasLargeTmp #define HasLargeTmp YES /* * If you do not want to create a symbolic link called "/interviews" * that points at /..../iv/installed, you should replace /interviews * below with the name of the symbolic link you do want to use (say, * /usr/local/interviews). If you don't want to create a symbolic * link at all, replace /interviews with the absolute pathname of * /..../iv/installed so InterViews applications still can find the * installed data files. */ #undef InstalledRoot #define InstalledRoot /package/iv /* * Point at the correct C++ driver and include directory. */ #if defined(UltrixArchitecture) #undef CCDriver #define CCDriver /usr/bin/cxx #undef DependCCFlags #define DependCCFlags $(CCDEFINES) $(CCINCLUDES) -I/usr/include/cxx #endif /* defined(UltrixArchitecture) */ #if defined(SunArchitecture) #undef CCDriver #define CCDriver /usr/lang/CC #undef DependCCFlags #define DependCCFlags $(CCDEFINES) $(CCINCLUDES) -I/usr/lang/SC1.0/include/CC #undef SharedCCFlags #define SharedCCFlags -PIC #endif /* defined(SunArchitecture) */ /* * If the X11 config files are not in /usr/lib/X11/config, the X11 * includes are not in /usr/include, or the X11 libraries are not in * /lib, /usr/lib, or /usr/local/lib, then you should specify their * actual locations here. * * If you have to set XConfigDir, don't forget to override XCONFIGDIR * on the command line when saying "make World" for the first time. */ #undef XConfigDir #define XConfigDir /package/x11r5/lib/X11/config #undef XIncDir #define XIncDir /package/x11r5/include #undef XLibDir #define XLibDir /package/x11r5/lib /* End local.def */ Please reply to me via e-mail. Thanks for any information or suggestion you may be able to provide. -- Dan Ehrlich - Sr. Systems Programmer - Penn State Computer Science "Universities should be safe havens where ruthless examination of realities will not be distorted by the aim to please or inhibited by the risk of displeasure." - Kingman Brewster
Technical Details
Message-ID:
<Bwsqxz.8FL@cs.psu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!sdd.hp.com!caen!uwm.edu!rutgers!psuvax1!ehrlichShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!sdd.hp.com!caen!uwm.edu!rutgers!psuvax1!ehrlich From: ehrlich@cs.psu.edu (Dan Ehrlich) Newsgroups: comp.windows.interviews Subject: Building IV 3.1beta3 under Ultrix 4.2A w/X11R5 Message-ID: <Bwsqxz.8FL@cs.psu.edu> Date: 27 Oct 92 20:15:31 GMT Sender: news@cs.psu.edu (Usenet) Followup-To: poster Distribution: comp Organization: Computer Science Department, Penn State University Lines: 141 Nntp-Posting-Host: daneel.cs.psu.edu