

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
2 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Compile failure o...| From | Sent On | Attachments |
|---|---|---|
| Robert Banniza | May 22, 2007 12:45 pm | |
| Gebhard Thier | May 22, 2007 2:42 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [courier-users] Compile failure of courier-authlib-0.59.3 on Solaris 10 | Actions... |
|---|---|---|
| From: | Gebhard Thier (gebh...@thierfreund.de) | |
| Date: | May 22, 2007 2:42:53 pm | |
| List: | net.sourceforge.lists.courier-users | |
Hi,
the Sun tools coming with the OS (even the sfw tools) won't work. Here's a posting I did some months ago (with minor edits).
Perhaps someone could add it to the FAQ?
-------------------------------8<-------------------------------
I managed to compile courier on Solaris 10 x86 (32 bit). You have to ensure to use a clean and complete _GNU_ environment (I also got the information that maybe a clean and complete _Sun_ compiler environment might also work).
What doesn't work is the thing Sun distributes with Solaris 10: GNU compiler and Sun's ld. Don't try - even if you set the path and env correct, the gcc which comes wih Solaris 10 would _always_ use the Sun ld.
The best way ist to start with the GNU tarballs and make a clean GNU compile environment on your own.
Here's what worked for me: - courier-0.53.3 - courier-authlib-0.58 - options for authlib: ./configure --prefix=/app/courier --without-stdheaderdir --with-mailuser=courier --with-mailgroup=courier CPPFLAGS=-I/usr/local/BerkeleyDB/include LDFLAGS=-L/usr/local/BerkeleyDB/lib CCLD=/usr/local/gt-compile/bin/ld CXXLD=/usr/local/gt-compile/bin/ld LD=/usr/local/gt-compile/bin/ld
- options for courier: setting where auth lives: COURIERAUTHCONFIG=/app/courier/bin/courierauthconfig export COURIERAUTHCONFIG
first compile to run make check: ./configure --prefix=/app/courier --without-stdheaderdir --with-mailuser=courier --with-mailgroup=courier CPPFLAGS=-I/usr/local/BerkeleyDB/include LDFLAGS=-L/usr/local/BerkeleyDB/lib CCLD=/usr/local/gt-compile/bin/ld CXXLD=/usr/local/gt-compile/bin/ld LD=/usr/local/gt-compile/bin/ld --without-tcpddns --enable-unicode --enable-https=auto --with-waitfunc=wait3
then: make and make check
when OK: final make ./configure --prefix=/app/courier --without-stdheaderdir --with-mailuser=courier --with-mailgroup=courier CPPFLAGS=-I/usr/local/BerkeleyDB/include LDFLAGS=-L/usr/local/BerkeleyDB/lib CCLD=/usr/local/gt-compile/bin/ld CXXLD=/usr/local/gt-compile/bin/ld LD=/usr/local/gt-compile/bin/ld --without-tcpddns --enable-unicode --enable-https=auto --with-waitfunc=wait3 --enable-workarounds-for-imap-client-bugs
- compiler etc.: gcc --version gcc (GCC) 3.4.6 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ld --version GNU ld version 2.17 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty.
ar --version GNU ar 2.17 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty.
Note: the packages from sunfreeware.com won't work because their gcc was linked with the Sun linker and so this gcc will _always_ use the Sun linker (regardless of your search path and compiler options).
Hope this helps.
Good luck, Gebhard Thier
Robert Banniza wrote the following on 22.05.2007 21:46:
I have been trying to compile courier-authlib-0.59.3 on Solaris 10 for a week now with no luck. The error I'm receiving is:
Compiling preauthdaemon.c gcc: language strconst not recognized gcc: preauthdaemon.c: linker input file unused because linking not done mv: cannot stat `.deps/preauthdaemon.Tpo': No such file or directory gmake[2]: *** [preauthdaemon.lo] Error 1 gmake[2]: Leaving directory `/export/home/robert/MAIL_BUILD/courier-authlib-0.59.3' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/export/home/robert/MAIL_BUILD/courier-authlib-0.59.3' gmake: *** [all] Error 2
I am using the following configuration to configure and compile:
PATH=/usr/sfw/sparc-sun-solaris2.10/bin:$PATH export PATH LD=/usr/sfw/sparc-sun-solaris2.10/bin/ld export LD CCLD=/usr/sfw/sparc-sun-solaris2.10/bin/ld export CCLD CXXLD=/usr/sfw/sparc-sun-solaris2.10/bin/ld export CXXLD
CPPFLAGS="-I/opt/sfw/include" LDFLAGS="-L/opt/sfw/lib" ./configure --with-mailuser=vmail --with-mailgroup=vmail --with-gnu-ld --enable-unicode --with-gnu-ld && gmake
I've Googled and all options tried have failed...Where am I going wrong? Is this an issue with Sol 10 dynamic linker?
------------------------------------------------------------------------
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------
_______________________________________________ courier-users mailing list cour...@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users







