I am trying to build the current version of Courier, when my OpenLDAP libs
are in a not-yet-installed location.
Previously I had achieved this as follows:
export LDFLAGS="-L`pwd`/work/openldap-2.0.23/libraries" \
CPPFLAGS="-I`pwd`/work/openldap-2.0.23/include" \
&& cd work/courier-0.37.2.20020220 && ./configure
... then make
However, this no longer works:
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/u/home/brian/sys/work/openldap-2.0.23/include
`cat cflags` -c ldapaliasd.c
/bin/sh ./libtool --mode=link gcc `cat cflags`
-L/u/home/brian/sys/work/openldap-2.0.23/libraries -o courierldapaliasd ldapaliasd.o
ldapaliasdrc.o ../liblock/liblock.a ../numlib/libnumlib.a ../authlib/libauth.a -lldap
-llber
gcc -I./.. -I.. -I./../afx -I./../rfc822 -I./libs -Wall -g -O2 -o courierldapaliasd
ldapaliasd.o ldapaliasdrc.o -L/u/home/brian/sys/work/openldap-2.0.23/libraries
../liblock/liblock.a ../numlib/libnumlib.a ../authlib/libauth.a
/u/home/brian/sys/work/openldap-2.0.23/libraries/.libs/libldap.a
/u/home/brian/sys/work/openldap-2.0.23/libraries/.libs/liblber.a
gcc: /u/home/brian/sys/work/openldap-2.0.23/libraries/.libs/libldap.a: No such file or
directory
gcc: /u/home/brian/sys/work/openldap-2.0.23/libraries/.libs/liblber.a: No such file or
directory
gmake[3]: *** [courierldapaliasd] Error 1
gmake[3]: Leaving directory `/u/home/brian/sys/work/courier-0.37.2.20020220/courier'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/u/home/brian/sys/work/courier-0.37.2.20020220/courier'
gmake[1]: *** [all-recursive-am] Error 2
gmake[1]: Leaving directory `/u/home/brian/sys/work/courier-0.37.2.20020220/courier'
gmake: *** [all-recursive] Error 1
*** Error code 2
For some reason, the script has added /.lib onto the end of my library path,
i.e. the file actually exists in
/u/home/brian/sys/work/openldap-2.0.23/libraries/libldap.a
but it is trying to find it in
/u/home/brian/sys/work/openldap-2.0.23/libraries/.lib/libldap.a
Any suggestions for a clean way to deal with this?
For consistency it would be nice to have
--with-ldap-libs=
--with-ldap-includes=
but the LDFLAGS trick used to work before, so I wonder if something has broken
accidentally.
Thanks...
Brian.
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users