I am trying to compile a program on SCO-UNIX 3.2v4.2. I have installed the development system but nothing else. The makefile looks like this:
When I try to compile srv I get the following message:
# make srv
cc -Zi -I ./ -o srv srv.c srv.o init_proc.o sym_proc.o msg_proc.o file_proc.o host_proc.o mcn_proc.o req_proc.o get_proc.o data_proc.o err_proc.o to_ids.o from_ids.o ids_proc.o ulib.o ipclib.o parserlib.o idsclib.o -lnsl_s -lsocket
srv.c
defines.h(264) : warning C4005: 'DEBUG' : macro redefinition
defines.h(270) : warning C4005: 'DEBUG1' : macro redefinition
defines.h(276) : warning C4005: 'DEBUG2' : macro redefinition
defines.h(282) : warning C4005: 'DEBUG3' : macro redefinition
ld libnsl_s.a: can't find library libsocket.a
*** Error code 1
I think I am missing some libraries - nsl_s and socket. Can anyone advise me what I should do next?
Thanks.
Code:
LIBES = ulib.o ipclib.o parserlib.o idsclib.o
OBJS = srv.o init_proc.o sym_proc.o msg_proc.o file_proc.o host_proc.o mcn_proc.o req_proc.o get_proc.o data_proc.o err_proc.o to_ids.o from_ids.o ids_proc.o
INC = ./
C_INC = $(INC)defines.h $(INC)db_struct.h $(INC)globals.h $(INC)mcn_struct.h $(INC)ipc_def.h $(INC)net_struct.h
srv : srv.c $(OBJS) $(LIBES) $(C_INC)
cc -Zi -I ./ -o srv srv.c $(OBJS) $(LIBES) -lnsl_s -lsocket
chmod 0750 srv
When I try to compile srv I get the following message:
# make srv
cc -Zi -I ./ -o srv srv.c srv.o init_proc.o sym_proc.o msg_proc.o file_proc.o host_proc.o mcn_proc.o req_proc.o get_proc.o data_proc.o err_proc.o to_ids.o from_ids.o ids_proc.o ulib.o ipclib.o parserlib.o idsclib.o -lnsl_s -lsocket
srv.c
defines.h(264) : warning C4005: 'DEBUG' : macro redefinition
defines.h(270) : warning C4005: 'DEBUG1' : macro redefinition
defines.h(276) : warning C4005: 'DEBUG2' : macro redefinition
defines.h(282) : warning C4005: 'DEBUG3' : macro redefinition
ld libnsl_s.a: can't find library libsocket.a
*** Error code 1
I think I am missing some libraries - nsl_s and socket. Can anyone advise me what I should do next?
Thanks.