Are there any RPM packages available for download? I looked at the location that was posted in the message before but there was nothing there, just FrontPage extension stuff. I tried using the RPM for 8.11.1 but it segmentation faults on RH7.3 and rebuilding from source gives a poop load of the following
mysql_sendmail.o(.text+0xa5c): undefined reference to `mysql_field_seek'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.37173 (%build)
so I can't complete the RPM rebuild. If anyone could be of assistance with this it would be much appreciated.
Question 2, I did actually try to patch a source version of sendmail 8.12.5 but whenever I attempt the patch it complains about no site.config.m4 file being available or whatever, I have read a number of HOWTO's and other forums/help files in attempt to figure out where that file comes from but all I can find is things talking about adding to that file, not how to get it in the first place. If someone could answer me on that I'd be much appreciative as well.
Thanks
Torry Crass
torryc@hometc.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually...here's another little issue, I decided to give it a whirl and use the 8.12.5 patch but whenever I do a build I get the following
mysql_sendmail.o: In function `get_mysql_alias':
mysql_sendmail.o(.text+0x0): multiple definition of `get_mysql_alias'
mysql_sendmail.o(.text+0x0): first defined here
mysql_sendmail.o: In function `get_mysql_conf':
mysql_sendmail.o(.text+0x174): multiple definition of `get_mysql_conf'
mysql_sendmail.o(.text+0x174): first defined here
mysql_sendmail.o: In function `get_mysql_pwd':
mysql_sendmail.o(.text+0x650): multiple definition of `get_mysql_pwd'
mysql_sendmail.o(.text+0x650): first defined here
mysql_sendmail.o: In function `mysqlclass':
mysql_sendmail.o(.text+0x85c): multiple definition of `mysqlclass'
mysql_sendmail.o(.text+0x85c): first defined here
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
Any ideas on how to fix this compile error, I've looked around in the code but I'm a bit lost as I'm not that great of a C coder. Any help you could lend would be great.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The 8.12.5 patches haven't been thoroughly tested as yet... The above looks like you've included the MySQL patch, or library twice while building the binary Look for duplicate '-L' options in your compile command, and be sure that the patch has been applied properly, and I think it should be okay.
As for RPM's, I don't know. I'm working on upgrading my home machine(s) to RedHat 8.0 at the moment (it was released on 30/09/02), and I'll be working on Sendmail-SQL again once the blasted thing's downloaded (looks like it's going to take 2 *DAYS* even on ADSL), and installed, then I'll probably put some RPM's up.
Sorry I can't be of more help at the moment. I'm concentrating a bit more on documenation and m4 stuffs at the moment, really...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for the reply and idea, I'm going to try and patch/recompile things and see how they go, something else I noticed upon patching is that I get the following error messages.
Hunk #1 succeeded at 16 with fuzz 1.
patching file sendmail/main.c
Hunk #1 FAILED at 1192
1 out of 1 hunk FAILED -- saving rejects to file sendmail/main.c.rej
Naturually this doesn't sound so good and might be the cause of the previous error I mentioned, though I'm not positive of this, I'm going to dig through source and see if I can figure it out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-11-08
I have also received that error message when trying to patch 8.12.5. Here is what the .rej file shows
***************
*** 1192,1198 ****
"user %d attempted to rebuild the alias map",
RealUid);
usrerr("Permission denied");
- finis(FALSE, EX_USAGE);
}
/* if we've had errors so far, exit now */
--- 1192,1198 ----
"user %d attempted to rebuild the alias map",
RealUid);
usrerr("Permission denied");
+ finis(false, true, EX_USAGE);
}
/* if we've had errors so far, exit now */
I had to use patch -p0 to get the patch to work correctly. I also had to touch the sendmail-8.12.5/sendmail/devtools/SIte/site.config.m4 to fix that issue as well. Once I did those 2 things it went clean till it tried to patch main.c then it failed out and died.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is an odd one. I couldn't get the vanilla sendmail source to compile on the machine I built the patch on, so I included that line in it. Maybe something was wrong with the source I downloaded, but anyway, you can apply that single-line change manually quite easily, so I'd go ahead and do that, and then try a recompile.
Remember to ensure you see -DMYSQL_MAP in the compile process, and all the other stuff included in the new doc file, okay? ;-)
Perhaps I should add this error into the doc file too, or maybe just release a better 8.12.6 version... It's coming... Soon, trust me.
K.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-11-13
Ok I stripped the last diff patch from the patch file and it patched clean. I then went in and edited the main.c manually to make the change....ready for a good one. The line that needs to be changed in the verison of 8.12.5 sendmail that I got off sendmail.org is different than yours your looking to patch at 1192 but in mine it's at 1567. Also they have changed it a little around a little. Probably why it fails in the first place. All in all it compile without problems.....now onto the hard part.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are there any RPM packages available for download? I looked at the location that was posted in the message before but there was nothing there, just FrontPage extension stuff. I tried using the RPM for 8.11.1 but it segmentation faults on RH7.3 and rebuilding from source gives a poop load of the following
mysql_sendmail.o(.text+0xa5c): undefined reference to `mysql_field_seek'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.37173 (%build)
so I can't complete the RPM rebuild. If anyone could be of assistance with this it would be much appreciated.
Question 2, I did actually try to patch a source version of sendmail 8.12.5 but whenever I attempt the patch it complains about no site.config.m4 file being available or whatever, I have read a number of HOWTO's and other forums/help files in attempt to figure out where that file comes from but all I can find is things talking about adding to that file, not how to get it in the first place. If someone could answer me on that I'd be much appreciative as well.
Thanks
Torry Crass
torryc@hometc.com
Actually...here's another little issue, I decided to give it a whirl and use the 8.12.5 patch but whenever I do a build I get the following
mysql_sendmail.o: In function `get_mysql_alias':
mysql_sendmail.o(.text+0x0): multiple definition of `get_mysql_alias'
mysql_sendmail.o(.text+0x0): first defined here
mysql_sendmail.o: In function `get_mysql_conf':
mysql_sendmail.o(.text+0x174): multiple definition of `get_mysql_conf'
mysql_sendmail.o(.text+0x174): first defined here
mysql_sendmail.o: In function `get_mysql_pwd':
mysql_sendmail.o(.text+0x650): multiple definition of `get_mysql_pwd'
mysql_sendmail.o(.text+0x650): first defined here
mysql_sendmail.o: In function `mysqlclass':
mysql_sendmail.o(.text+0x85c): multiple definition of `mysqlclass'
mysql_sendmail.o(.text+0x85c): first defined here
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
Any ideas on how to fix this compile error, I've looked around in the code but I'm a bit lost as I'm not that great of a C coder. Any help you could lend would be great.
The 8.12.5 patches haven't been thoroughly tested as yet... The above looks like you've included the MySQL patch, or library twice while building the binary Look for duplicate '-L' options in your compile command, and be sure that the patch has been applied properly, and I think it should be okay.
As for RPM's, I don't know. I'm working on upgrading my home machine(s) to RedHat 8.0 at the moment (it was released on 30/09/02), and I'll be working on Sendmail-SQL again once the blasted thing's downloaded (looks like it's going to take 2 *DAYS* even on ADSL), and installed, then I'll probably put some RPM's up.
Sorry I can't be of more help at the moment. I'm concentrating a bit more on documenation and m4 stuffs at the moment, really...
Thank you for the reply and idea, I'm going to try and patch/recompile things and see how they go, something else I noticed upon patching is that I get the following error messages.
Hunk #1 succeeded at 16 with fuzz 1.
patching file sendmail/main.c
Hunk #1 FAILED at 1192
1 out of 1 hunk FAILED -- saving rejects to file sendmail/main.c.rej
Naturually this doesn't sound so good and might be the cause of the previous error I mentioned, though I'm not positive of this, I'm going to dig through source and see if I can figure it out.
I have also received that error message when trying to patch 8.12.5. Here is what the .rej file shows
***************
*** 1192,1198 ****
"user %d attempted to rebuild the alias map",
RealUid);
usrerr("Permission denied");
- finis(FALSE, EX_USAGE);
}
/* if we've had errors so far, exit now */
--- 1192,1198 ----
"user %d attempted to rebuild the alias map",
RealUid);
usrerr("Permission denied");
+ finis(false, true, EX_USAGE);
}
/* if we've had errors so far, exit now */
I had to use patch -p0 to get the patch to work correctly. I also had to touch the sendmail-8.12.5/sendmail/devtools/SIte/site.config.m4 to fix that issue as well. Once I did those 2 things it went clean till it tried to patch main.c then it failed out and died.
Ho hum.
That is an odd one. I couldn't get the vanilla sendmail source to compile on the machine I built the patch on, so I included that line in it. Maybe something was wrong with the source I downloaded, but anyway, you can apply that single-line change manually quite easily, so I'd go ahead and do that, and then try a recompile.
Remember to ensure you see -DMYSQL_MAP in the compile process, and all the other stuff included in the new doc file, okay? ;-)
Perhaps I should add this error into the doc file too, or maybe just release a better 8.12.6 version... It's coming... Soon, trust me.
K.
Ok I stripped the last diff patch from the patch file and it patched clean. I then went in and edited the main.c manually to make the change....ready for a good one. The line that needs to be changed in the verison of 8.12.5 sendmail that I got off sendmail.org is different than yours your looking to patch at 1192 but in mine it's at 1567. Also they have changed it a little around a little. Probably why it fails in the first place. All in all it compile without problems.....now onto the hard part.