View Full Version : Install issues
dstmark
10-05-2005, 01:20 PM
During the patching part of the install (/downloads/qmailrocks/scripts/util/qmail_patches.script) I get a "File to patch:" prompt when it hits the lines;
"patch < /downloads/qmailrocks/patches/qmailqueue.patch"
and
"patch < /downloads/qmailrocks/patches/auth-jms1.4a.patch".
What should I enter at these two prompts?
I've followed every instruction to the tee so far, and after bailing at these two prompts, the next step (make man && make setup check) fails with;
"make: Fatal error: Command failed for target `dns.o'"
I don't know if the make error is related to the patch issue.
I'm on Solaris 9, with all prerequisites as per the Qmailrocks doc satisfied.
TIA
rafiso
10-05-2005, 04:52 PM
Hello,
I got exactly the same thing with solaris 10.
Actually I'm waiting to try with the next version :-) so I hope that's the wait will be very short !
If someone can help thanks in advance for your answers.
see ya
erikdh
10-07-2005, 07:44 PM
I got past this by modifying the script to run "gpatch" instead of "patch", and it worked like a charm for me.
I did encounter a couple more issues that were pretty easy to work around. (e.g. I had to remove a .gz extension in one of the scripts).
I'm eagerly awaiting the next release too- but it is quite possible to just download the updated software (like vpopmail, vqadmin, courier, etc.) and adjust your installation accordingly. I have to do that anyway, because I'm installing to /opt when possible, not /usr/local. So, I don't think that (at least with the Solaris Install guide) you should take it as gospel, but rather assume that you will have to modify things as necessary.
What would be really nice is a guide on how to do some load-balanced scenarios with mysql replication and NFS shares. Probably not too difficult to figure out, but a guide is always nice.
Erik
dstmark
10-10-2005, 03:47 PM
Thanks for the info, erikdh. I saw the install notes about gpatch, and I had already installed diffutils as part of the prerequisites, but there was no gpatch to be found on the system. I tried to install diffutils again, this time from the qmailrocks bundle as per the doc, but it's no longer part of the bundle. I ended up finding a Sol8 "patch-2.5.4" from sunfreeware.com and used that.
After getting the correct patch tool installed, I deleted the /downloads/qmailrocks directory, untarred /downloads/qmailrocks.tar again, and retried things. I'm now having an issue with the following patch line;
"patch < /downloads/qmailrocks/patches/qmail-103.patch"
I get a prompt as follows;
patching file dns.c
Reversed (or previously applied) patch detected! Assume -R? [n]
If answered 'n' and got;
Apply anyway? [n] y
Hunk #1 FAILED at 25.
Hunk #2 FAILED at 51.
Hunk #3 FAILED at 87.
3 out of 3 hunks FAILED -- saving rejects to file dns.c.rej
So, I ran it again and answered 'y' and got;
Hunk #1 succeeded at 25 (offset 4 lines).
Hunk #3 succeeded at 70 (offset 4 lines).
At the next step I now get;
# make man && make setup check
./compile dns.c
dns.c:6: error: redefinition of 'responsebuflen'
dns.c:5: error: previous definition of 'responsebuflen' was here
dns.c:28: error: conflicting types for 'response'
dns.c:4: error: previous declaration of 'response' was here
*** Error code 1
make: Fatal error: Command failed for target `dns.o'
FYI, the other two patch commands in qmail_patches.script ran cleanly.
Any suggestions would be appreciated.
Cheers
erikdh
10-10-2005, 07:24 PM
Hmmm... Well, I'm running Solaris 9 too, and I have gpatch located at /usr/bin/gpatch. Don't know for sure, but I assume that it came with the install.
-r-xr-xr-x 1 root bin 90308 Mar 2 2002 gpatch
I tried using the sunfreeware version as well, and got similar results as you did.
I attached my version, but I had to do some acrobatics to get it to meet the filesize limit on this forum- It's a zipped archive of a 7zip file. Let me know how it works.
Erik
dstmark
10-13-2005, 12:22 PM
Thanks very much for the gpatch file. I'm juggling a few tasks at the moment, and won't be able to get back to this issue for a week or two. I'll give it another shot and report back.
Cheers
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.