[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: zmailer-2.99.40 at the usual place
Just some quick hacks on 2.99.40 compile under a stock Solaris sparc4:
SunOS srv 5.5 Generic sun4m sparc SUNW,SPARCstation-4
(only foreign addition is gcc 2.7.2, otherwise everything else is stock)
These may likely not be the best mods, but happily, 2.99.40 all compiles
after these minor changes:
1.
--
cd ../router/libdb; make libzmdb.a
r.c hostsfile.c incore.c ndbm.c ordered.c unordered.c yp.c
dbm.c:16: dbm.h: No such file or directory
added comments : /* #define HAVE_DBM_H 1 */ in config.h so it will
only use ndbm.
2.
--
cd ../libc; make libzc.a
...
gcc -g -DHAVE_CONFIG_H -I.. -I../include -c syslog.c
syslog.c: In function `vsyslog':
syslog.c:160: `O_WRONLY' undeclared (first use this function)
syslog.c:160: (Each undeclared identifier is reported only once
syslog.c:160: for each function it appears in.)
syslog.c: In function `openlog':
syslog.c:217: `F_SETFD' undeclared (first use this function)
*** Error code 1
(both of these are in /usr/include/sys/fcntl.h, called from
/usr/include/fcntl.h )
added #include <fcntl.h> to syslog.c
3.
--
cd splay; make DEFINES="-g -DDEBUG -DTRACE -DPROFILESIZES"
DEFS="-DHAVE_CONFIG_H" \
LIBMALLOC=../../libs/libmalloc_d.a COPTS="-g" CC="gcc"
gcc -g -DHAVE_CONFIG_H -I.. -I../include -c smtpserver.c
gcc -g -DHAVE_CONFIG_H -I.. -I../include -c version.c
gcc -g -DHAVE_CONFIG_H -I.. -I../include -c rfc821scn.c
gcc -g -DHAVE_CONFIG_H -I.. -I../include -c debugreport.c
gcc -g -DHAVE_CONFIG_H -I.. -I../include -c loadaver.c
gcc -g -DHAVE_CONFIG_H -I.. -I../include -c fdstatfs.c
gcc -g -DHAVE_CONFIG_H -I.. -I../include -c wantconn.c
gcc -g -DHAVE_CONFIG_H -I.. -I../include -o smtpserver smtpserver.o
version.o rfc821scn.o debugreport.o loadaver.o fdstatfs.o wantconn.o
-L../libs -lz -lzc -lident -lmalloc_d -lelf -lresolv -lsocket -lnsl
Undefined first referenced
symbol in file
kvm_read loadaver.o
kvm_open loadaver.o
kvm_close loadaver.o
kvm_nlist loadaver.o
ld: fatal: Symbol referencing errors. No output written to smtpserver
*** Error code 1
-lkvm seems to be missing in the local compile call...
added it to smtpserver/Makefile:
SMTPSERVER_LIB= -lkvm -lelf -lresolv -lsocket -lnsl
4.
--
making all in utils/makendbm
gcc -g -DHAVE_CONFIG_H -I../../include -I../.. -c makendbm.c
makendbm.c: In function `usage':
makendbm.c:48: `sys_nerr' undeclared (first use this function)
makendbm.c:48: (Each undeclared identifier is reported only once
makendbm.c:48: for each function it appears in.)
makendbm.c:49: `sys_errlist' undeclared (first use this function)
*** Error code 1
did compile in zmailer-2.99.27...hmmm... what's missing here is
declarations for:
extern int errno;
extern char *sys_errlist[];
extern int sys_nerr;
in makendbm.c and ndbmlook.c (I just uncommented them - they aren't
declared in <errno.h> under Solaris.
Haven't tested it fully yet, but the router seems to work:
zmailer-2.99.40/router>./router -i
ZMailer router (2.99.40 #1: Fri Nov 1 13:24:08 MST 1996)
jmack@srv:/usr4/local/admin/src/ZMail/zmailer-2.99.40/router
Copyright 1992 Rayan S. Zachariassen
Copyright 1992-1996 Matti Aarnio
z# router postmaster
<jmack.interactive@srv.Phys.UAlberta.CA>: address: postmaster
(((smtp tshimshan.phys.ualberta.ca jmack@tshimshan.Phys.UAlberta.CA g1)))
z#
:-)
Cheers,
--
James S. MacKinnon Office: P-139 Avahd-Bhatia Physics Lab
Team Physics Voice : (403) 492-8226
University of Alberta email : Jim.MacKinnon@Phys.UAlberta.CA
Edmonton, Canada T6G 2N5
WWW: http://www.phys.ualberta.ca/~jmack/jmack.html