[811] in Zephyr_Bugs

home help back first fref pref prev next nref lref last post

configure in zephyr 2.1 beta build bogus Makefile for xzwrite

daemon@ATHENA.MIT.EDU (Paul A. Chambers)
Tue Aug 6 15:51:43 1996

From: "Paul A. Chambers" <pac@emc.com>
Date: Tue, 6 Aug 1996 15:53:43 -0400
To: zephyr-bugs@MIT.EDU

Hi,

I just tried installing zephyr-2.1.beta1 on a DEC Alpha OSF1 V4.0 system and
had problems with xzwrte's Makefile built by configure.  Here is the output
from the make:

for i in syslogd xzwrite zaway zctl zleave zlocate zmailnotify znol  zpopnotify
zshutdown_notify zstat zwgc zwrite; do (cd $i; make all) || exit 1; done
cc -O -L../../lib/zephyr -L../../lib/dyn -L../../lib/et  LIBS=-lzephyr -ldyn
-lXaw -lXmu -lXt  -lX11 -lXext  -ldnet_stub  -lcom_err -o xzwrite interface.o
resource.o destlist.o util.o bfgets.o gethomedir.o  dest_window.o xzwrite.o
edit_window.o zephyr.o GetString.o Popup.o  yank.o menu_window.o logins.o
ld:
Can't open: LIBS=-lzephyr (No such file or directory)
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.

Here  is the Makefile that was generated by configure. Notice it has a line
continuation on the LDFLAGS line which blows up the make:

# Generated automatically from Makefile.in by configure.
SHELL = /bin/sh

prefix=/usr/local
exec_prefix=${prefix}
datadir=${prefix}/share
confdir=$(prefix)/etc/zephyr
sbindir=${exec_prefix}/sbin
lsbindir=$(exec_prefix)/sbin

includedir=${prefix}/include
mandir=${prefix}/man
libdir=${exec_prefix}/lib
bindir=${exec_prefix}/bin

srcdir=.
top_srcdir=../..
BUILDTOP=../..
CC=cc
INSTALL=/usr/bin/installbsd -c

DEBUG=-O
CFLAGS=${DEBUG} -DDATADIR=\"${datadir}\" -I${top_srcdir}/h \
        -I${BUILDTOP}/h
LDFLAGS=${DEBUG} -L${BUILDTOP}/lib/zephyr -L${BUILDTOP}/lib/dyn -L$(BUILDTOP)
/lib/et \

LIBS=-lzephyr -ldyn -lXaw -lXmu -lXt  -lX11 -lXext  -ldnet_stub \
      -lcom_err

OBJS=   interface.o resource.o destlist.o util.o bfgets.o gethomedir.o \
        dest_window.o xzwrite.o edit_window.o zephyr.o GetString.o Popup.o \
        yank.o menu_window.o logins.o

all: xzwrite

xzwrite: ${OBJS} ${BUILDTOP}/lib/zephyr/libzephyr.a \
         ${BUILDTOP}/lib/dyn/libdyn.a $(BUILDTOP)/lib/et/libcom_err.a
        ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}

check:

install: xzwrite XZwrite
        ${INSTALL} -m 755 -s xzwrite ${DESTDIR}${bindir}
        ${INSTALL} -m 644 ${srcdir}/xzwrite.1 ${DESTDIR}${mandir}/man1
        ${INSTALL} -m 644 XZwrite ${DESTDIR}${datadir}

xzwrite: ${OBJS} ${BUILDTOP}/lib/zephyr/libzephyr.a \
         ${BUILDTOP}/lib/dyn/libdyn.a $(BUILDTOP)/lib/et/libcom_err.a
        ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}

check:

install: xzwrite XZwrite
        ${INSTALL} -m 755 -s xzwrite ${DESTDIR}${bindir}
        ${INSTALL} -m 644 ${srcdir}/xzwrite.1 ${DESTDIR}${mandir}/man1
        ${INSTALL} -m 644 XZwrite ${DESTDIR}${datadir}
        ${INSTALL} -m 644 ${srcdir}/xzwrite.bitmap ${DESTDIR}${datadir}

clean:
        rm -f ${OBJS} xzwrite

${OBJS}: xzwrite.h xzwrite-proto.h ${top_srcdir}/h/sysdep.h
${OBJS}: ${BUILDTOP}/h/config.h ${BUILDTOP}/h/zephyr/zephyr.h
${OBJS}: ${BUILDTOP}/h/zephyr/zephyr_err.h
destlist.o logins.o xzwrite.o zephyr.o: ${top_srcdir}/h/dyn.h

.PHONY: all check install clean


Please let me know if this problem has been resolved.

Regards,
Pac


home help back first fref pref prev next nref lref last post