>>>> Ilya N Golubev writes:
Would like to see `config.log' entries on ldap configuation on
Volker's system, whatever it is. What value would old / 21.4.17
`configure' code assign to `LIBS' on that system?
21.4.17:
========
config.log:
-----------
configure:7771: checking for LDAP
configure:7774: checking for ldap.h
configure:7782: gcc -E -Wno-sign-compare -fno-caller-saves -I/usr/X11/include
conftest.c >/dev/null 2>conftest.out
configure:7805: checking for lber.h
configure:7813: gcc -E -Wno-sign-compare -fno-caller-saves -I/usr/X11/include
conftest.c >/dev/null 2>conftest.out
configure:7837: checking for ldap_search in -lldap
configure:7853: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lldap -lXmu
-lXt -lXext -lX11 -lSM -lICE -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32
-lkernel32 -lwinspool 1>&5
configure:7995: checking for ber_pvt_opt_on in -llber
configure:8011: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -llber -lXmu
-lXt -lXext -lX11 -lSM -lICE -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32
-lkernel32 -lwinspool 1>&5
Info: resolving _ber_pvt_opt_on by linking to __imp__ber_pvt_opt_on (auto-import)
configure:8057: checking for ldap_set_option
configure:8083: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lldap -llber -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32
-lcomctl32 -lkernel32 -lwinspool 1>&5
configure:8057: checking for ldap_get_lderrno
configure:8083: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lldap -llber -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32
-lcomctl32 -lkernel32 -lwinspool 1>&5
/tmp/ccE8woTH.o: In function `main':
/usr/src/xemacs-21.4.17/.build/configure:8077: undefined reference to
`_ldap_get_lderrno'
collect2: ld returned 1 exit status
configure: failed program was:
#line 8060 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char ldap_get_lderrno(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char ldap_get_lderrno();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_ldap_get_lderrno) || defined (__stub___ldap_get_lderrno)
choke me
#else
ldap_get_lderrno();
#endif
; return 0; }
configure:8057: checking for ldap_result2error
configure:8083: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lldap -llber -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32
-lcomctl32 -lkernel32 -lwinspool 1>&5
configure:8057: checking for ldap_parse_result
configure:8083: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lldap -llber -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32
-lcomctl32 -lkernel32 -lwinspool 1>&5
config.status:
--------------
s%@LIBS@%-ldb -lncurses -lintl -lpq -lldap -llber %g
21.4.18:
========
config.log:
-----------
configure:7770: checking for LDAP
configure:7773: checking for ldap.h
configure:7781: gcc -E -Wno-sign-compare -fno-caller-saves -I/usr/X11/include
conftest.c >/dev/null 2>conftest.out
configure:7804: checking for lber.h
configure:7812: gcc -E -Wno-sign-compare -fno-caller-saves -I/usr/X11/include
conftest.c >/dev/null 2>conftest.out
configure:7837: checking for ldap_open
configure:7863: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32
-lkernel32 -lwinspool 1>&5
/tmp/cckSVd1o.o: In function `main':
/usr/src/xemacs-21.4.18/.build/configure:7857: undefined reference to `_ldap_open'
collect2: ld returned 1 exit status
configure: failed program was:
#line 7840 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char ldap_open(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char ldap_open();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_ldap_open) || defined (__stub___ldap_open)
choke me
#else
ldap_open();
#endif
; return 0; }
configure:7883: checking for ldap_open in -lldap
configure:7899: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lldap -lXmu
-lXt -lXext -lX11 -lSM -lICE -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32
-lkernel32 -lwinspool 1>&5
configure:8126: checking for ldap_set_option
configure:8152: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lldap -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32
-lcomctl32 -lkernel32 -lwinspool 1>&5
configure:8126: checking for ldap_get_lderrno
configure:8152: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lldap -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32
-lcomctl32 -lkernel32 -lwinspool 1>&5
/tmp/ccSOjNox.o: In function `main':
/usr/src/xemacs-21.4.18/.build/configure:8146: undefined reference to
`_ldap_get_lderrno'
collect2: ld returned 1 exit status
configure: failed program was:
#line 8129 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char ldap_get_lderrno(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char ldap_get_lderrno();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_ldap_get_lderrno) || defined (__stub___ldap_get_lderrno)
choke me
#else
ldap_get_lderrno();
#endif
; return 0; }
configure:8126: checking for ldap_result2error
configure:8152: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lldap -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32
-lcomctl32 -lkernel32 -lwinspool 1>&5
configure:8126: checking for ldap_parse_result
configure:8152: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -fno-strict-aliasing -Wshadow -Wpointer-arith -Wno-sign-compare
-fno-caller-saves -I/usr/X11/include -L/usr/X11R6/lib conftest.c -lXmu -lXt
-lXext -lX11 -lSM -lICE -lldap -lwinmm -lshell32 -lgdi32 -luser32 -lcomdlg32
-lcomctl32 -lkernel32 -lwinspool 1>&5
config.status:
--------------
s%@LIBS@%-ldb -lncurses -lintl -lpq -lldap %g
Ciao
Volker