🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38396

Intalling X Applications With Gcc Under Solaris 2 OpenWindows

#38396
From: Haim Roman
Date: Mon, 27 Jun 1994 12:54
73 lines
3944 bytes
(I'm very sorry if this is a redundant posting.  I'm not sure if I
successfully posted it the last time)

We are running Solaris 2.3, with OpenWindows 3.3 (which is X11R5).
Our C/C++ compiler is gcc.  We have NOT installed the X distribution
from the X Consortium (nor do we plan to).  However, we will want to
install other X applications here.  This leads me to some questions.

(1) WHERE TO INSTALL -- OpenWindows sits under /usr/openwin.  The
    imake configuration files therefore cause applications to be
    installed under /usr/openwin.  However, we prefer to install under
    /opt or /usr/local, because:

	it's easy to separate what we installed from what came
	from Sun.

	upgrading the operating system won't delete the stuff we
	installed. 

    How can I arrange this to happen?  Here are some of my ideas:

	(A) create /opt/openwin as a shadow directory to /usr/openwin.
	    Thus, under /opt/openwin, all of Sun's
	    OpenWindows files can be referenced as symbolic links.
	    But the files we install will NOT be links.

	    Then I simply change the configuration files to install in
	    /opt/openwin instead of /usr/openwin.

	    But the "openwin" manual states that OpenWindows must be
	    in /usr/openwin, or it will NOT start properly.  If that
	    only affects starting up OW, fine.  But will there be
	    other software that will NOT find the files in
	    /opt/openwin?

	(B) Change the configuration files to look in both
	    /usr/openwin & /opt/openwin, but to install ONLY in
	    /opt/openwin.  Is this feasible?

    Any comments or other ideas?

(2) USING GCC -- The configuration files seem set up for Sun's
    compiler.  Simply defining HasGcc is not enough.

	(A) There is also HasGcc2.  Does anyone know it's meaning?

	(B) Sun's lex does not seem to work with gcc 2.5.6.  Here is
	    the error I got while compiling xtpanel:

		lex xtpanel_scan.l
		gcc -g -O    -I/usr/openwin/include  -DSVR4 -DSYSV 
			-DSYS_XTPANELDIR=\"/usr/openwin/lib/X11/xtpanel\"
			-c lex.yy.c
		xtpanel_scan.l:769: arguments given to macro `yylook'
		*** Error code 1

	    I'm going to try installing flex.  Does anyone have
	    experience with this?  Will I have to change any definitions
	    besides LexCmd?

	(C) We have bison 1.14 already installed.  Should I upgrade?
	    Will I have to change any definitions besides YaccCmd?

	(D) Any other problems with using gcc?

Thank you very much,
+---------------------------------------------------------------------+
| Haim (Howard) Roman	| E-MAIL: haim@cs.technion.ac.il              |
| Systems Staff 	| PHONE:  04-294350     (from  inside Israel) |
| Computer Science Dept.|         +972-4-294350 (from outside Israel) |
| Technion		| FAX:    04-294353     (from  inside Israel) |
| 32000 Haifa, Israel	|         +972-4-294353 (from outside Israel) |
+---------------------------------------------------------------------+
Technical Details
Message-ID: <Cs23v1.JsL@discus.technion.ac.il>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!news.duke.edu!MathWorks.Com!news.kei.com!wang!news

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,db49da263e129d2e,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 103734,db49da263e129d2e,start
X-Google-Attributes: gid103734,public
X-Google-Thread: 1070f0,db49da263e129d2e,start
X-Google-Attributes: gid1070f0,public
X-Google-Thread: 11035d,db49da263e129d2e,start
X-Google-Attributes: gid11035d,public
X-Google-ArrivalTime: 1994-06-27 06:29:41 PST
Newsgroups: comp.windows.x,comp.unix.solaris,comp.sys.sun.admin,gnu.gcc.help
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!news.duke.edu!MathWorks.Com!news.kei.com!wang!news
From: haim@cs.technion.ac.il (Haim Roman)
Subject: Intalling X Applications With Gcc Under Solaris 2 OpenWindows
Organization: Technion, Israel Inst. Tech., Haifa
Date: Mon, 27 Jun 1994 12:54:36 GMT
Message-ID: <Cs23v1.JsL@discus.technion.ac.il>
Keywords: X imake configuration Solaris2 OpenWindows Gcc
Sender: news@wang.com
Lines: 73