[153] in Pthreads mailing list archive

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

Makefile bug? pthreads-1_60_beta4

daemon@ATHENA.MIT.EDU (John Shaw)
Wed Oct 25 11:19:25 1995

Date: Wed, 25 Oct 1995 06:48:07 PDT
From: jshaw@wrc.xerox.com (John Shaw)
To: pthreads@MIT.EDU

I brought down pthreads-1_60_beta4 and tried to install it on a Sun-10
running 4.1.3. Configure seemed to run OK, but the Makefiles it generate
don't work, ie.

mansun% make
make: Fatal error in reader: Makefile, line 18: Badly formed macro assignment
mansun% cat Makefile
# Generated automatically from Makefile.in by configure.
#       @(#)Makefile    5.2 (Berkeley) 3/5/91
#

LIB=pthread
#NOPIC=
#NOPROFILE=1
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/include -I${srcdir}/include -DPTHREAD_KERNEL
CDEBUGFLAGS= -g -O -Werror
CFLAGS+= ${CDEBUGFLAGS}
# CFLAGS+= ${CPPFLAGS} <- done by bsd.lib.mk
CFLAGS+= ${CPPFLAGS} 
LIBDIR= $(exec_prefix)/lib
BINDIR= $(exec_prefix)/bin
INCDIR= $(exec_prefix)/include
MANDIR= $(exec_prefix)/man

.OBJDIR != if test -d ${.CURDIR}/obj ; then true ; else mkdir ${.CURDIR}/obj || exit 1 ; fi ; echo ${.CURDIR}/obj

# Standard bsd install rules look for the "install" program, rather than
# using some variable.  So, hack things so that that install rule works.
BINGRP != echo " " `groups` " " | sed 's/ [0-9][0-9]* / /g' | awk '{print $$1}'
BINOWN != echo $${USER}
LIBMODE = 644 # so ranlib can run!

.include "config.flags"

# %!$@ pmake seems to automagically cd into the obj directory, so relative 
# srcdir references are completely botched.  Try to figure out an absolute
# pathname for srcdir here, and live with it.
srcdir = $(srctop)

beforeinstall:: install-dirs

.include "${srcdir}/pthreads/Makefile.inc"
.include "${srcdir}/stdlib/Makefile.inc"
.include "${srcdir}/stdio/Makefile.inc"
.include "${srcdir}/string/Makefile.inc"
.include "${srcdir}/gen/Makefile.inc"
.include "${srcdir}/net/Makefile.inc"
.include "${srcdir}/scripts/Makefile.inc"

.include <bsd.lib.mk>

$(OBJS) : $(types) $(paths)

Makefile: ${srcdir}/config/Makefile.in
        cd ${.CURDIR} && sh config.status

all-lib : libpthread.a
install : install-bin install-include
mansun% 

Am I missing something here?

Two other questions:
  1) Is there an easy way to use the SunPro-3.0.1 compilers rather than GNU?
  2) Is there a port for Solaris-2.4 (which has its own threads package)?

... John G. Shaw

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