[wplug] Redhat 9 Install issue of qmail

Wise, Jeremey WISEJ at PIOS.com
Tue Apr 29 10:13:58 EDT 2003


I have been attempting to get a qMail farm up and running. I have two
servers that I installed a stripped down version of RH 9 on and am running
into a few errors. I followed the Life with Qmail to a "t" and used the
posted Red Hat 9 patch file they reference. It seemed to work for most of
the install except the "checkpassword" utility I need to get POP3 auth
working.

Their was an article about checkpassword needing some modifications to the
patchfile which worked for all the other compile errors I got:("life with
qmail" patches http://article.gmane.org/gmane.mail.qmail.general/13960)

Modified with this:
http://www.ornl.gov/its/archives/mailing-lists/qmail/2003/04/msg00254.html

Here is the file I tried to "patch" with (see modifications)
[root at venus qmail]# cat patchfile
% diff -u3 error.h.orig error.h
--- error.h.orig        1998-06-15 06:53:16.000000000 -0400
+++ error.h     2002-12-24 20:28:40.000000000 -0500
@@ -1,7 +1,7 @@
 #ifndef ERROR_H
 #define ERROR_H

-#include <errno.h>
+#include <errno.h>

 extern int error_intr;
 extern int error_nomem;


% diff -u3 dns.c.orig dns.c
--- dns.c.orig  2002-08-09 19:20:48.000000000 -0400
+++ dns.c       2002-12-24 20:42:46.000000000 -0500
@@ -7,8 +7,6 @@
 #include <errno.h>
 extern int res_query();
 extern int res_search();
-#include <errno.h>
-extern int h_errno;
 #include "ip.h"
 #include "ipalloc.h"
 #include "fmt.h"


% diff -u3 cdb_seek.c.orig cdb_seek.c
--- cdb_seek.c.orig     1998-06-15 06:53:16.000000000 -0400
+++ cdb_seek.c  2002-12-24 20:42:52.000000000 -0500
@@ -1,6 +1,5 @@
 #include <sys/types.h>
 #include <errno.h>
-#include <errno.h>
 #include "cdb.h"

 #ifndef SEEK_SET
[root at venus qmail]#
******************************************

After the modifications I tried to run the patch:
********* 
[root at venus checkpassword-0.90]# patch -p0 </root/qmail/patchfile
patching file error.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file error.h.rej
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|
|% diff -u3 dns.c.orig dns.c
|--- dns.c.orig 2002-08-09 19:20:48.000000000 -0400
|+++ dns.c      2002-12-24 20:42:46.000000000 -0500
--------------------------
File to patch:

***** CTrl-C to break patch utility then rerun make
****************
[root at venus checkpassword-0.90]# make
./compile checkpassword.c
./compile alloc.c
./compile buffer_get.c
./compile buffer_put.c
./compile error.c
./compile error_str.c
./compile pathexec_run.c
./compile strerr_sys.c
./makelib unix.a alloc.o alloc_re.o buffer.o buffer_2.o \
buffer_copy.o buffer_get.o buffer_put.o env.o error.o \
error_str.o open_read.o open_trunc.o pathexec_env.o \
pathexec_run.o prot.o stralloc_cat.o stralloc_catb.o \
stralloc_cats.o stralloc_eady.o stralloc_opyb.o \
stralloc_opys.o stralloc_pend.o strerr_die.o strerr_sys.o
./load checkpassword prot.o unix.a byte.a  `cat \
shadow.lib` `cat crypt.lib` `cat s.lib`
checkpassword.o(.text+0xfa): In function `main':
: undefined reference to `errno'
checkpassword.o(.text+0x243): In function `main':
: undefined reference to `errno'
checkpassword.o(.text+0x265): In function `main':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0xf6): In function `pathexec_run':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x13a): In function `pathexec_run':
: undefined reference to `errno'
unix.a(alloc.o)(.text+0x48): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [checkpassword] Error 1
[root at venus checkpassword-0.90]#

************

I am not a programmer so I do not know how to procede.


Thanks,



More information about the wplug mailing list