Linux - Server This forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
02-20-2012, 06:35 AM
#1
LQ Newbie
Registered: Feb 2012
Posts: 4
Rep:
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 .
02-20-2012, 08:20 AM
#2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
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
02-20-2012, 12:56 PM
#3
LQ Newbie
Registered: Feb 2012
Posts: 4
Original Poster
Rep:
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
02-21-2012, 11:28 AM
#4
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
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.
All times are GMT -5. The time now is 12:33 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News