🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #14

GNU finger-1.37 installation problems

#14
From: John Eaton
Date: Thu, 29 Oct 1992 02:33
195 lines
5941 bytes
Compiling GNU finger 1.37 in a separate directory from the source
still doesn't work very well.

  * configure --prefix is not respected in the Makefiles.

  * various problems with --srcdir, vpath, and Makefile targets.

  * the use of $(SRC) in the Makefiles doesn't work.

  * some of the Makefile targets have $(CC)="$(CC)" instead of CC="$(CC)".

I was able to get clean builds after making the following changes.


diff -rc finger-1.37.orig//Makefile.in finger-1.37/Makefile.in
*** finger-1.37.orig//Makefile.in	Wed Oct 21 18:59:40 1992
--- finger-1.37/Makefile.in	Wed Oct 28 19:30:33 1992
***************
*** 4,10 ****
  VPATH = $(srcdir)
  SRC = $(srcdir)/src
  SUPPORT = $(srcdir)/support
! EXECUTABLES = $(SRC)/fingerd $(SRC)/finger $(SRC)/in.fingerd $(SRC)/in.cfingerd
  VERSION = "1.37"
  DEFS = @DEFS@
  CC = @CC@
--- 4,10 ----
  VPATH = $(srcdir)
  SRC = $(srcdir)/src
  SUPPORT = $(srcdir)/support
! EXECUTABLES = src/fingerd src/finger src/in.fingerd src/in.cfingerd
  VERSION = "1.37"
  DEFS = @DEFS@
  CC = @CC@
***************
*** 30,36 ****
  AUXOBJS = maildir.o version.o
  
  all:	$(AUXOBJS) lib/libfinger.a
! 	(cd $(SRC); $(MAKE) $(MFLAGS) CC="$(CC)" all)
  
  dummy:
  
--- 30,36 ----
  AUXOBJS = maildir.o version.o
  
  all:	$(AUXOBJS) lib/libfinger.a
! 	(cd src; $(MAKE) $(MFLAGS) CC="$(CC)" all)
  
  dummy:
  
***************
*** 40,46 ****
  # Subsequent lines contain targets that are correctly handled by inferior makefiles.
  
  $(EXECUTABLES): lib/libfinger.a
! 	(cd $(SRC); $(MAKE) $(MFLAGS) CC="$(CC)" all)
  
  install:
  	@echo
--- 40,46 ----
  # Subsequent lines contain targets that are correctly handled by inferior makefiles.
  
  $(EXECUTABLES): lib/libfinger.a
! 	(cd src; $(MAKE) $(MFLAGS) CC="$(CC)" all)
  
  install:
  	@echo
***************
*** 51,61 ****
  	false
  	
  server: $(AUXOBJS) $(EXECUTABLES)
! 	(cd $(SRC); $(MAKE) $(MFLAGS) $(CC)="$(CC)" server)
! 	(cd targets; $(MAKE) $(MFLAGS) $(CC)="$(CC)" server)
  
  client:	$(AUXOBJS) $(EXECUTABLES)
! 	(cd $(SRC); $(MAKE) $(MFLAGS) CC="$(CC)" client)
  	(cd targets; $(MAKE) $(MFLAGS) CC="$(CC)" client)
  
  realclean:	clean
--- 51,61 ----
  	false
  	
  server: $(AUXOBJS) $(EXECUTABLES)
! 	(cd src; $(MAKE) $(MFLAGS) CC="$(CC)" server)
! 	(cd targets; $(MAKE) $(MFLAGS) CC="$(CC)" server)
  
  client:	$(AUXOBJS) $(EXECUTABLES)
! 	(cd src; $(MAKE) $(MFLAGS) CC="$(CC)" client)
  	(cd targets; $(MAKE) $(MFLAGS) CC="$(CC)" client)
  
  realclean:	clean
***************
*** 64,70 ****
  
  clean:
  	rm -f version.o maildir.o 
! 	(cd $(SRC); $(MAKE) clean)
  	(cd lib; $(MAKE) clean)
  	(cd doc; $(MAKE) clean)
  	(cd targets; $(MAKE) clean)
--- 64,70 ----
  
  clean:
  	rm -f version.o maildir.o 
! 	(cd src; $(MAKE) clean)
  	(cd lib; $(MAKE) clean)
  	(cd doc; $(MAKE) clean)
  	(cd targets; $(MAKE) clean)
diff -rc finger-1.37.orig//lib/Makefile.in finger-1.37/lib/Makefile.in
*** finger-1.37.orig//lib/Makefile.in	Thu Oct 22 14:22:12 1992
--- finger-1.37/lib/Makefile.in	Wed Oct 28 18:43:43 1992
***************
*** 26,32 ****
  	$(CC) -c $(CFLAGS) $(INCFLAGS) $(DEFS) $<
  
  x_shface.o:
! 	$(CC) -c $(CFLAGS) $(INCFLAGS) -I/usr/X11R5/include $(DEFS) $*.c
  
  OTHER_FILES = showxbm showmug any-to-any dither showface
  
--- 26,33 ----
  	$(CC) -c $(CFLAGS) $(INCFLAGS) $(DEFS) $<
  
  x_shface.o:
! 	$(CC) -c $(CFLAGS) $(INCFLAGS) -I/usr/X11R5/include $(DEFS) \
! 	$(srcdir)/$*.c
  
  OTHER_FILES = showxbm showmug any-to-any dither showface
  
diff -rc finger-1.37.orig//lib/site/Makefile.in finger-1.37/lib/site/Makefile.in
*** finger-1.37.orig//lib/site/Makefile.in	Wed Oct 21 19:00:38 1992
--- finger-1.37/lib/site/Makefile.in	Wed Oct 28 18:45:20 1992
***************
*** 31,37 ****
  all: site.o $(ExtraProgs)
  
  .c.o:
! 	$(CC) -c $(CFLAGS) $(INCFLAGS) $(DEFS) $*.c
  
  site.o: $(OBJECTS)
  	ld -o site.o -r $(OBJECTS)
--- 31,37 ----
  all: site.o $(ExtraProgs)
  
  .c.o:
! 	$(CC) -c $(CFLAGS) $(INCFLAGS) $(DEFS) $(srcdir)/$*.c
  
  site.o: $(OBJECTS)
  	ld -o site.o -r $(OBJECTS)
diff -rc finger-1.37.orig//src/Makefile.in finger-1.37/src/Makefile.in
*** finger-1.37.orig//src/Makefile.in	Wed Oct 21 19:00:16 1992
--- finger-1.37/src/Makefile.in	Wed Oct 28 18:49:58 1992
***************
*** 4,11 ****
  
  SHELL = /bin/sh
  
! BINDIR = /usr/local/bin
! ETCDIR = /usr/local/etc
  INCFLAGS = -I$(srcdir)/.. -I$(srcdir)/../include
  INCLUDES = $(srcdir)/../include
  SUPPORT = $(srcdir)/../support
--- 4,13 ----
  
  SHELL = /bin/sh
  
! prefix = /usr/local
! 
! BINDIR = $(prefix)/bin
! ETCDIR = $(prefix)/etc
  INCFLAGS = -I$(srcdir)/.. -I$(srcdir)/../include
  INCLUDES = $(srcdir)/../include
  SUPPORT = $(srcdir)/../support
***************
*** 35,41 ****
  
  CCFLAGS = $(CFLAGS) $(INCFLAGS) $(LASTLOG_DEFINE) $(DEFS)
  
! AUXOBJS = $(srcdir)/../version.o $(srcdir)/../maildir.o
  NXLIBR =  $(FINGERLIB)/libfinger.a $(AUXOBJS) $(LIBOBJS) $(LIBS)
  LIBR = $(NXLIBR) $(WINDOWLIB)
  
--- 37,43 ----
  
  CCFLAGS = $(CFLAGS) $(INCFLAGS) $(LASTLOG_DEFINE) $(DEFS)
  
! AUXOBJS = ../version.o ../maildir.o
  NXLIBR =  $(FINGERLIB)/libfinger.a $(AUXOBJS) $(LIBOBJS) $(LIBS)
  LIBR = $(NXLIBR) $(WINDOWLIB)
  
--
DEC Fortran brings VAX FORTRAN quality to RISC | John W. Eaton 
ULTRIX and DEC OSF/1.   -- DEC catalog (1992). | jwe@che.utexas.edu
Technical Details
Message-ID: <9210290233.AA11382@schoch.che.utexas.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!che.utexas.EDU!jwe

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!che.utexas.EDU!jwe
From: jwe@che.utexas.EDU (John Eaton)
Newsgroups: gnu.utils.bug
Subject: GNU finger-1.37 installation problems
Message-ID: <9210290233.AA11382@schoch.che.utexas.edu>
Date: 29 Oct 92 02:33:22 GMT
Article-I.D.: schoch.9210290233.AA11382
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 195
Approved: bug-gnu-utils@prep.ai.mit.edu