tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Herve DEMARTHE (CEA France) <demarthe () alpha ! cad ! cea ! fr>
To: tru64-unix-managers
Subject: Problems installing PTS 1.1a2
Date: Thu, 01 Feb 1996 15:35:22 +0000	[thread overview]
Message-ID: <96076329121060.tru64-unix-managers.marc@archive.invalid> (raw)

Hello managers,

I encounter problems when installing PTS version 1.1a2 on my
Alpha Station 3000/600 under DU 3.2C

I want to use "standard" tools (= cc, lex, yacc) not gcc, flex, bison
because I do not know where to find them and have no time to build
tools to build yet another tools !

A) xmkmf -a does not work (launch gccmakedep ?!?!?)
B) so I go step by step :
	1) xmkmf		-> OK, but warning :
	(cpp: Warning: /usr/lib/X11/config/osf1.cf:38:
	 Macro OSMinorVersion redefined.)
	2) make Makefiles	-> OK, same warning
	3) make depend		-> "announced in doc" warnings :
	(makedepend: warning:  cannot open "lex.yy.c"
	 makedepend: warning:  cannot open "y.tab.c")
	BUT it then fails with :
	rm -f resources.h
	sed -f ../pts.sed <  > resources.h
	sh: syntax error at line 1: `>' unexpected
	*** Exit 2
	Stop.
	*** Exit 1
	Stop.

Did someone sucessfully build (and run ;-) Problem Tracking System
on Alpha's ?
I tried long ago to build an older version, it worked pretty well
but I gave up due to database format inconcistency bw OSF & Ultrix
Now the product looks pretty good (with the Web interface) but ...

Any help appreciated, regards,
+--------------------------------------------------------------+
| Herve DEMARTHE   %^)    E-Mail:   demarthe@alpha.cad.cea.fr  |
| CEA/DSM/DRFC/STEP       Tel: +33 42257527  Fax: +33 42252661 |
| CEN Cadarache Bt 506    13108 St Paul Lez Durance     FRANCE |
|         <<< Aprendiz de todo, Maestro de nada ... >>>        |
| All opinions expressed herein are mine and not those of CEA. |
+--------------------------------------------------------------+

Here is my Imake.config file :
/*
 *======================================================================
 * 
 * Imake.config -- Common Imake rules for all PTS Imakefile files.
 * Dean Collins, Sun May 08 19:38:31 1994
 *
 * IMPORTANT -- Modifications to this file will not be acted upon until
 * you run "xmkmf" and execute "make Makefiles".  (This file is included
 * during the "imake" phase, not the "make" phase {hence the name}.)
 *
 *======================================================================
 *
 * Copyright (c) 1995,1994,1993,1992 Dean Collins.
 * Copyright (c) 1992 University of Idaho, Moscow, Idaho.
 * 
 * Permission to use, copy, modify, and distribute this software and its
 * documentation free of charge for any purpose is hereby granted without
 * fee, provided that the above copyright notice appear in all copies and
 * that both that copyright notice and this permission notice appear in
 * supporting documentation, and that the names of the University of Idaho
 * and Dean Collins not be used in advertising or publicity pertaining to
 * distribution of the software without specific, written prior permission.
 * The University of Idaho and Dean Collins make no representations about
 * the suitability of this software for any purpose.  It is provided "as is"
 * without express or implied warranty.
 * 
 * THE UNIVERSITY OF IDAHO AND DEAN COLLINS DISCLAIM ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL THE UNIVERSITY OF IDAHO
 * OR DEAN COLLINS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
 * THIS SOFTWARE.
 *======================================================================
 */

/*
######################################################################
################# READ THE INSTALL DOCUMENT! #########################
######################################################################
*/

/*=====================================================================
 * If you want to use a compiler other than the default one generated
 * by your xmkmf/imake you'll need to define it here.  You no longer
 * need to do this in all the Imakefiles.  Lucky you!
 *
 * some samples...
 * 
 * CC=cc
 * CC=xlc
 * CC=gcc -fstrength-reduce -fpcc-struct-return
 * CC=gcc -fno-builtin -ansi -traditional -Dconst=''
 */
/* Recommended definition if you use gcc 2.6.0: 	*/
/* No funny stuff.*/
CC=cc 
CCOPTIONS=						


	/* Where are the lex and yacc tools? */
LEX = lex
YACC = yacc -d
/* LEX = flex */
/* YACC = bison -y -d */
 
	/* How do we link in the curses library if we need it?
	 * (This is currently only used by cpts.)
	 */
/* CURSESLIB = -lcurses */
/* CURSESLIB = -lcursesX */
CURSESLIB = -lncurses

	/* A directory for PTS. This directory should only be used by PTS. */
PTSDIR		= /usr/local/pts
/*PTSDIR	= /usr/local/lib/PTS*/
/*PTSDIR	= /local/pts*/

	/* Where will the executables be installed?
	 * Note that in previous versions this was typically /usr/bin/X11.
	 * With this version a new directory is recommended since numerouss
	 * non-X programs are part of the PTS system.
	 * NOTE:  this directory will contain set-gid programs.
	 * Users should place this in their path.  Links for certain
	 * executables (like "xpts") will also be created in default
	 * locations (like /usr/bin/X11).
	 */
BINDIR		= $(PTSDIR)/bin

	/* What directory is the configuration file in? */
CFGDIR  	= $(PTSDIR)/lib

	/* Define the location of the PTS database. Note that this
	 * is the "root" of the database, not of the PTS directories...
	 */
PTSROOT 	= $(PTSDIR)/db

	/* What's the full configuration file name? */
CONFIGFILE	= $(CFGDIR)/pts.cf

	/* The group-ID of the sysop group (an integer, NOT the name.)
	 * Don't use system group-IDs such as 0.
	 */
SYSOPGID	= 16
/*SYSOPGID	= 100*/

	/* The "support" user account *name*.  xpts will be installed 
	 * set-uid this account.  The account must exist before installation.
	 * Do not use system accounts such as root, bin, etc.
	 */
OWNER		= support
/*OWNER		= support */



/*=====================================================================
 * This section only needs to be configured if you are setting up
 * the Web parts to PTS and can otherwise be ignored.
 */

	/* The e-mail address for the above OWNER.  This will show up
	 * as a "mailto:" in the Web stuff, so it better exist.
	 * Currently, this is only really needed for the Web files.
	 */
OWNER_EMAIL	= $(OWNER)@drfc.cad.cea.fr
/*OWNER_EMAIL	= $(OWNER)@foo.bar.com */


	/* The full-name of the support "user".  This will typically
	 * be a group of people, so using the name of your MIS department
	 * or company might be appropriate.  This item will appear next to
	 * the OWNER_EMAIL in the Web documents.
	 */
OWNER_NAME	= Equipe Exploitation Unix
/*OWNER_NAME	= The Support Team*/


	/* At least one imake has problems with the macro definitions
	 * below of the form "FOO = http://foo.bar.com".  A work-around
	 * is to define SLASH like this:
	 * 	SLASH = /
	 * and define the macros like this:
	 * 	FOO = http:$(SLASH)$(SLASH)foo.bar.com
	 * The cause of this is unknown, but most people should
	 * not encounter the problem.  This is very weird.
	 */

	/* What URL represents us? (No slash "/" on right-hand-side)
	 * This URL should be accessable by (and only by) everyone you
	 * want to be accessing your PTS database via the Web.
	 */
WWW_URL		= http://alpha.cad.cea.fr
/*WWW_URL	= http://SET.ME.NOW.edu */
/*WWW_URL	= http://localhost:8080*/


	/* What URL represents the CGI directory where the PTS CGI programs
	 * will be located?  (This is not the same as the DIRECTORY where
	 * said scripts will be installed, which is defined below.  This
	 * is a URL.)  Do not end the URL with a slash "/".
	 */
CGIBIN_URL	= $(WWW_URL)/pts-bin


	/* What DIRECTORY is the CGI directory where PTS scripts and programs
	 * will be installed?  This is NOT A URL, it is just a directory name.
	 */
CGIBIN_DIR	= $(PTSDIR)/cgi-bin


	/* What DIRECTORY holds the source files for the system CGI-BIN
	 * programs?  This directory should probably contain the file util.c
	 * if it's NCSA's HTTPD.  This is optional.
	 * This is NOT A URL, it is just a directory name.
	 */
CGISRC_DIR	= /usr/local/mosaic/httpd_1.3/cgi-src
/*CGISRC_DIR	= /usr/local/etc/httpd/cgi-src*/


	/* What URL represents the directory where PTS documents (not scripts)
	 * will be located?  (This is not the same as the DIRECTORY where
	 * said documents will be installed, which is defined below.)
	 * This URL should be accessable by (and only by) everyone you
	 * want to be accessing your PTS database via the Web.
	 * Do not end the URL with a slash "/".
	 */
HTDOCS_URL	= http://alpha.cad.cea.fr/pts
/*HTDOCS_URL	= http://SET.ME.NOW/pts */
/*HTDOCS_URL	= http://localhost:8080/pts*/


	/* What DIRECTORY will PTS documents (not scripts) be installed
	 * into?  This is NOT A URL, it is just a directory name.
	 */
HTDOCS_DIR	= $(PTSDIR)/htdocs

	/* What directory contains the WAIS utilities, such as waisq?
	 */
WAISBIN		= UNDEFINED
/*WAISBIN	= /usr/local/etc/wais*/

	/* What is the WAIS query program on the server?
	 */
WAISQUERY	= $(WAISBIN)/waisq

	/* Where is the WAIS database?
	 */
WAISDIR		= $(HTDOCS_DIR)/db

	/* How often should problem logs be refreshed (in seconds) ?
	 * Default is 600 (10 minutes).
	 */
HTML_REFRESH	= 600

	/* Where are PTS images on our Web server (not our filesystem)?
	 * Typically this is "/pts/images".
	 */
IMAGES		= /pts/images

	/* The full path to the PTS icons/images/etc. is IMAGEDIR:
	 * (All of the *IMAGE files below will be installed in this
	 * directory.
	 */
IMAGEDIR	= $(HTDOCS_DIR)/images

	/* What background image to use for Netscape browsers? */
/*
#BGIMAGE	= fabric_gray.gif
#BGIMAGE	= fabric_pink.gif
#BGIMAGE	= stucco_yellow.gif
#BGIMAGE	= paper_tan.gif
*/
BGIMAGE		= rock_gray.gif

	/* What image to use as a prominant horizontal line */
LINEIMAGE1	= l2_grayline.gif

	/* A couple of misc. images, which should be in $(IMAGEDIR) */
ZOMBIEIMAGE	= zombie.gif
ZOMBIERIMAGE	= zombie_rev.gif
WIZARDIMAGE	= wizard.gif
SOLVEDIMAGE	= s3_blue.gif
UNSOLVEDIMAGE	= s3_red.gif
REOPENIMAGE	= s3_purple.gif

	/* These shouldn't need to be changed anytime soon (lets hope). */
PTSINFO_URL	= http://www.halcyon.com/dean/pts/pts.html
PTSAUTHORS_URL	= http://www.halcyon.com/dean/pts/authors.html

	/* X_LIB_DIR is used to install the app-defaults file.
	 * X_INC_ROOT is used to install bitmaps.
	 * YMMV....
	 */
X_LIB_DIR	= /usr/lib/X11
X_INC_ROOT	= /usr/include


/*=====================================================================
 * OS-dependant definitions.  See INSTALL for descriptions.
 */
PRINTER 	= /usr/bin/lpr
PRINTER_OPTS	= 
MAILER		= /usr/lib/sendmail
MAILER_OPTS	= -t
OS_DEFINES	= -DOSF1 -DSYSV -DINTERNET_EMAIL #-DUSESYSDEFERR #-DNOEXTVAR #-DDEBUG -g


/* A Linux sample:
PRINTER 	= /usr/ucb/lpr
PRINTER_OPTS	= 
MAILER		= /usr/lib/sendmail
MAILER_OPTS	= -t
#OS_DEFINES	= -DBSD -DFLEX -DNOEXTVAR -DINTERNET_EMAIL -DSIGHANDLER=__sighandler_t 
#-DDEBUG -g
#OS_DEFINES	= -DBSD -DFLEX -DNOEXTVAR -DINTERNET_EMAIL -DSIGHANDLER=int -DNCURSES 
-I/usr/include/ncurses -DDO_PRIORITY -DDEBUG #-g
OS_DEFINES	= -DBSD -DFLEX -DNOEXTVAR -DINTERNET_EMAIL -DSIGHANDLER=void -DNCURSES 
-I/usr/include/ncurses -DDO_PRIORITY -DDEBUG #-g
*/

/* An AIX sample:
PRINTER 	= /usr/bin/lp
PRINTER_OPTS	= 
MAILER		= /usr/lib/sendmail
MAILER_OPTS	= -t
OS_DEFINES	= -DBSD -DBSD_INCLUDES -DINTERNET_EMAIL #-DDEBUG -g
*/


/* An HP-UX sample:
PRINTER 	= /usr/bin/lpr
PRINTER_OPTS	= 
MAILER		= /usr/lib/sendmail
MAILER_OPTS	= -t
OS_DEFINES	= -DSYSV -DINTERNET_EMAIL -DFLEX -I/usr/local/include -I/usr/include/X11R5 
-L/usr/lib/X11R5 -L/usr/lib/X11R4 -DDEBUG -DALLOW_EDITRES #-g
*/


/* A SunOS sample:
PRINTER 	= /usr/ucb/lpr
PRINTER_OPTS	= 
MAILER		= /usr/lib/sendmail
MAILER_OPTS	= -t
OS_DEFINES	= -DSUNOS -DBSD -DNOEXTVAR -DINTERNET_EMAIL #-DDEBUG -g
MISSING_SRCS	= strerror.c
MISSING_OBJS	= strerror.o
*/

/* Another SunOS sample:
PRINTER 	= /usr/ucb/lpr
PRINTER_OPTS	= 
MAILER		= /usr/lib/sendmail
MAILER_OPTS	= -t
OS_DEFINES	= -DSUNOS -DBSD -DNOEXTVAR -DINTERNET_EMAIL \
		  -I/usr/openwin/include -L/usr/openwin/lib #-DDEBUG -g
MISSING_SRCS	= strerror.c
MISSING_OBJS	= strerror.o
MISSING_LIBS	= -L/usr/lib -lm
*/

/* An OSF/1 sample:
PRINTER 	= /usr/bin/lpr
PRINTER_OPTS	= 
MAILER		= /usr/lib/sendmail
MAILER_OPTS	= -t
OS_DEFINES	= -DOSF1 -DSYSV -DINTERNET_EMAIL #-DUSESYSDEFERR #-DNOEXTVAR #-DDEBUG -g
*/

/* An SCO sample:
PRINTER       = /usr/bin/lp
PRINTER_OPTS  =
MAILPROG      = /usr/bin/mailx
#if ScoVersion == 324
OS_DEFINES    = -DSYSV -O2 -m486 -DSCO -DNOEXTVAR -DUSESYSDEFERR \
		-DINTERNET_EMAIL -DSCO324 #-DDEBUG -g
#else
OS_DEFINES    = -DSYSV -O2 -m486 -DSCO -DNOEXTVAR -DUSESYSDEFERR \
		-DINTERNET_EMAIL #-DDEBUG -g
#endif
MISSING_SRCS	= strftime.c truncate.c
MISSING_OBJS	= strftime.o truncate.o
*/

/*=====================================================================
 *
 *For debugging add this to OS_DEFINES on most systems:
 *		-DDEBUG -g 
 *Debugging with Apollo cc:
 *		-DDEBUG -g -W0,-dba
 *
 *======================================================================
 */

/* For AIX, you _may_ need these (but probably not):
TOP = /usr
EXTRA_LIBRARIES = -lbsd
*/

/*
 * ###############################################################
 * ###  YOU SHOULDN'T NEED TO MODIFY ANYTHING BELOW THIS LINE.
 * ###  All customization is done above.
 * ###############################################################
 */

/*
 * #####################################################################
 * # The generic CDEBUGFLAGS definition.  Modify vars. above, not here.
 *
 */
CDEBUGFLAGS = -DXPTS -DPTS $(OS_DEFINES)

/************************************************************************/

/*This rule ensures that the "uninstall" rule below is not the default...*/
default: all

/*
 * PTSInstallNonExecFile - generate rules to install a data file
 *			   Based upon InstallNonExecFile.
 *			   DOES NOT OVER-WRITE DESTINATION FILE.
 */
#ifndef PTSInstallNonExecFile
#define PTSInstallNonExecFile(file,dest,destdir,owner)			@@\
install:: file								@@\
	MakeDir(destdir)						@@\
	chown owner destdir						@@\
	if [ ! -f destdir/dest ]; then $(INSTALL) -c $(INSTDATFLAGS) -o owner file 
destdir/dest; else echo destdir/dest already exists -- skipping pts.cf install; fi
#endif /* PTSInstallNonExecFile */


/*
 * NOTE: This rule is just an experimental attempt at something I wish
 * was standard.  How many time have you wished you had a simple way to
 * remove everything associated with a single application?  (Not that
 * you'd EVER want to remove pts... :-)  It doesn't remove the database
 * or config file.
 */
uninstall::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) . ;\
	do \
		if [ "$$i" != "." ] ; \
		then (cd $$i ; echo "uninstalling" "in $(CURRENT_DIR)/$$i..."; \
			$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' uninstall); \
		fi ; \
	done
	@echo
	@echo "The database $(PTSROOT) and the config file"
	@echo "$(CONFIGFILE) have been left alone."
	@echo

/*==================== End of Imake.config ====================*/

                 reply	other threads:[~1996-02-01 15:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox