Mailing List Archive

qmail 0.96 Linux 2.0.24 compile error
Hi All

I am testing out a new machine and have run into a problem comiling
qmail 0.96.

The machine is running Linux 2.0.24, the errors seem DNS related, the
machine is running Bind 4.9.5. Details of the error are shown below :

./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+0x10c): undefined reference to `__dn_expand'
dns.o: In function `findname':
dns.o(.text+0x1a3): undefined reference to `__dn_expand'
---snip---
make: *** [qmail-remote] Error 1

Any help would be appreciated. Thanks
Paul
Re: qmail 0.96 Linux 2.0.24 compile error [ In reply to ]
On Thu, 13 Feb 1997, Paul Taylor wrote:

> Hi All
>
> I am testing out a new machine and have run into a problem comiling
> qmail 0.96.
>
> The machine is running Linux 2.0.24, the errors seem DNS related, the
> machine is running Bind 4.9.5. Details of the error are shown below :
>
> ./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+0x10c): undefined reference to `__dn_expand'
> dns.o: In function `findname':
> dns.o(.text+0x1a3): undefined reference to `__dn_expand'
> ---snip---
> make: *** [qmail-remote] Error 1

There seems to be a libc problem (it is fixed in the new beta
versions). An easy to is to edit /usr/include/resolv.h. Search for
"#define dn_expand" and comment that line out... also do that for the
other 3 undefined calls, and it'll fix it right up...

-Dustin Marquess