Problems Compiling 1.9.18p6 with SCO 3.2v4.2

Tim Rice tim at trr.metro.net
Mon May 11 22:36:59 GMT 1998


On Tue, 12 May 1998, AIM User! wrote:

> Having a couple problems with Samba:
> 
[snip]
> 
> Also I keep getting errors when linking that it can't find .o files in the
> subdirectories, when compiling them it creates for instance ubi_dLinkList.o in
> the parent directory but when linking expects it to be in the subdirectory
> ubiqx. I've been getting around this by copying the .o's into the
> subdirectories.

It's not just the SCO UNIX native compilers that have this problem but
all the UnixWare 1.x and 2.x native compilers also. Attached is a patch for
Makefile that will fix the problem. The patch was made from a 1.9.18p3
Makefile but may well work for p6.
In addition to the patch, you may have to add the following
line to your SCO section.
srcdir=./

> 
> Please email directly with solutions.
> 
> Thanks in advance.
> 

--
Tim Rice			Multitalents	(707) 887-1469 (voice)
tim at trr.metro.net
-------------- next part --------------
*** Makefile.old	Tue Feb 17 15:18:43 1998
--- Makefile	Sun Feb 22 13:02:40 1998
***************
*** 735,740 ****
--- 741,836 ----
  .c.o: $(INCLUDES)
  	@echo Compiling $*.c
  	@$(CC) $(CFLAGS) -c $(srcdir)$*.c -o $(srcdir)$*.o
+ 
+ mem_man/mem_man.o: $(INCLUDES) mem_man/mem_man.c mem_man/mem_man.h
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv mem_man.o mem_man/mem_man.o
+ 
+ ubiqx/ubi_dLinkList.o: $(INCLUDES) ubiqx/ubi_dLinkList.h ubiqx/ubi_dLinkList.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv ubi_dLinkList.o ubiqx/ubi_dLinkList.o 
+ 
+ rpc_pipes/lsa_hnd.o: $(INCLUDES) rpc_pipes/lsa_hnd.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv lsa_hnd.o rpc_pipes/lsa_hnd.o 
+ 
+ rpc_pipes/lsaparse.o: $(INCLUDES) rpc_pipes/lsaparse.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv lsaparse.o rpc_pipes/lsaparse.o 
+ 
+ rpc_pipes/ntclientlsa.o: $(INCLUDES) rpc_pipes/ntclientlsa.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv ntclientlsa.o rpc_pipes/ntclientlsa.o 
+ 
+ rpc_pipes/ntclientnet.o: $(INCLUDES) rpc_pipes/ntclientnet.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv ntclientnet.o rpc_pipes/ntclientnet.o 
+ 
+ rpc_pipes/ntclientpipe.o: $(INCLUDES) rpc_pipes/ntclientpipe.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv ntclientpipe.o rpc_pipes/ntclientpipe.o 
+ 
+ rpc_pipes/pipe_hnd.o: $(INCLUDES) rpc_pipes/pipe_hnd.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv pipe_hnd.o rpc_pipes/pipe_hnd.o 
+ 
+ rpc_pipes/pipenetlog.o: $(INCLUDES) rpc_pipes/pipenetlog.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv pipenetlog.o rpc_pipes/pipenetlog.o 
+ 
+ rpc_pipes/pipentlsa.o: $(INCLUDES) rpc_pipes/pipentlsa.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv pipentlsa.o rpc_pipes/pipentlsa.o 
+ 
+ rpc_pipes/pipesamr.o: $(INCLUDES) rpc_pipes/pipesamr.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv pipesamr.o rpc_pipes/pipesamr.o 
+ 
+ rpc_pipes/pipesrvsvc.o: $(INCLUDES) rpc_pipes/pipesrvsvc.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv pipesrvsvc.o rpc_pipes/pipesrvsvc.o 
+ 
+ rpc_pipes/pipeutil.o: $(INCLUDES) rpc_pipes/pipeutil.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv pipeutil.o rpc_pipes/pipeutil.o 
+ 
+ rpc_pipes/pipewkssvc.o: $(INCLUDES) rpc_pipes/pipewkssvc.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv pipewkssvc.o rpc_pipes/pipewkssvc.o 
+ 
+ rpc_pipes/samrparse.o: $(INCLUDES) rpc_pipes/samrparse.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv samrparse.o rpc_pipes/samrparse.o 
+ 
+ rpc_pipes/smbparse.o: $(INCLUDES) rpc_pipes/smbparse.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv smbparse.o rpc_pipes/smbparse.o 
+ 
+ rpc_pipes/srvparse.o: $(INCLUDES) rpc_pipes/srvparse.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv srvparse.o rpc_pipes/srvparse.o 
+ 
+ rpc_pipes/wksparse.o: $(INCLUDES) rpc_pipes/wksparse.c
+ 	@echo Compiling $*.c
+ 	@$(CC) $(CFLAGS) -c $(srcdir)$*.c
+ 	mv wksparse.o rpc_pipes/wksparse.o 
  
  smbd: $(SMBDOBJ) $(ARCFOUR_OBJ)
  	@echo Linking smbd


More information about the samba mailing list