Thanks Tom! Also I notice that version 5.4.13 is available under the stable releases on SourceForge, and it says it includes the -fPIC option. However it doesn't solve my problem; and I have the latest mysql version (5.0.17 generic rpm) installed which is apparrently compiled with the -fPIC option but it still errors with
"Linking libauthmysql.la /usr/bin/ld: /usr/lib/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/libmysqlclient.a: could not read symbols: Bad value" when I do a gmake in courier-authlib-0.58 Patching vpopmail with this patch didn't solve my problem... but surely my error is with courier-authlib? Thanks for your help, David > -----Original Message----- > From: Tom Collins [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 28 December 2005 4:34 PM > To: [email protected] > Subject: Re: [toaster] courier-authlib gmake problem with FC4 on x86_64 > > > I think it's something about the new courier-imap that requires > libvpopmail to be compiled with the -fPIC option. > > Here's a patch you can apply to 5.4.10: > > Index: Makefile.am > =================================================================== > RCS file: /cvsroot/vpopmail/vpopmail/Makefile.am,v > retrieving revision 1.17.2.2 > retrieving revision 1.17.2.3 > diff -u -d -r1.17.2.2 -r1.17.2.3 > --- Makefile.am 16 Dec 2004 16:07:48 -0000 1.17.2.2 > +++ Makefile.am 2 Sep 2005 18:59:14 -0000 1.17.2.3 > @@ -18,6 +18,7 @@ > > libvpopmail_a_SOURCES=$(COMMONSOURCES) > libvpopmail_a_LIBADD = cdb/*.o > +libvpopmail_a_CFLAGS = -fPIC > > [EMAIL PROTECTED]@/bin > vpopmailbin_PROGRAMS = vchkpw vdelivermail clearopensmtp vadddomain \ > > -Tom > > On Dec 27, 2005, at 6:04 PM, David wrote: > > Just thought I'd add that the previous version toaster compiled fine > > on FC3 > > on x86_64 (AMD Athlon 64). > > > > David > > > >> -----Original Message----- > >> From: David [mailto:[EMAIL PROTECTED] > >> Sent: Wednesday, 28 December 2005 11:37 AM > >> To: [email protected] > >> Subject: RE: [toaster] courier-authlib gmake problem with FC4 on > >> x86_64 > >> > >> > >> No it's 5.4.10... but this seems to be a problem with compiling > >> courier-authlib with libauthmysql.la? Would using vpopmail 5.4.13 > >> fix that? > >> > >> Thanks, > >> > >> David > >> > >>> -----Original Message----- > >>> From: Tom Collins [mailto:[EMAIL PROTECTED] > >>> Sent: Wednesday, 28 December 2005 7:47 AM > >>> To: [email protected] > >>> Subject: Re: [toaster] courier-authlib gmake problem with FC4 on > >>> x86_64 > >>> > >>> > >>> Does the toaster use vpopmail 5.4.13? That's where we added the > >>> -fPIC > >>> option when compiling libvpopmail. > >>> > >>> On Dec 27, 2005, at 11:18 AM, David Branford wrote: > >>>> Appologies - I didn't proof-read properly. "...appears to be a > >>>> similar > >>>> problem to _..." should include a link to a message which I thought > >>>> discussed a similar problem. Here it is: > >>>> > >>>> http://www.mail-archive.com/[email protected]/msg02976.html > >>>> > >>>> David > >>>> > >>>>> Hi list, > >>>>> > >>>>> I'm encountering what appears to be a similar problem to _ when I > >>>>> get > >>>>> the > >>>>> the courier-imap stage of the toaster install. The following is a > >>>>> tail of > >>>>> the output of the gmake command run right after a successful > >>>>> ./configure > >>>>> --with-redhat (system is a 64-bit AMD system running FC4_x86_64): > >>>>> > >>>>> <tail> > >>>>> > >>>>> Linking libauthldap.la > >>>>> Compiling authmysql.c > >>>>> Compiling preauthmysql.c > >>>>> Compiling authmysqllib.c > >>>>> Linking libauthmysql.la > >>>>> /usr/bin/ld: /usr/lib/libmysqlclient.a(libmysql.o): relocation > >>>>> R_X86_64_32 > >>>>> against `a local symbol' can not be used when making a shared > >>>>> object; > >>>>> recompile with -fPIC > >>>>> /usr/lib/libmysqlclient.a: could not read symbols: Bad value > >>>>> collect2: ld returned 1 exit status > >>>>> gmake[2]: *** [libauthmysql.la] Error 1 > >>>>> gmake[2]: Leaving directory `/var/src/toaster/courier-authlib-0.58' > >>>>> gmake[1]: *** [all-recursive] Error 1 > >>>>> gmake[1]: Leaving directory `/var/src/toaster/courier-authlib-0.58' > >>>>> gmake: *** [all] Error 2 > >>>>> > >>>>> </tail> > >>>>> > >>>>> Looks like > >>>>> http://sourceforge.net/mailarchive/forum.php? > >>>>> thread_id=8106414&forum_id=35252 > >>>>> is a similar error. I am using the most recent version of the > >>>>> toaster > >>>>> as > >>>>> of 28-12-2005 from shupp.org/toaster > >>>>> > >>>>> Can anybody suggest another way around this perhaps? I don't want > >>>>> to > >>>>> have > >>>>> to install a 32-bit OS just to get courier-authlib working! However > >>>>> that's > >>>>> a rather essential component... > >>>>> > >>>>> Regards, > >>>>> David > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > > > !DSPAM:43b22ad4203142343143565! > >
