Re: dns.o compilation errors

2001-08-03 Thread Greg White

On Wed, Aug 01, 2001 at 03:43:20PM -0700, Greg White wrote:
> On Wed, Aug 01, 2001 at 04:14:16PM -0500, Proc Meminfo wrote:
> > Hey, I am receiving the following errors while doing 'make setup check':
> > 
> > dns.o: In function 'resolve':
> > dns.o(.text+0xf8): undefined reference to '__dn_expand'
> > dns.o: In function 'findname':
> > dns.o(.text+0x1bc): undefined reference to '__dn_expand'
> > dns.o(.text+0x24c): undefined reference to '__dn_expand'
> > dns.o: In function 'findip':
> > dns.o(.text+0x2ae): undefined reference to '__dn_expand'
> > dns.o: In function 'findmx':
> > dns.o(.text+0x3ac): undefined reference to '__dn_expand'
> > dns.o(.text+0x45a): more undefined references to '__dn_expand' follow
> > dns.o: In function 'dns_init':
> > dns.o(.text+0x4a3): undefined reference to '__res_search'
> > dns.o(.data+0xc): undefined reference to '__res_query'
> > collect2: ld returned 1 exit status
> > make: *** [qmail-remote] Error 1
> 
> qmail appears to be attempting to link again your local resolver library
> and not being able to find it. Do you have /usr/include/resolv.h? 
> This isn't really a qmail issue -- just install the resolver library and
> all should be well.
> 
> GW

I noted your other reply -- all those references are contained in my
resolv.h, both on my FreeBSD and Linux boxen.

Please verify for me that resolv.h contains references to those
functions -- they're right at the top of the file.
If so, what are the contents of dns.lib in the qmail source tree?
(Should be '-lresolv').

-- 
Greg White
Those who make peaceful revolution impossible will make violent
revolution inevitable.
-- John F. Kennedy



Re: dns.o compilation errors

2001-08-01 Thread Greg White

On Wed, Aug 01, 2001 at 04:14:16PM -0500, Proc Meminfo wrote:
> Hey, I am receiving the following errors while doing 'make setup check':
> 
> dns.o: In function 'resolve':
> dns.o(.text+0xf8): undefined reference to '__dn_expand'
> dns.o: In function 'findname':
> dns.o(.text+0x1bc): undefined reference to '__dn_expand'
> dns.o(.text+0x24c): undefined reference to '__dn_expand'
> dns.o: In function 'findip':
> dns.o(.text+0x2ae): undefined reference to '__dn_expand'
> dns.o: In function 'findmx':
> dns.o(.text+0x3ac): undefined reference to '__dn_expand'
> dns.o(.text+0x45a): more undefined references to '__dn_expand' follow
> dns.o: In function 'dns_init':
> dns.o(.text+0x4a3): undefined reference to '__res_search'
> dns.o(.data+0xc): undefined reference to '__res_query'
> collect2: ld returned 1 exit status
> make: *** [qmail-remote] Error 1

qmail appears to be attempting to link again your local resolver library
and not being able to find it. Do you have /usr/include/resolv.h? 
This isn't really a qmail issue -- just install the resolver library and
all should be well.

GW



dns.o compilation errors

2001-08-01 Thread Proc Meminfo

Hey, I am receiving the following errors while doing 'make setup check':

dns.o: In function 'resolve':
dns.o(.text+0xf8): undefined reference to '__dn_expand'
dns.o: In function 'findname':
dns.o(.text+0x1bc): undefined reference to '__dn_expand'
dns.o(.text+0x24c): undefined reference to '__dn_expand'
dns.o: In function 'findip':
dns.o(.text+0x2ae): undefined reference to '__dn_expand'
dns.o: In function 'findmx':
dns.o(.text+0x3ac): undefined reference to '__dn_expand'
dns.o(.text+0x45a): more undefined references to '__dn_expand' follow
dns.o: In function 'dns_init':
dns.o(.text+0x4a3): undefined reference to '__res_search'
dns.o(.data+0xc): undefined reference to '__res_query'
collect2: ld returned 1 exit status
make: *** [qmail-remote] Error 1


I am running RedHat 7.1, have tried everything i could find on the mailing
list archive, have tried updating to gcc-3.0, downgrading to gcc-2.95 and
reinstalling RedHat 7.1.

It is quit odd because it has worked on 7.1 before, and on this machine
before, however, I have reinstalled several times, and all I can get it
this.  

Does anybody know how to correct this problem?





_
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com




Re: Compilation errors

2000-04-27 Thread Paul Schinder

At 11:41 AM +0800 4/27/00, Isaiah Chua wrote:
>hi folks,
>
>I'm not sure if this has been asked before, but searching the FAQs 
>didn't produce anything, so I assume it could be new.
>
>I'm trying to compile qMail on our RedHat 6.2 server and have 
>downloaded all the necessary files for qMail to be compiled and take 
>over sendmail.
>
>However, whenever I try to compile either of the modules and qMail 
>itself, I get a rather similar message for all... after typing 'make 
>setup check':
>
>bash# cd qmail*
>bash# make setup check
>( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \
>2>&1 \
>&& cat fork.h2 || cat fork.h1 ) > fork.h
>rm -f tryvfork.o tryvfork
>./compile qmail-local.c
>qmail-local.c: In function `main':
>qmail-local.c:448: warning: return type of `main' is not `int'
>./compile qmail.c
>./compile quote.c
>./compile now.c
>./compile gfrom.c
>./compile myctime.c
>./compile slurpclose.c
>./compile case_diffb.c
>./compile case_diffs.c
>./compile case_lowerb.c
>./compile case_lowers.c
>./compile case_starts.c
>./makelib case.a case_diffb.o case_diffs.o case_lowerb.o \
>case_lowers.o case_starts.o
>./compile getln.c
>./compile getln2.c
>./makelib getln.a getln.o getln2.o
>./compile subgetopt.c
>./compile sgetopt.c
>./makelib getopt.a subgetopt.o sgetopt.o
>./compile sig_alarm.c
>In file included from /usr/include/signal.h:300,
>  from sig_alarm.c:1:
>/usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No such file or
>directory
>make: *** [sig_alarm.o] Error 1
>
>I already have all the GNU C compilers installed on the server.
>
>Anyone has any ideas why?
>

You're missing the kernel headers, most likely.  You'll need to get 
them from somewhere before you can proceed.  There's an rpm, I think. 
On my Yellow Dog Linux machine (a RedHat clone for PPC), 
/usr/include/asm is a symlink into the kernel sources.

>
>
>

-- 
--
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693
[EMAIL PROTECTED]



Compilation errors

2000-04-26 Thread Isaiah Chua



hi folks,
 
I'm not sure if this has been asked before, but searching the 
FAQs didn't produce anything, so I assume it could be new.
 
I'm trying to compile qMail on our RedHat 6.2 server and have 
downloaded all the necessary files for qMail to be compiled and take over 
sendmail.
 
However, whenever I try to compile either of the modules and 
qMail itself, I get a rather similar message for all... after typing 'make setup 
check':
 
bash# cd qmail*bash# make setup check( ( ./compile 
tryvfork.c && ./load tryvfork ) >/dev/null \2>&1 
\&& cat fork.h2 || cat fork.h1 ) > fork.hrm -f tryvfork.o 
tryvfork./compile qmail-local.cqmail-local.c: In function 
`main':qmail-local.c:448: warning: return type of `main' is not 
`int'./compile qmail.c./compile quote.c./compile now.c./compile 
gfrom.c./compile myctime.c./compile slurpclose.c./compile 
case_diffb.c./compile case_diffs.c./compile case_lowerb.c./compile 
case_lowers.c./compile case_starts.c./makelib case.a case_diffb.o 
case_diffs.o case_lowerb.o \case_lowers.o case_starts.o./compile 
getln.c./compile getln2.c./makelib getln.a getln.o getln2.o./compile 
subgetopt.c./compile sgetopt.c./makelib getopt.a subgetopt.o 
sgetopt.o./compile sig_alarm.cIn file included from 
/usr/include/signal.h:300, 
from sig_alarm.c:1:/usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No 
such file ordirectorymake: *** [sig_alarm.o] Error 1
I already have all the GNU C compilers installed on the 
server. 
 
Anyone has any ideas why?
 
 
 
 


Qmail compilation errors on RH 6.1 distro.

2000-04-11 Thread Madhav

Hi all,
I have downloaded qmail-1.03+patches-12.src.rpm from the site
http://em.ca/~bruceg. I have applied all the patches given. I have created
the uids. Then I compiled the qmail using "make setup check". Then I got the
following error.

[root@server1 qmail-1.03]# make setup check
./load auto-str substdio.a error.a str.a
/usr/bin/ld: cannot open -lsyncdir: No such file or directory
collect2: ld returned 1 exit status
make: *** [auto-str] Error 1

But If I don't apply any of the patches to the source and compile then it is
compiling successfully.
So one of the patches that I applied might have caused this error. Can
anyone tell what I have to do to come out of this?

Thanks in advance,
Madhav






Qmail compilation errors.

2000-03-14 Thread Wavelle Lindsay

Hello,

I am trying to install Qmail 1.03 on a machine running Solaris 7 using
the gcc compiler.When I try to compile Qmail  with 'make setup check'  I
get the following errors. Please try and help me since I need to replace
Sendmail as soon  as possible. Thanks in advance.

rm -f trysalen.o
./compile ipme.c
./compile ndelay.c
./compile ndelay_off.c
./makelib ndelay.a ndelay.o ndelay_off.o
( ( ./compile tryrsolv.c && ./load tryrsolv dns.o \
ipalloc.o ip.o stralloc.a alloc.a error.a fs.a str.a \
-lresolv `cat socket.lib` ) >/dev/null 2>&1 \
&& echo -lresolv || exit 0 ) > dns.lib
rm -f tryrsolv.o tryrsolv
./load qmail-remote control.o constmap.o timeoutread.o \
timeoutwrite.o timeoutconn.o tcpto.o now.o dns.o ip.o \
ipalloc.o ipme.o quote.o ndelay.a case.a sig.a open.a \
lock.a seek.a getln.a stralloc.a alloc.a substdio.a error.a \
str.a fs.a auto_qmail.o  `cat dns.lib` `cat socket.lib`
Undefined   first referenced
 symbol in file
__dn_expand dns.o
__res_searchdns.o
__res_init  dns.o
__res_query dns.o
ld: fatal: Symbol referencing errors. No output written to qmail-remote
collect2: ld returned 1 exit status
make: *** [qmail-remote] Error 1