22 messages in net.sourceforge.lists.courier-usersSV: SV: [courier-users] Compiling ver...
FromSent OnAttachments
Göran HöglundApr 6, 2006 4:15 am 
ma...@intron.acApr 6, 2006 6:51 am 
Bill TaroliApr 6, 2006 6:37 pm 
Göran HöglundApr 6, 2006 11:58 pm 
Bill TaroliApr 7, 2006 12:45 am 
Göran HöglundApr 7, 2006 2:52 am 
Sergio BotrsovApr 12, 2006 5:17 am 
Grzegorz JanoszkaApr 12, 2006 5:20 am 
Sergio BotrsovApr 12, 2006 5:46 am 
Sergio BotrsovApr 12, 2006 5:49 am 
Sergio BotrsovApr 12, 2006 5:55 am 
Ben KennedyApr 12, 2006 7:10 am 
Bowie BaileyApr 12, 2006 7:23 am 
Ben KennedyApr 12, 2006 7:55 am 
Bowie BaileyApr 12, 2006 8:51 am 
Gordon MessmerApr 12, 2006 9:17 am 
Gordon MessmerApr 12, 2006 10:01 am 
Sergio BotrsovApr 13, 2006 12:33 am 
Gordon MessmerApr 13, 2006 9:38 pm 
Sergio BotrsovApr 14, 2006 2:05 am 
Gordon MessmerApr 15, 2006 11:54 pm 
Göran HöglundApr 20, 2006 7:27 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:SV: SV: [courier-users] Compiling version threeActions...
From:Göran Höglund (gora@telemar.se)
Date:Apr 20, 2006 7:27:45 am
List:net.sourceforge.lists.courier-users

Finnally I got the compiling done. I found out that MySQL was complied with SUN FORTE C compiler leaving a mysql.config file with CCFLAGS made for that compiler. I had to download mysql source and comple that with gcc. Then everything was OK. My ./configure is: # ./configure CPPFLAGS=-I/usr/local/BerkeleyDB/include LDFLAGS=-L/usr/local/BerkeleyDB/lib --with-waitfunc=wait3 --enable-mimetypes --with-authmysql --with-mysql-libs=/usr/local/mysql/lib/mysql --with-mysql-includes=/usr/local/mysql/include –without-ldapauthlib

/GH

-----Ursprungligt meddelande----- Från: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net] För Göran Höglund Skickat: den 7 april 2006 11:52 Till: 'Bill Taroli'; cour@lists.sourceforge.net Ämne: SV: SV: [courier-users] Compiling version three

I have the same version of gcc as you do. It's downloaded from Sunfreeware meaning that it's probablly linked with suns ld.

I am building courier-authlib from source to include mysql support with gcc and gnu ld. I configured using the command: # ./configure CPPFLAGS=-I/usr/local/BerkeleyDB/include \ LDFLAGS=-L/usr/local/BerkeleyDB/lib --with-waitfunc=wait3 \ --enable-mimetypes --with-authmysql --with-mysql-libs=/opt/mysql/mysql/lib \ --with-mysql-includes=/opt/mysql/mysql/include

I have to explicit point the mysql path for config, to get config to find mysql since this is a binary packet install for Solaris 8 downloaded from mysql. The compiler works fine up to the point where compiling authdaemonlib.c takes place. Here I get the error message "language arch=v8" from gcc. Linking is not done because there is no object files to link.

/GH

-----Ursprungligt meddelande----- Från: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net] För Bill Taroli Skickat: den 7 april 2006 09:45 Till: cour@lists.sourceforge.net Ämne: Re: SV: [courier-users] Compiling version three

Göran Höglund wrote:

As the output snippet from my make command below shows I am trying to compile authlib with mysql support. I have short circuted the solaris linker by renaming it becuse I had problems with this earlier. Right now I suspect gcc not the linker though. I have tried to find more info about "gcc: language arch=v8 not recognized" but with no success. My worst fear is that I also may have to complie mysql with the same tools (GNU) that I use for courier-authlib.

/GH

What gcc version are you using? Mine is 3.4.2 and was linked originally with /usr/ccs/bin/ld. I have built from source again using the commands I mentioned (to force gnu ld) and added support for mysql (v4.0.20 in my case) without any problems.

Come to think of it... I seem to remember getting a weird build error like that when I was still working on getting it to use the gnu ld... I had configured using it but parts of the make were still referring to Sun's. But using Sun's ld when the make expected gnu caused errors like this.

Bill