RE: [vchkpw] qmail-smtpd-chkusr patch not applying
At 16/01/2004 16/01/2004 -0800, Russell Mann wrote: Thanks Rick... I'm sure that's where I'm hanging up, but there are no good instructions on how to do this, just This is what you should do. You should understand the reason. As you, with vpopmail, could use MySQL, ldap, Postgres, etc., I cannot point all possible problems coming from those products. I may just give you the direction, you have to do the rest. So, I've tried several things in the Makefile, to no avail. .. [snip] .. -lcrypt /home/vpopmail/lib/libvpopmail.a \ -L/usr/lib/mysql -lmysqlclient /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x9a): undefined reference to `uncompress' /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12a): undefined reference to `compress' collect2: ld returned 1 exit status make: *** [qmail-smtpd] Error 1 You should check if mysql client libraries have dependencies, and need other external libraries. Probably you need to add -lz in the Makefile (after -lcrypt), as you could miss those libraries. Ciao, Tonino [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED]
Re: [vchkpw] qmail-smtpd-chkusr patch not applying
Russell Mann wrote: Hello, Ok, my previous emails have been assuming that the patch was applied, however by diffing the old qmail-smtpd and the new qmail-smtpd and finding zero binary differences, I figured out that my previous patch had been failing due to an earlier patch moving lines around in qmail-smtpd.c. So, I stripped it back to just vanilla qmail-1.03, plus the patch, just to see where I could get, and this is whats up: I've been having some trouble applying the qmail-smtpd-chkusr patch to qmail-1.03. I'm on a RedHat 6.2 system, and I tried to make it as simple as possible. Below are what I hope are the relevant information for figuring out what's wrong. I'm using the regular-patch from this page: http://www.interazioni.it/qmail/#qmail-smtpd Hi, You didn't patch the Makefile to include the vpopmail libs... From the documentation on his site *** Modify your qmail Makefile and include vpopmail and crypt libraries (also include mysql or whenever other libraries you're using for authentication within vpopmail - i.e. ldap, sybase, postgres, etc.) Make make and rebuild qmake-smtpd, and rename it qmail-smtpd-chkusr, in order to know later which version you're using. ie in the Make file add -L/home/vpopmail/lib -lvpopmail to the end of the qmail-smtpd: compile line in the Makefile. Mine reads as below (I have extra stuff like mysql, so don't worry about that). qmail-smtpd: \ load qmail-smtpd.o rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \ date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \ open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \ fs.a auto_qmail.o base64.o socket.lib ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ alloc.a substdio.a error.a str.a fs.a auto_qmail.o base64.o `cat \ socket.lib` -L/usr/local/ssl/lib -L/home/vpopmail/lib -lssl -lcrypto -lv popmail \ -L/usr/local/mysql/lib -lmysqlclient -lz Regards, Rick
RE: [vchkpw] qmail-smtpd-chkusr patch not applying
You didn't patch the Makefile to include the vpopmail libs... From the documentation on his site *** Modify your qmail Makefile and include vpopmail and crypt libraries (also include mysql or whenever other libraries you're using for authentication within vpopmail - i.e. ldap, sybase, postgres, etc.) Make make and rebuild qmake-smtpd, and rename it qmail-smtpd-chkusr, in order to know later which version you're using. ie in the Make file add -L/home/vpopmail/lib -lvpopmail to the end of the qmail-smtpd: compile line in the Makefile. Mine reads as below (I have extra stuff like mysql, so don't worry about that). qmail-smtpd: \ load qmail-smtpd.o rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \ date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \ open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \ fs.a auto_qmail.o base64.o socket.lib ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ alloc.a substdio.a error.a str.a fs.a auto_qmail.o base64.o `cat \ socket.lib` -L/usr/local/ssl/lib -L/home/vpopmail/lib -lssl -lcrypto -lv popmail \ -L/usr/local/mysql/lib -lmysqlclient -lz Thanks Rick... I'm sure that's where I'm hanging up, but there are no good instructions on how to do this, just This is what you should do. The patch author pointed me to this url: http://www.kendzorra.de/chkusr.html So, I've tried several things in the Makefile, to no avail. - Original Makefile: - qmail-smtpd: \ load qmail-smtpd.o rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \ date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \ open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \ fs.a auto_qmail.o socket.lib ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat \ socket.lib` - - Failed Makefile: - qmail-smtpd: \ load qmail-smtpd.o rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \ date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \ open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \ fs.a auto_qmail.o socket.lib ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat \ socket.lib` \ -lcrypt /home/vpopmail/lib/libvpopmail.a \ -L/usr/lib/mysql -lmysqlclient - Failure Messages: - qmail-smtpd.c: In function `realrcpt_check': qmail-smtpd.c:346: warning: comparison between pointer and integer qmail-smtpd.c: In function `main': qmail-smtpd.c:637: warning: return type of `main' is not `int' ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \ datetime.a getln.a open.a sig.a case.a env.a stralloc.a \ alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat \ socket.lib` \ -lcrypt /home/vpopmail/lib/libvpopmail.a \ -L/usr/lib/mysql -lmysqlclient /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x9a): undefined reference to `uncompress' /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12a): undefined reference to `compress' collect2: ld returned 1 exit status make: *** [qmail-smtpd] Error 1 - Thanks, Russell Mann