Comment 2 for bug 676672

Revision history for this message
Matthias Klose (doko) wrote :

the patch may be wrong.

the original problem is:

configure:56654: checking for sasl_version in -lldap
configure:56679: powerpc64-linux-gnu-gcc -o conftest -I/usr/include -g -O2 -O2 -Wall -fsigned-char -fno-strict-aliasing -g -fvisibility=hidden -I/usr/include -L/usr/lib -Wl,-Bsymbolic-functions -lldap -llber -lsasl2 conftest.c -lldap -lssl -ldb -lbz2 -lz -lpcre -lssl -lm -ldl -lnsl -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lxml2 -lldap -llber >&5
/tmp/ccN9qAWO.o: In function `main':
/home/doko/packages/php5-5.3.3/apache2-build/conftest.c:332: undefined reference to `sasl_version'
collect2: ld returned 1 exit status

here "-lldap -llber -lsasl2" are added *before* the object. There seems to be something wrong with the configure macro(s).