From: max@ccrl.nj.nec.com (Maximilian Ott)
Subject: Help with building InterViews 3.1Beta on sparc
Organization: C&C Research Labs, NEC USA, Princeton, N.J.
Date: Fri, 4 Sep 92 02:22:06 GMT

Sorry guys if this is a FAQ or has been dealt with before. I just
tuned in today.

I got 3.1Beta from sgi.com today and try to compile it with sun's C++.
Everything works fine until kit.c:



/usr/local/lang/CC/sun4c/CC -Dopenlook_kit -Ddefault_kit=SMFKit  -PIC  -Dcplusplus_2_1     -I../../../.././src/include -I/cmnusr/openwin/include   -c ../../InterViews/kit.c
CC  ../../InterViews/kit.c:
"../../InterViews/kit.c", line 81: error: syntax error
"../../InterViews/kit.c", line 81: error: syntax error
"../../InterViews/kit.c", line 126: error: syntax error
"../../InterViews/kit.c", line 126: error:  argument declaration syntax
"../../InterViews/kit.c", line 126: error: syntax error
"../../InterViews/kit.c", line 126: error: syntax error
"../../InterViews/kit.c", line 127: error: syntax error
"../../InterViews/kit.c", line 128: error: syntax error
"../../InterViews/kit.c", line 129: error: syntax error
"../../InterViews/kit.c", line 130: error: syntax error
"../../InterViews/kit.c", line 130: error:  argument type expected for begin_ra


This of course has fatal consequences latter on. 

Any ideas?

Thanks,

max

my local.def (I defined the RPC stuff which also produces a slur of
error messages)

/*
 * 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_0
**/

#undef CCDriver
#define CCDriver /usr/local/lang/CC/sun4c/CC
#undef DependCCFlags
#define DependCCFlags $(CCDEFINES) $(CCINCLUDES) -I/usr/local/lang/CC/sun4c/incl
#undef SharedCCFlags
#define SharedCCFlags -PIC

/*
 * Default customization of kits.
 * Possible flags to define:
 *	sgi_motif_kit (SMFKit), motif_kit (MFKit),
 *	openlook_kit (OLKit), bw_kit (MonoKit)
 */
#ifndef KitFlags
#define KitFlags -Dopenlook_kit -Ddefault_kit=SMFKit
#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 /usr/local/pub/lib/interviews

/*
 * 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 /cmnusr/openwin/lib/config
#undef XIncDir
#define XIncDir /cmnusr/openwin/include
#undef XLibDir
#define XLibDir /cmnusr/openwin/lib

/*
 * Define which optional parts of the system should be built by default.
 */

#define BuildRPCClasses		YES	/* requires iostreams & TCP sockets */

#define HasSunOSSharedLibraries YES	/* no shared libraries by default */

-- 
Max Ott                 max@ccrl.nj.nec.com         phone: (609)951-2469
NEC C&C Research        Princeton, NJ, 08540        fax:   (609)951-2499
Newsgroups: comp.windows.interviews