Dave Sill wrote:
> >Yes I have compiled the same bunch of sources successfuly on my machine,
> >and I doubt it's the hacks/patches as they work perfectly on a Solaris
> >(and they _did_ work on my Linux). No Linux os or software upgrades since
> >last successful compilation. I totally love qmail, so I'm not saying it's
> >a qmail problem....might be Linux, but then why did it work before and
> >not now?
>
> Did you copy the build tree from another system or are you building
> from the virgin tarball? If the former, which your comment above re:
> hacks and patches leds to believe is the case, then maybe you carries
> over some .o files from an incompatible system. Did you do a "make
> clean" first? If so, make sure it removed all the *.o's, *.a's and
> binaries.
I'm beginning to feel stupid. There's a new problem now!
I copied the system as a tarball from a Solaris 2.5.1. Tarball contained only
*.c and *.h and Makefile, which just made me realise that perhaps the *.sh
files are differing between the two systems, so I just tried making a new
tarball, and I got a new compile problem now:
# make
[snip]
( ./compile trysalen.c >/dev/null 2>&1 \
&& echo \#define HASSALEN 1 || exit 0 ) > auto-hassalen.h
rm -f trysalen.o
./compile ipme.c
./compile ip.c
./compile tcpto.c
./compile ipalloc.c
./compile timeoutread.c
./compile timeoutwrite.c
./compile timeoutconn.c
./make-commands "`cat ./systype`" loaddns > loaddns
chmod 755 loaddns
./loaddns qmail-remote signal.o control.o dns.o ipme.o ip.o \
tcpto.o lock.o ndelay.o ipalloc.o now.o \
quote.o timeoutread.o timeoutwrite.o timeoutconn.o constmap.o \
libseek.a \
libcase.a \
libopen.a \
libgetline.a libstralloc.a libsubstdio.a liballoc.a liberror.a \
libstr.a libfs.a
dns.o: In function `resolve':
dns.o(.text+0x1bd): undefined reference to `dn_expand'
dns.o: In function `findname':
dns.o(.text+0x258): undefined reference to `dn_expand'
dns.o(.text+0x2c7): undefined reference to `dn_expand'
dns.o: In function `findip':
dns.o(.text+0x33c): undefined reference to `dn_expand'
dns.o: In function `findmx':
dns.o(.text+0x430): undefined reference to `dn_expand'
dns.o(.text+0x4c1): more undefined references to `dn_expand' follow
dns.o: In function `dns_init':
dns.o(.text+0x50a): undefined reference to `res_search'
dns.o(.data+0x10): undefined reference to `res_query'
make: *** [qmail-remote] Error 1
[root@localhost qmail-1.00]#