Hi,
I'm having trouble compiling courier-authlib-0.57 on Solaris 10 and
wondering if anyone has suggestions about how to fix the problem.
To summarize, configure works fine and gmake builds some of the
software but finally dies on authdaemon.c; specific details follow.
Thanks for any help.
Dustin
I am using the sun-supplied gcc:
$ gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
the sun-supplied GNU linker:
$ gld -v
GNU ld version 2.15
and the sun-supplied GNU make:
$ gmake -v
GNU Make 3.80
I have installed the latest GNU libtool (1.5.20) and Berkeley DB
(4.4.16) - both with --prefix=/opt/dh.
Finally, I'm using the following configure options for courier:
export LD="/usr/sfw/bin/gld"
export NM="/usr/sfw/bin/gnm"
export MAKE="/usr/sfw/bin/gmake"
export LDFLAGS="-L/opt/dh/lib"
export CPPFLAGS="-I/opt/dh/include"
./configure \
--prefix=/opt/dh \
--sysconfdir=/etc/dh \
--localstatedir=/var \
--with-db=db \
--with-gnu-ld \
--with-authmysql \
--with-mysql-libs=/usr/sfw/lib/mysql \
--with-mysql-includes=/usr/sfw/include/mysql \
--with-mailuser=courier \
--with-mailgroup=courier \
--without-authldap \
--without-stdheaderdir
This goes through ok and I run gmake, which dies on authdaemon.c:
gmake[2]: Entering directory `/tmp/build/courier-authlib-0.57'
Compiling authdaemon.c
gcc: language strconst not recognized
gcc: authdaemon.c: linker input file unused because linking not done
mv: cannot access .deps/authdaemon.Tpo
gmake[2]: *** [authdaemon.lo] Error 2
gmake[2]: Leaving directory `/tmp/build/courier-authlib-0.57'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/build/courier-authlib-0.57'
gmake: *** [all] Error 2