Re: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possible solution)
On Feb 26, 2004, at 8:05 PM, Joseph Bruzzo wrote: In order for me to do this will I need to install RCS or do I just download the file, do a diff or do I just replace the old configure.in with the new configure.in Sorry not sure on how to do this. Your assistance will be greatly appreciated. For a patch as simple as the one I posted, it's easiest to manually apply it (if you're unfamiliar with the `patch` program). diff -u -r1.27 configure.in -u means that it's in unified diff format. --- configure.in22 Feb 2004 22:17:41 - 1.27 +++ configure.in24 Feb 2004 17:06:26 - This part indicates that the old file was dated 2004-02-22 and is version 1.27 in CVS. The new file is dated 2004-02-24 and hasn't been checked into CVS yet. @@ -199,7 +199,7 @@ The change affects 7 lines, starting at line 199. case "$host" in *-*-solaris*) -extralibflags="-R$libdir" This line is removed. +extralibflags="-R$libdir -lnsl -lsocket" This line is added in its place. If you look closely, you'll see that it's just a matter of editing configure.in, going to line 199, finding the "extralibflags" line and adding " -lnsl -lsocket" to it. Based on other posts, you may need to add " -lm" as well. AC_MSG_WARN(Solaris install detected. Using extralibflags for linking: $extralibflags) ;; *) The other lines displayed are to help the patch program (or a person reviewing the patch or manually applying it) identify which section of code it affects. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possible solution)
Hi, On Thu, 2004-02-26 at 21:09, Shiraz wrote: > Did the steps to include "nsl and socket" libs for make of vpopmal > v5.4.0 on Solaris 9 (sparc) with gcc 3.3.2. However, I am still getting > the following error: > > gcc -g -O2 -Wall -o vchkpw vchkpw.o md5.o hmac_md5.o libvpopmail.a > -L/usr/local/mysql/lib -R/var/qmail/vpopmail/lib -lmysqlclient -lz > -lcrypt -lnsl -lsocket > Undefined first referenced > symbol in file > floor > /usr/local/mysql/lib/libmysqlclient.a(password.o) > ld: fatal: Symbol referencing errors. No output written to vchkpw > collect2: ld returned 1 exit status > make[2]: *** [vchkpw] Error 1 > > > Any other lib is missing. Help..? libm? use -lm /Anders
Re: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possible solution)
Dear all, Did the steps to include "nsl and socket" libs for make of vpopmal v5.4.0 on Solaris 9 (sparc) with gcc 3.3.2. However, I am still getting the following error: gcc -g -O2 -Wall -o vchkpw vchkpw.o md5.o hmac_md5.o libvpopmail.a -L/usr/local/mysql/lib -R/var/qmail/vpopmail/lib -lmysqlclient -lz -lcrypt -lnsl -lsocket Undefined first referenced symbol in file floor /usr/local/mysql/lib/libmysqlclient.a(password.o) ld: fatal: Symbol referencing errors. No output written to vchkpw collect2: ld returned 1 exit status make[2]: *** [vchkpw] Error 1 Any other lib is missing. Help..? Thanks. -- Shiraz Malik Dancom OnLine Services, Islamabad, Pakistan.
Re: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possible solution)
In order for me to do this will I need to install RCS or do I just download the file, do a diff or do I just replace the old configure.in with the new configure.in Sorry not sure on how to do this. Your assistance will be greatly appreciated. Thanks > On Feb 24, 2004, at 8:14 AM, Joseph Bruzzo wrote: >> I am trying to compile vpopmail-5.4.0 on a SUN Ultra 5 running Solaris >> 9 >> with all the security and recommended patches. But I keep on getting >> this error that for the life of me I can not figure it out. > > Please try this patch to configure.in: > > RCS file: /cvsroot/vpopmail/vpopmail/configure.in,v > retrieving revision 1.27 > diff -u -r1.27 configure.in > --- configure.in22 Feb 2004 22:17:41 - 1.27 > +++ configure.in24 Feb 2004 17:06:26 - > @@ -199,7 +199,7 @@ > > case "$host" in > *-*-solaris*) > -extralibflags="-R$libdir" > +extralibflags="-R$libdir -lnsl -lsocket" > AC_MSG_WARN(Solaris install detected. Using extralibflags for > linking: $extralibflags) > ;; > *) > > And then run autoconf to rebuild configure. > > Or, better for our testing, edit configure manually, look for that > line, and update it. > > I found some entries in the ChangeLog that seem to indicate that one or > both of those libs are necessary to properly build vpopmail on Solaris. > > -- > Tom Collins - [EMAIL PROTECTED] > QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ > Info on the Sniffter handheld Network Tester: http://sniffter.com/ -- HigherAccess.com for web and email hosting needs. http://www.higheraccess.com/
Re: [vchkpw] vpopmail 5.4.0 Make error on Solaris 9 (possible solution)
On Feb 24, 2004, at 8:14 AM, Joseph Bruzzo wrote: I am trying to compile vpopmail-5.4.0 on a SUN Ultra 5 running Solaris 9 with all the security and recommended patches. But I keep on getting this error that for the life of me I can not figure it out. Please try this patch to configure.in: RCS file: /cvsroot/vpopmail/vpopmail/configure.in,v retrieving revision 1.27 diff -u -r1.27 configure.in --- configure.in22 Feb 2004 22:17:41 - 1.27 +++ configure.in24 Feb 2004 17:06:26 - @@ -199,7 +199,7 @@ case "$host" in *-*-solaris*) -extralibflags="-R$libdir" +extralibflags="-R$libdir -lnsl -lsocket" AC_MSG_WARN(Solaris install detected. Using extralibflags for linking: $extralibflags) ;; *) And then run autoconf to rebuild configure. Or, better for our testing, edit configure manually, look for that line, and update it. I found some entries in the ChangeLog that seem to indicate that one or both of those libs are necessary to properly build vpopmail on Solaris. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter handheld Network Tester: http://sniffter.com/