LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-20-2012, 06:35 AM   #1
nowornever
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Rep: Reputation: Disabled
Qmail installation problem on RHEL5


Hi friends,

Please help me in qmail installation.

I am getting this error while applying patch for daemontools::

patch < /root/qmail/netqmail-1.06/other-patches/daemontools-0.76.errno.patch
patching file error.h
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] yes
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file error.h.rej


HISTORY OF INSTALLATION COMMANDS :

mkdir /var/qmail

617 cd netqmail-1.06
618 ls INSTALL.ids
619 cp INSTALL.ids IDS
620 vi IDS
621 . IDS
625 grep qmaild /etc/passwd
626 grep qmailq /etc/passwd
632 make setup check
yum install gcc
641 make setup check
642 echo $?
645 hostname -f
653 ./config-fast server.pubmatic.com
658 which patch
659 cd ucspi-tcp-0.88
661 patch < /root/qmail/netqmail-1.06/other-patches/ucspi-tcp-0.88.errno.patch
662 make
make setup check

665 cd /package/
667 cd admin/
669 cd daemontools
671 cd src/
673 patch < /root/qmail/netqmail-1.06/other-patches/daemontools-0.76.errno.patch




If I try to continue without this patch,I am getting below error:
package/install
Linking ./src/* into ./compile...
Compiling everything in ./compile...
./compile envdir.c
./compile alloc.c
./compile buffer_get.c
./compile buffer_put.c
./compile error.c
./compile error_str.c
./compile openreadclose.c
./compile pathexec_run.c
pathexec_run.c: In function ‘pathexec_run’:
pathexec_run.c:18: warning: implicit declaration of function ‘execve’
./compile readclose.c
./compile strerr_sys.c
./compile wait_pid.c
./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o \
lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
open_trunc.o open_write.o openreadclose.o pathexec_env.o \
pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
sig_block.o sig_catch.o sig_pause.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 subgetopt.o wait_nohang.o \
wait_pid.o
./load envdir unix.a byte.a
./load envuidgid unix.a byte.a
./compile fghack.c
./load fghack unix.a byte.a
./load matchtest match.o unix.a byte.a
./compile multilog.c
multilog.c: In function ‘startprocessor’:
multilog.c:200: warning: passing argument 2 of ‘execve’ from incompatible pointer type
multilog.c: In function ‘fullcurrent’:
multilog.c:216: warning: implicit declaration of function ‘rename’
./load multilog deepsleep.o timestamp.o match.o time.a unix.a byte.a
./load pgrphack unix.a byte.a
./compile readproctitle.c
./load readproctitle unix.a byte.a
./load setlock unix.a byte.a
./load setuidgid unix.a byte.a
./load softlimit unix.a byte.a
./compile supervise.c
supervise.c: In function ‘announce’:
supervise.c:78: warning: implicit declaration of function ‘rename’
supervise.c: In function ‘trystart’:
supervise.c:102: warning: passing argument 2 of ‘execve’ from incompatible pointer type
./load supervise deepsleep.o time.a unix.a byte.a
./compile svc.c
./load svc unix.a byte.a
./compile svok.c
./load svok unix.a byte.a
./compile svscan.c
svscan.c: In function ‘start’:
svscan.c:104: warning: passing argument 3 of ‘pathexec_run’ from incompatible pointer type
svscan.c:123: warning: passing argument 3 of ‘pathexec_run’ from incompatible pointer type
./load svscan unix.a byte.a
./compile svstat.c
./load svstat time.a unix.a byte.a
./load tai64n timestamp.o time.a unix.a byte.a
./load tai64nlocal unix.a byte.a
env - /bin/sh rts.tests 2>&1 | cat -v > rts
Copying commands into ./command...
Creating symlink daemontools -> daemontools-0.76...
Making command links in /command...
Making compatibility links in /usr/local/bin...
ln: creating symbolic link `/var/tmp/daemontools-0.76-root/usr/local/bin/svscan{new}' to `/command/svscan': No such file or directory



But Svscan is present:
which svscan
/usr/local/bin/svscan


Installation directories I am using:
/package-daemontools
/root/qmail- netqmail-1.06 & ucspi-tcp-0.88

Please help.

Thanks,
Amit

Last edited by nowornever; 02-20-2012 at 06:37 AM.
 
Old 02-20-2012, 08:20 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Are you sure you didn't patched error.h previously? If you look at the patch, the only thing it does is to replace "extern int errno;" with "#include <errno.h>", so you can check if that's the case.
Anyway you can find attached the patched error.h from my daemontools-0.76, if you want to replace yours and do the build (just remove the .txt extension)

Regards
Attached Files
File Type: txt error.h.txt (596 Bytes, 26 views)
 
Old 02-20-2012, 12:56 PM   #3
nowornever
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

I copied your text file in error.h and then run package/install command. I am getting below error.


package/install
Linking ./src/* into ./compile...
Compiling everything in ./compile...
./compile envdir.c
./compile alloc.c
./compile buffer_get.c
./compile buffer_put.c
./compile error.c
./compile error_str.c
./compile openreadclose.c
./compile pathexec_run.c
pathexec_run.c: In function ‘pathexec_run’:
pathexec_run.c:18: warning: implicit declaration of function ‘execve’
./compile readclose.c
./compile strerr_sys.c
./compile wait_pid.c
./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o \
lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
open_trunc.o open_write.o openreadclose.o pathexec_env.o \
pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
sig_block.o sig_catch.o sig_pause.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 subgetopt.o wait_nohang.o \
wait_pid.o
./load envdir unix.a byte.a
./load envuidgid unix.a byte.a
./compile fghack.c
./load fghack unix.a byte.a
./load matchtest match.o unix.a byte.a
./compile multilog.c
multilog.c: In function ‘startprocessor’:
multilog.c:200: warning: passing argument 2 of ‘execve’ from incompatible pointer type
multilog.c: In function ‘fullcurrent’:
multilog.c:216: warning: implicit declaration of function ‘rename’
./load multilog deepsleep.o timestamp.o match.o time.a unix.a byte.a
./load pgrphack unix.a byte.a
./compile readproctitle.c
./load readproctitle unix.a byte.a
./load setlock unix.a byte.a
./load setuidgid unix.a byte.a
./load softlimit unix.a byte.a
./compile supervise.c
supervise.c: In function ‘announce’:
supervise.c:78: warning: implicit declaration of function ‘rename’
supervise.c: In function ‘trystart’:
supervise.c:102: warning: passing argument 2 of ‘execve’ from incompatible pointer type
./load supervise deepsleep.o time.a unix.a byte.a
./compile svc.c
./load svc unix.a byte.a
./compile svok.c
./load svok unix.a byte.a
./compile svscan.c
svscan.c: In function ‘start’:
svscan.c:104: warning: passing argument 3 of ‘pathexec_run’ from incompatible pointer type
svscan.c:123: warning: passing argument 3 of ‘pathexec_run’ from incompatible pointer type
./load svscan unix.a byte.a
./compile svstat.c
./load svstat time.a unix.a byte.a
./load tai64n timestamp.o time.a unix.a byte.a
./load tai64nlocal unix.a byte.a
env - /bin/sh rts.tests 2>&1 | cat -v > rts
Copying commands into ./command...
Creating symlink daemontools -> daemontools-0.76...
Making command links in /command...
Making compatibility links in /usr/local/bin...
ln: creating symbolic link `/var/tmp/daemontools-0.76-root/usr/local/bin/svscan{new}' to `/command/svscan': No such file or directory



But Svscan is present:
which svscan
/usr/local/bin/svscan


Installation directories I am using:
/package-daemontools
/root/qmail- netqmail-1.06 & ucspi-tcp-0.88

Please help.

Thanks,
Amit
 
Old 02-21-2012, 11:28 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Quote:
ln: creating symbolic link `/var/tmp/daemontools-0.76-root/usr/local/bin/svscan{new}' to `/command/svscan': No such file or directory
The target directory is very strange (/var/tmp/daemontools-0.76-root/usr/local/bin/svscan{new}).
I suggest you to delete the directory you extracted daemontools and redo the build following to the letter the instructions here . Of course you need to
Code:
mkdir -p /package
mv daemontools-0.76.tar.gz /package
chmod 1755 /package
before anything else

If it still doesn't work, it could be SELinux, that doesn't allow the symlink creation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Qmail installation problem. Peingune Linux - Newbie 10 07-06-2010 11:57 AM
qmail installation problem n_f Linux - Server 2 04-29-2009 10:30 AM
qmail installation problem hypercube Linux - Server 1 04-29-2009 10:14 AM
qmail installation problem dellroxy Linux - Server 2 11-25-2008 06:47 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration