Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot quite compile olvwm

2 views
Skip to first unread message

Vidiot

unread,
Feb 7, 1994, 4:45:29 PM2/7/94
to
In article <CKp39...@euu.siemens-albis.ch> j...@euu.siemens-albis.ch (Jon Connell) writes:
<I'm having problems compiling Olvwm3.4 under SunOs4.1.3. I've successfully
<compiled and installed XView3.2, but get the following error when I
<make Olvwm:
<cc -O -pipe -I/usr/X11/contrib/xview3.2/include -I. -I/usr/X11R5/include -DOW_I18N_L3 -DSHAPE -DIDENT -target sun4 -c images.c
<"images.c", line 54: operands of = have incompatible types
<"images.c", line 70: operands of = have incompatible types
<"images.c", line 86: operands of = have incompatible types
<"images.c", line 102: operands of = have incompatible types
<
<(gcc doesn't work either - it produces undefined symbols when linking).

I don't know anything about olvwm3.4. I know about olvwm3.3 and olvwm4.0,
but not 3.4.

Here is my Makefile for olvwm4:


.KEEP_STATE:
#
# Makefile for olvwm
#
# To make olvwm, simply type make
# To install olvwm, type make install

# Set this to the directory to place the olvwm executable
INSTALLDIR = /usr/local/bin

# If you want to use the OPENWINDOWS help facility, then set HELPDIR
# to the directory where those files are kept. If you cannot write
# to that directory but still want to install the helpfile, set HELPDIR
# to some other directory and add that directory to your HELPPATH.
# If you don't want to install the help file at all, set HELPDIR to /dev/null.
HELPDIR = ${OPENWINHOME}/lib/help

# Where to install the man pages: man1 dir is where olvwm.man will go;
# and man5 dir is where olvwmrc.man will go; you may want to set these
# to a local directory somewhere.
# If you don't want to install the man pages, set these to /dev/null.

MAN1DIR = /usr/local/man/man1
MAN5DIR = /usr/local/man/man5

# If you don't have olwm installed anywhere and want to install the olwm
# man page (which discusses most of the olvwm functionality too) uncomment
# out the following line
#OLWMMAN = olwm.man

#
# Set MORECCFLAGS to any options you want to pass to the compiler. These
# include and defines, and debugging and/or optimization flags, and the like.
# Also, if you have headers for things like the XPM library in a non-standard
# place, include the appropriate -I flag here.
#
# There are a bunch of defines, and I can't honestly say I've used or even
# tested all of them (since much of this code came from the xview 3.2 release)
# and certainly I haven't used all combinations of them. See below for
# suggested settings:
#
# Here's a set of possible defines:
# -DALLPLANES Support the AllPlanes extension (valid in SunOs/Solaris)
# -DDEBUG Include some debugging code
# -DIDENT Include ident directives for the compiler
# -DMAXPID=32768 For 386BSD
# -DMEMDEBUG To debug the memory allocation
# -DOW_I18N_L3 Include support for Level 3 internationalization
# (Note: I haven't tested without this, and I can't
# test it in any locale but C, so include it, but
# take it with a grain of salt -- the original olwm
# code will work, but the olvwm extensions may not
# support the correctinternationalization)
# -DOW_I18N_L4 Include support for Level 4 internationalization
# (Note: This is not yet supported, but it may work)
# -DREGEXP Support for the 386 BSD regular expression library
# -DRLIMIT_NOFILE Support for the 386BSD/Ultrix RLIMIT calls
# -DSHAPE Support the shapes extension (valid in SunOS/Solaris)
# -DSYSV Support for System V (Release 3 or 4)
# -DSVR4 Support for System V Release 4 (you must also include
# -DSYSV)
# -DXPM Support the XPM color pixmaps -- requires that you
# have the xpm library somewhere
#
# I haven't tested this on Solaris 1.x, but I'd suggest
MORECCFLAGS=-DOW_I18N_L3 -DSHAPE -DIDENT

# For a generic Solaris 2.x system, I'd suggest
#MORECCFLAGS=-DOW_I18N_L3 -DSHAPE -DSVR4 -DSYSV -DIDENT -x O4

#
# Set LDFLAGS to any link options you want. For a generic Solaris 1.x
# system, I'd suggest
#LDFLAGS=-L${OPENWINHOME}/lib /auto/X11R5/lib/libXpm.a
LDFLAGS=-L${OPENWINHOME}/lib
#
# For Solaris 2.x, I'd suggest
#LDFLAGS=-L${OPENWINHOME}/lib -R ${OPENWINHOME}/lib -lintl

#
# Which compiler to use
CC = gcc

#
# You shouldn't need to change anything below this line

INC = -I${OPENWINHOME}/include
CFLAGS = ${INC} ${MORECCFLAGS}

HEADERS = cmdstream.h cursors.h debug.h defaults.h dsdm.h environ.h error.h \
events.h gettext.h globals.h group.h helpcmd.h i18n.h iconimage.h \
iconmask.h kbdfuncs.h list.h mem.h menu.h notice.h olcursor.h \
olgx_impl.h ollocale.h olwm.h patchlevel.h properties.h resources.h \
screen.h selection.h slots.h st.h virtual.h win.h

SRCS = atom.c client.c cmdstream.c cursors.c debug.c defaults.c dsdm.c \
environ.c error.c evbind.c events.c fontset.c gettext.c gif.c group.c \
helpsend.c i18n.c images.c info.c kbdfuncs.c list.c mem.c menu.c \
moveresize.c notice.c ol_button.413.c ol_button.svr4.c olvwmrc.c \
olwm.c pixmap.c properties.c reduce.c resources.c screen.c \
selection.c services.c slave.c slots.c st.c states.c usermenu.c \
usleep.c virtual.c win.c winbusy.c winbutton.c wincolor.c winframe.c \
wingframe.c winicon.c winipane.c winmenu.c winnofoc.c winpane.c \
winpinmenu.c winpush.c winresize.c winroot.c

LIBS = ${LDFLAGS} -lXpm -lolgx -lXext -lX11 -ll -lm

OBJS = ${SRCS:.c=.o}

olvwm : ${OBJS}
${CC} -o olvwm ${OBJS} ${LIBS}

lint:
lint ${CFLAGS} ${SRCS}

parse.c : parse.l
lex -t parse.l > parse.c

olvwmrc.c : olvwmrc.y
yacc olvwmrc.y
mv y.tab.c olvwmrc.c

olvwmrc.o : parse.c olvwmrc.c

clean :
/bin/rm -f olvwm .make.state .nse_depinfo parse.c olvwmrc.c *.o core errs ,* .emacs_* tags TAGS make.log MakeOut "#"*

install:
@echo "Installing olvwm in $(INSTALLDIR)"
@/bin/cp olvwm $(INSTALLDIR)
@echo "Installing help file in $(HELPDIR)"
@/bin/cp olvwm.info $(HELPDIR)
@echo "Installing olvwm man page in $(MAN1DIR)"
@/bin/cp olvwm.man olvwm.1
@/bin/cp olvwm.1 $(MAN1DIR)
@/bin/rm -f olvwm.1
@echo "Installing olvwmrc man page in $(MAN5DIR)"
@/bin/cp olvwmrc.man olvwmrc.5
@/bin/cp olvwmrc.5 $(MAN5DIR)
@/bin/rm -f olvwmrc.5
-@/bin/cp ${OLWMMAN} ${MAN1DIR}/olwm.1 >/dev/null 2>&1
--
harvard\
ucbvax!uwvax!astroatc!ftms!brown or uu2.psi.com!ftms!brown
rutgers/
INTERNET: br...@wi.extrel.com or ftms!brown%astroa...@cs.wisc.edu

Chatterjee S

unread,
Feb 9, 1994, 1:39:34 PM2/9/94
to
In article <CKp39...@euu.siemens-albis.ch>, j...@euu.siemens-albis.ch (Jon Connell) writes:
|> I'm having problems compiling Olvwm3.4 under SunOs4.1.3. I've successfully
|> compiled and installed XView3.2, but get the following error when I
|> make Olvwm:
|> cc -O -pipe -I/usr/X11/contrib/xview3.2/include -I. -I/usr/X11R5/include -DOW_I18N_L3 -DSHAPE -DIDENT -target sun4 -c images.c
|> "images.c", line 54: operands of = have incompatible types
|> "images.c", line 70: operands of = have incompatible types
|> "images.c", line 86: operands of = have incompatible types
|> "images.c", line 102: operands of = have incompatible types
|>
|> (gcc doesn't work either - it produces undefined symbols when linking).
|>
|> Any ideas?
|>
|> Thanks.
|> --
|>
|> All the best,
|>
|> Jon Connell.

Jon, evidently the author says that the problem you are having
is due to a bug in the cc compiler.

I had the same problem with gnu, ie. "_gettext" symbol not found!
I got around it by changing the "#ifdef NOT" to "#ifndef NOT" in
gettext.c. (The symbol XvNeedsGettext inXView.tmpl) should have
fixed this, but I didn't have time to trace it!

Good Luck!

BTW, I'm having trouble running my old (OW2.0) deskset tools...
can't provide cmd line options! Let me know if you have the same
trouble or if you find solutions!

Shash

--

+--------------------------------------------------------------------+
+ EMAIL: l11...@lfwc.lockheed.com +
+--------------------------------------------------------------------+
+ Shash Chatterjee +
+ Electronic Systems Design & Integration +
+ Lockheed Fort Worth Company +
+ P.O. Box 748, MZ1719 VOICE: (817) 763-1495 +
+ Ft. Worth, TX 76101 FAX: (817) 777-2115 +
+--------------------------------------------------------------------+

Vidiot

unread,
Feb 10, 1994, 3:06:02 PM2/10/94
to
In article <CKyzu...@butch.lmsc.lockheed.com> l11...@lfwc.lockheed.com writes:
<In article <CKp39...@euu.siemens-albis.ch>, j...@euu.siemens-albis.ch (Jon Connell) writes:
<|> I'm having problems compiling Olvwm3.4 under SunOs4.1.3. I've successfully
<|> compiled and installed XView3.2, but get the following error when I
<|> make Olvwm:
<|> cc -O -pipe -I/usr/X11/contrib/xview3.2/include -I. -I/usr/X11R5/include -DOW_I18N_L3 -DSHAPE -DIDENT -target sun4 -c images.c
<|> "images.c", line 54: operands of = have incompatible types
<|> "images.c", line 70: operands of = have incompatible types
<|> "images.c", line 86: operands of = have incompatible types
<|> "images.c", line 102: operands of = have incompatible types
<|>
<|> (gcc doesn't work either - it produces undefined symbols when linking).
<
<Jon, evidently the author says that the problem you are having
<is due to a bug in the cc compiler.
<
<I had the same problem with gnu, ie. "_gettext" symbol not found!
<I got around it by changing the "#ifdef NOT" to "#ifndef NOT" in
<gettext.c. (The symbol XvNeedsGettext inXView.tmpl) should have
<fixed this, but I didn't have time to trace it!
<
<Good Luck!
<
<BTW, I'm having trouble running my old (OW2.0) deskset tools...
<can't provide cmd line options! Let me know if you have the same
<trouble or if you find solutions!

Gcc 2.5.7 works great. Which version are you using?

0 new messages