Hello,
I try to compile Smtp-proxy 1.1.3 on Solaris 8 then i get the following
messages:
********************************************************
# /usr/ccs/bin/make
gcc -ggdb -Wall -c main.c
gcc -ggdb -Wall -c smtp.c
smtp.c: In function `proxy_request':
smtp.c:446: warning: implicit declaration of function `getdomainname'
gcc -ggdb -Wall -c ip-lib.c
ip-lib.c:49: warning: missing braces around initializer
ip-lib.c:49: warning: (near initialization for `_error[0]')
ip-lib.c: In function `get_client_info':
ip-lib.c:161: warning: implicit declaration of function `inet_ntoa'
gcc -ggdb -Wall -c lib.c
gcc -o smtp.proxy main.o smtp.o ip-lib.o lib.o
Undefined first referenced
symbol in file
socket ip-lib.o
getpeername ip-lib.o
gethostbyname ip-lib.o
getdomainname smtp.o
gethostbyaddr ip-lib.o
inet_ntoa ip-lib.o
connect ip-lib.o
ld: fatal: Symbol referencing errors. No output written to smtp.proxy
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `smtp.proxy'
********************************************************
This the makefile:
********************************************************
# more makefile
CC = gcc
CFLAGS = -ggdb -Wall
TAR = smtpproxy-1.1.3
DIR = smtpproxy-1.1.3
SMTPPROXY = main.o smtp.o ip-lib.o lib.o
TARGETS = smtp.proxy
all: $(TARGETS)
-ctags *.[ch]
install: all
strip $(TARGETS)
cp $(TARGETS) /usr/local/sbin
cp *.1 /usr/local/man/man1
smtp.proxy: $(SMTPPROXY)
tar: clean
cd ..; tar cvf $(TAR).tar $(DIR); gzip $(TAR).tar
mv ../$(TAR).tar.gz .
clean:
-rm -f *.o cut out $(TARGETS) $(TAR).tar.gz
*******************************************
Any idea please thanks a lot