# Integrating OpenVPN with OpenLDAP

**URL:** <https://forums.suse.com/t/integrating-openvpn-with-openldap/26242>\
**Category:** SLES Configure-Administer\
**Created:** [October 22, 2014, 6:21pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242 "2014-10-22T18:21:16Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecanmaster](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@ecanmaster](https://forums.suse.com/u/ecanmaster)\
**Post date:** [October 22, 2014, 6:21pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/1 "2014-10-22T18:21:16Z")

</div>

hi,

I am running suse linux enterprise 11 and have installed openvpn and openldap

Openvpn and openldap are running.  
I downloaded auth-ldap-2.0.3  
and run this command:

command:

# ./configure --prefix=/usr/local --with-openldap=/etc/openldap --with-openvpn=/tmp/openvpn-2.2.2  
checking build system type… x86\_64-unknown-linux-gnu  
checking host system type… x86\_64-unknown-linux-gnu  
checking target system type… x86\_64-unknown-linux-gnu  
checking for gcc… gcc  
checking for C compiler default output file name… a.out  
checking whether the C compiler works… yes  
checking whether we are cross compiling… no  
checking for suffix of executables…  
checking for suffix of object files… o  
checking whether we are using the GNU C compiler… yes  
checking whether gcc accepts -g… yes  
checking for gcc option to accept ISO C89… none needed  
checking for gcc… gcc  
checking whether we are using the GNU Objective C compiler… yes  
checking whether gcc accepts -x objective-c… yes  
checking for a BSD-compatible install… /usr/bin/install -c  
checking whether ln -s works… yes  
checking whether make sets $(MAKE)… yes  
checking for re2c… /usr/bin/re2c  
checking for doxygen… no  
checking for dot… no  
checking how to run the C preprocessor… gcc -E  
checking for grep that handles long lines and -e… /usr/bin/grep  
checking for egrep… /usr/bin/grep -E  
checking for ANSI C header files… yes  
checking for the pthreads library -lpthreads… no  
checking whether pthreads work without any flags… no  
checking whether pthreads work with -Kthread… no  
checking whether pthreads work with -kthread… no  
checking for the pthreads library -llthread… no  
checking whether pthreads work with -pthread… yes  
checking for joinable pthread attribute… PTHREAD\_CREATE\_JOINABLE  
checking if more special flags are required for pthreads… no  
checking for BSD pf(4) support… no  
configure: WARNING: pf(4) table support will not be included.  
checking for strlcpy… no  
checking for openldap… yes  
checking for check unit test library… yes  
checking for openvpn-plugin.h… yes  
checking for sys/types.h… yes  
checking for sys/stat.h… yes  
checking for stdlib.h… yes  
checking for string.h… yes  
checking for memory.h… yes  
checking for strings.h… yes  
checking for inttypes.h… yes  
checking for stdint.h… yes  
checking for unistd.h… yes  
checking how to run the Objective C preprocessor… gcc -E  
checking objc/objc.h usability… yes  
checking objc/objc.h presence… yes  
checking for objc/objc.h… yes  
checking if linking libobjc requires pthreads… no  
checking for Apple Objective-C runtime… no  
checking for GNU Objective C runtime… yes  
configure: Using GNU Objective-C runtime  
configure: creating ./config.status  
config.status: creating Makefile  
config.status: creating tools/Makefile  
config.status: creating src/Makefile  
config.status: creating tests/Makefile  
config.status: creating Mk/autoconf.mk  
config.status: creating Mk/compile.mk  
config.status: creating Mk/subdir.mk  
config.status: creating doxyfile  
config.status: creating config.h  
config.status: config.h is unchanged

It seems it’s not installing openldap authentication with openvpn  
the config.log is too large, but this is what i found:

configure:3803: $? = 0  
configure:3841: gcc -E conftest.c  
conftest.c:8:28: error: ac\_nonexistent.h: No such file or directory  
configure:3847: $? = 1  
configure: failed program was:  
| /\* confdefs.h. _/  
| #define PACKAGE\_NAME “auth-ldap”  
| #define PACKAGE\_TARNAME “auth-ldap”  
| #define PACKAGE\_VERSION “2.0”  
| #define PACKAGE\_STRING “auth-ldap 2.0”  
| #define PACKAGE\_BUGREPORT “[landonf@opendarwin.org](mailto:landonf@opendarwin.org)”  
| /_ end confdefs.h. \*/  
| #include \<ac\_nonexistent.h\>

configure:4575: gcc -o conftest -g -O2 conftest.c -lpthreads \>&5  
/usr/lib64/gcc/x86\_64-suse-linux/4.3/…/…/…/…/x86\_64-suse-linux/bin/ld: cannot find -lpthreads  
collect2: ld returned 1 exit status  
configure:4581: $? = 1  
configure: failed program was:  
| /\* confdefs.h. \*/  
| #define PACKAGE\_NAME “auth-ldap”

I have the lpthreads installed:

# find / -name libpthread\*  
/usr/lib64/libpthread\_nonshared.a  
/usr/lib64/libpthread.so  
/usr/lib64/libpthread.a  
/usr/lib/libpthread\_nonshared.a  
/usr/lib/libpthread.so  
/usr/lib/libpthread.a  
/lib64/libpthread-2.11.3.so  
/lib64/libpthread.so.0  
/lib/libpthread-2.11.3.so  
/lib/libpthread.so.0

Does this look good? And how can I point to the libpthread files?  
thx

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 22, 2014, 6:55pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/2 "2014-10-22T18:55:27Z")

</div>

> [@](#):
>
> On Wed 22 Oct 2014 03:24:02 PM CDT, ecanmaster wrote:
> 
> hi,
> 
> I am running suse linux enterprise 11 and have installed openvpn and  
> openldap
> 
> Openvpn and openldap are running.  
> I downloaded auth-ldap-2.0.3  
> and run this command:

Hi  
Why not grab the src rpm from OBS and rebuild that?  
[http://software.opensuse.org/package/openvpn-auth-ldap](http://software.opensuse.org/package/openvpn-auth-ldap)

Else have a look at the spec file and check you have the BuildRequires  
installed.  
[https://build.opensuse.org/package/show?project=network%3Avpn&package=openvpn-auth-ldap](https://build.opensuse.org/package/show?project=network%3Avpn&package=openvpn-auth-ldap)

Or ask the Maintainers to build for SLE 11 SP3…

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-21-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 22, 2014, 7:14pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/3 "2014-10-22T19:14:50Z")

</div>

Hi ecanmaster,

[QUOTE=ecanmaster;24305]hi,

I am running suse linux enterprise 11 and have installed openvpn and openldap[/QUOTE]

For completeness’ sake - _which_ SLES11? SP3? SP2?

[QUOTE=ecanmaster;24305]  
# ./configure --prefix=/usr/local --with-openldap=/etc/openldap --with-openvpn=/tmp/openvpn-2.2.2[/QUOTE]

shouldn’t --with-openldap point to the development versions of the LDAP libraries? Do you have “openldap2-devel” installed?

[QUOTE=ecanmaster;24305][…]  
configure:3803: $? = 0  
configure:3841: gcc -E conftest.c  
conftest.c:8:28: error: ac\_nonexistent.h: No such file or directory  
configure:3847: $? = 1  
configure: failed program was:[/QUOTE]  
This test is supposed to fail.

[QUOTE=ecanmaster;24305]configure:4575: gcc -o conftest -g -O2 conftest.c -lpthreads \>&5  
/usr/lib64/gcc/x86\_64-suse-linux/4.3/…/…/…/…/x86\_64-suse-linux/bin/ld: cannot find -lpthreads  
collect2: ld returned 1 exit status  
configure:4581: $? = 1  
configure: failed program was:  
| /\* confdefs.h. \*/  
| #define PACKAGE\_NAME “auth-ldap”[/QUOTE]  
This one looks strange. From the list of found libs, you seem to have “glibc-devel” installed, but could you please double-check (“rpm -qf /usr/lib64/libpthread.a”)?

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![ecanmaster](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@ecanmaster](https://forums.suse.com/u/ecanmaster)\
**Post date:** [October 22, 2014, 10:11pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/4 "2014-10-22T22:11:25Z")

</div>

hello Jens,

Thank you for your reply.  
Here is the information:

# rpm -qf /usr/lib64/libpthread.a

glibc-devel-2.11.3-17.45.49.1

and openldap2-devel is installed, I double checked

I tried with this command now:  
./configure --with-openvpn=/tmp/openvpn-2.2.2  
but still the same error :  
configure:4575: gcc -o conftest -g -O2 conftest.c -lpthreads \>&5  
/usr/lib64/gcc/x86\_64-suse-linux/4.3/../../../../x86\_64-suse-linux/bin/ld: cannot find -lpthreads  
collect2: ld returned 1 exit status

---

<div class="post-metadata">

**Author:** ![ecanmaster](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@ecanmaster](https://forums.suse.com/u/ecanmaster)\
**Post date:** [October 22, 2014, 10:15pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/5 "2014-10-22T22:15:17Z")

</div>

here is the config.log:

# cat config.log

This file contains any messages produced by compilers while  
running configure, to aid debugging if configure makes a mistake.

It was created by auth-ldap configure 2.0, which was  
generated by GNU Autoconf 2.60. Invocation command line was

$ ./configure --with-openvpn=/tmp/openvpn-2.2.2

## ---------

## Platform.

## ---------

hostname = ip-10-80-172-228  
uname -m = x86\_64  
uname -r = 3.0.13-0.27-ec2  
uname -s = Linux  
uname -v = #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b)

/usr/bin/uname -p = unknown  
/bin/uname -X = unknown

/bin/arch = x86\_64  
/usr/bin/arch -k = unknown  
/usr/convex/getsysinfo = unknown  
/usr/bin/hostinfo = unknown  
/bin/machine = unknown  
/usr/bin/oslevel = unknown  
/bin/universe = unknown

PATH: /sbin  
PATH: /usr/sbin  
PATH: /usr/local/sbin  
PATH: /root/bin  
PATH: /usr/local/bin  
PATH: /usr/bin  
PATH: /bin  
PATH: /usr/X11R6/bin  
PATH: /usr/games  
PATH: /usr/lib/mit/bin  
PATH: /usr/lib/mit/sbin

## -----------

## Core tests.

## -----------

configure:1781: checking build system type  
configure:1799: result: x86\_64-unknown-linux-gnu  
configure:1821: checking host system type  
configure:1836: result: x86\_64-unknown-linux-gnu  
configure:1858: checking target system type  
configure:1873: result: x86\_64-unknown-linux-gnu  
configure:1951: checking for gcc  
configure:1967: found /usr/bin/gcc  
configure:1978: result: gcc  
configure:2216: checking for C compiler version  
configure:2223: gcc --version \>&5  
gcc (SUSE Linux) 4.3.4 [gcc-4\_3-branch revision 152973]  
Copyright (C) 2008 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.

configure:2226: $? = 0  
configure:2233: gcc -v \>&5  
Using built-in specs.  
Target: x86\_64-suse-linux  
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=[http://bugs.opensuse.org/](http://bugs.opensuse.org/) --with-pkgversion=‘SUSE Linux’ --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-\_\_cxa\_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86\_64-suse-linux  
Thread model: posix  
gcc version 4.3.4 [gcc-4\_3-branch revision 152973] (SUSE Linux)  
configure:2236: $? = 0  
configure:2243: gcc -V \>&5  
gcc: ‘-V’ option must have argument  
configure:2246: $? = 1  
configure:2269: checking for C compiler default output file name  
configure:2296: gcc conftest.c \>&5  
configure:2299: $? = 0  
configure:2345: result: a.out  
configure:2350: checking whether the C compiler works  
configure:2360: ./a.out  
configure:2363: $? = 0  
configure:2380: result: yes  
configure:2387: checking whether we are cross compiling  
configure:2389: result: no  
configure:2392: checking for suffix of executables  
configure:2399: gcc -o conftest conftest.c \>&5  
configure:2402: $? = 0  
configure:2426: result:  
configure:2432: checking for suffix of object files  
configure:2458: gcc -c conftest.c \>&5  
configure:2461: $? = 0  
configure:2484: result: o  
configure:2488: checking whether we are using the GNU C compiler  
configure:2517: gcc -c conftest.c \>&5  
configure:2523: $? = 0  
configure:2530: test -z “$ac\_c\_werror\_flag” || test ! -s conftest.err  
configure:2533: $? = 0  
configure:2540: test -s conftest.o  
configure:2543: $? = 0  
configure:2557: result: yes  
configure:2562: checking whether gcc accepts -g  
configure:2592: gcc -c -g conftest.c \>&5  
configure:2598: $? = 0  
configure:2605: test -z “$ac\_c\_werror\_flag” || test ! -s conftest.err  
configure:2608: $? = 0  
configure:2615: test -s conftest.o  
configure:2618: $? = 0  
configure:2748: result: yes  
configure:2765: checking for gcc option to accept ISO C89  
configure:2839: gcc -c -g -O2 conftest.c \>&5  
configure:2845: $? = 0  
configure:2852: test -z “$ac\_c\_werror\_flag” || test ! -s conftest.err  
configure:2855: $? = 0  
configure:2862: test -s conftest.o  
configure:2865: $? = 0  
configure:2885: result: none needed  
configure:2957: checking for gcc  
configure:2973: found /usr/bin/gcc  
configure:2984: result: gcc  
configure:3014: checking for Objective C compiler version  
configure:3017: gcc --version \</dev/null \>&5  
gcc (SUSE Linux) 4.3.4 [gcc-4\_3-branch revision 152973]  
Copyright (C) 2008 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.

configure:3020: $? = 0  
configure:3022: gcc -v \</dev/null \>&5  
Using built-in specs.  
Target: x86\_64-suse-linux  
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=[http://bugs.opensuse.org/](http://bugs.opensuse.org/) --with-pkgversion=‘SUSE Linux’ --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-\_\_cxa\_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86\_64-suse-linux  
Thread model: posix  
gcc version 4.3.4 [gcc-4\_3-branch revision 152973] (SUSE Linux)  
configure:3025: $? = 0  
configure:3027: gcc -V \</dev/null \>&5  
gcc: ‘-V’ option must have argument  
configure:3030: $? = 1  
configure:3033: checking whether we are using the GNU Objective C compiler  
configure:3062: gcc -c conftest.m \>&5  
configure:3068: $? = 0  
configure:3075: test -z “$ac\_objc\_werror\_flag” || test ! -s conftest.err  
configure:3078: $? = 0  
configure:3085: test -s conftest.o  
configure:3088: $? = 0  
configure:3102: result: yes  
configure:3108: checking whether gcc accepts -x objective-c  
configure:3134: gcc -c -x objective-c conftest.m \>&5  
configure:3140: $? = 0  
configure:3147: test -z “$ac\_objc\_werror\_flag” || test ! -s conftest.err  
configure:3150: $? = 0  
configure:3157: test -s conftest.o  
configure:3160: $? = 0  
configure:3172: result: yes  
configure:3286: checking for a BSD-compatible install  
configure:3342: result: /usr/bin/install -c  
configure:3353: checking whether ln -s works  
configure:3357: result: yes  
configure:3364: checking whether make sets $(MAKE)  
configure:3385: result: yes  
configure:3397: checking for re2c  
configure:3415: found /usr/bin/re2c  
configure:3428: result: /usr/bin/re2c  
configure:3444: checking for doxygen  
configure:3475: result: no  
configure:3489: checking for dot  
configure:3520: result: no  
configure:3638: checking how to run the C preprocessor  
configure:3678: gcc -E conftest.c  
configure:3684: $? = 0  
configure:3722: gcc -E conftest.c  
conftest.c:8:28: error: ac\_nonexistent.h: No such file or directory  
configure:3728: $? = 1  
configure: failed program was:  
| /\* confdefs.h. _/  
| #define PACKAGE\_NAME “auth-ldap”  
| #define PACKAGE\_TARNAME “auth-ldap”  
| #define PACKAGE\_VERSION “2.0”  
| #define PACKAGE\_STRING “auth-ldap 2.0”  
| #define PACKAGE\_BUGREPORT “[landonf@opendarwin.org](mailto:landonf@opendarwin.org)”  
| /_ end confdefs.h. _/  
| #include \<ac\_nonexistent.h\>  
configure:3768: result: gcc -E  
configure:3797: gcc -E conftest.c  
configure:3803: $? = 0  
configure:3841: gcc -E conftest.c  
conftest.c:8:28: error: ac\_nonexistent.h: No such file or directory  
configure:3847: $? = 1  
configure: failed program was:  
| /_ confdefs.h. _/  
| #define PACKAGE\_NAME “auth-ldap”  
| #define PACKAGE\_TARNAME “auth-ldap”  
| #define PACKAGE\_VERSION “2.0”  
| #define PACKAGE\_STRING “auth-ldap 2.0”  
| #define PACKAGE\_BUGREPORT “[landonf@opendarwin.org](mailto:landonf@opendarwin.org)”  
| /_ end confdefs.h. _/  
| #include \<ac\_nonexistent.h\>  
configure:3892: checking for grep that handles long lines and -e  
configure:3966: result: /usr/bin/grep  
configure:3971: checking for egrep  
configure:4049: result: /usr/bin/grep -E  
configure:4054: checking for ANSI C header files  
configure:4084: gcc -c -g -O2 conftest.c \>&5  
configure:4090: $? = 0  
configure:4097: test -z “$ac\_c\_werror\_flag” || test ! -s conftest.err  
configure:4100: $? = 0  
configure:4107: test -s conftest.o  
configure:4110: $? = 0  
configure:4206: gcc -o conftest -g -O2 conftest.c \>&5  
configure:4209: $? = 0  
configure:4215: ./conftest  
configure:4218: $? = 0  
configure:4235: result: yes  
configure:4532: checking for the pthreads library -lpthreads  
configure:4575: gcc -o conftest -g -O2 conftest.c -lpthreads \>&5  
/usr/lib64/gcc/x86\_64-suse-linux/4.3/../../../../x86\_64-suse-linux/bin/ld: cannot find -lpthreads  
collect2: ld returned 1 exit status  
configure:4581: $? = 1  
configure: failed program was:  
| /_ confdefs.h. _/  
| #define PACKAGE\_NAME “auth-ldap”  
| #define PACKAGE\_TARNAME “auth-ldap”  
| #define PACKAGE\_VERSION “2.0”  
| #define PACKAGE\_STRING “auth-ldap 2.0”  
| #define PACKAGE\_BUGREPORT “[landonf@opendarwin.org](mailto:landonf@opendarwin.org)”  
| #define STDC\_HEADERS 1  
| /_ end confdefs.h. _/  
| #include \<pthread.h\>  
| int  
| main ()  
| {  
| pthread\_t th; pthread\_join(th, 0);  
| pthread\_attr\_init(0); pthread\_cleanup\_push(0, 0);  
| pthread\_create(0,0,0,0); pthread\_cleanup\_pop(0);  
| ;  
| return 0;  
| }  
configure:4617: result: no  
configure:4477: checking whether pthreads work without any flags  
configure:4575: gcc -o conftest -g -O2 conftest.c \>&5  
/tmp/ccUJTbXQ.o: In function `main': /tmp/auth-ldap-2.0.3/conftest.c:13: undefined reference to `pthread\_join’  
/tmp/auth-ldap-2.0.3/conftest.c:14: undefined reference to `__pthread_register_cancel' /tmp/auth-ldap-2.0.3/conftest.c:15: undefined reference to `pthread\_create’  
/tmp/auth-ldap-2.0.3/conftest.c:15: undefined reference to `__pthread_unregister_cancel' collect2: ld returned 1 exit status configure:4581: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "auth-ldap" | #define PACKAGE_TARNAME "auth-ldap" | #define PACKAGE_VERSION "2.0" | #define PACKAGE_STRING "auth-ldap 2.0" | #define PACKAGE_BUGREPORT "landonf@opendarwin.org" | #define STDC_HEADERS 1 | /* end confdefs.h. */ | #include <pthread.h> | int | main () | { | pthread_t th; pthread_join(th, 0); | pthread_attr_init(0); pthread_cleanup_push(0, 0); | pthread_create(0,0,0,0); pthread_cleanup_pop(0); | ; | return 0; | } configure:4617: result: no configure:4482: checking whether pthreads work with -Kthread configure:4575: gcc -o conftest -g -O2 -Kthread conftest.c >&5 gcc: unrecognized option '-Kthread' /tmp/ccoyW6k6.o: In function `main’:  
/tmp/auth-ldap-2.0.3/conftest.c:13: undefined reference to `pthread_join' /tmp/auth-ldap-2.0.3/conftest.c:14: undefined reference to `\_\_pthread\_register\_cancel’  
/tmp/auth-ldap-2.0.3/conftest.c:15: undefined reference to `pthread_create' /tmp/auth-ldap-2.0.3/conftest.c:15: undefined reference to `\_\_pthread\_unregister\_cancel’  
collect2: ld returned 1 exit status  
configure:4581: $? = 1  
configure: failed program was:  
| /_ confdefs.h. _/  
| #define PACKAGE\_NAME “auth-ldap”  
| #define PACKAGE\_TARNAME “auth-ldap”  
| #define PACKAGE\_VERSION “2.0”  
| #define PACKAGE\_STRING “auth-ldap 2.0”  
| #define PACKAGE\_BUGREPORT “[landonf@opendarwin.org](mailto:landonf@opendarwin.org)”  
| #define STDC\_HEADERS 1  
| /_ end confdefs.h. _/  
| #include \<pthread.h\>  
| int  
| main ()  
| {  
| pthread\_t th; pthread\_join(th, 0);  
| pthread\_attr\_init(0); pthread\_cleanup\_push(0, 0);  
| pthread\_create(0,0,0,0); pthread\_cleanup\_pop(0);  
| ;  
| return 0;  
| }  
configure:4617: result: no  
configure:4482: checking whether pthreads work with -kthread  
configure:4575: gcc -o conftest -g -O2 -kthread conftest.c \>&5  
gcc: unrecognized option ‘-kthread’  
/tmp/cc6Bj8gl.o: In function `main': /tmp/auth-ldap-2.0.3/conftest.c:13: undefined reference to `pthread\_join’  
/tmp/auth-ldap-2.0.3/conftest.c:14: undefined reference to `__pthread_register_cancel' /tmp/auth-ldap-2.0.3/conftest.c:15: undefined reference to `pthread\_create’  
/tmp/auth-ldap-2.0.3/conftest.c:15: undefined reference to `__pthread_unregister_cancel' collect2: ld returned 1 exit status configure:4581: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "auth-ldap" | #define PACKAGE_TARNAME "auth-ldap" | #define PACKAGE_VERSION "2.0" | #define PACKAGE_STRING "auth-ldap 2.0" | #define PACKAGE_BUGREPORT "landonf@opendarwin.org" | #define STDC_HEADERS 1 | /* end confdefs.h. */ | #include <pthread.h> | int | main () | { | pthread_t th; pthread_join(th, 0); | pthread_attr_init(0); pthread_cleanup_push(0, 0); | pthread_create(0,0,0,0); pthread_cleanup_pop(0); | ; | return 0; | } configure:4617: result: no configure:4532: checking for the pthreads library -llthread configure:4575: gcc -o conftest -g -O2 conftest.c -llthread >&5 /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -llthread collect2: ld returned 1 exit status configure:4581: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "auth-ldap" | #define PACKAGE_TARNAME "auth-ldap" | #define PACKAGE_VERSION "2.0" | #define PACKAGE_STRING "auth-ldap 2.0" | #define PACKAGE_BUGREPORT "landonf@opendarwin.org" | #define STDC_HEADERS 1 | /* end confdefs.h. */ | #include <pthread.h> | int | main () | { | pthread_t th; pthread_join(th, 0); | pthread_attr_init(0); pthread_cleanup_push(0, 0); | pthread_create(0,0,0,0); pthread_cleanup_pop(0); | ; | return 0; | } configure:4617: result: no configure:4482: checking whether pthreads work with -pthread configure:4575: gcc -o conftest -g -O2 -pthread conftest.c >&5 configure:4581: $? = 0 configure:4588: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:4591: $? = 0 configure:4598: test -s conftest configure:4601: $? = 0 configure:4617: result: yes configure:4636: checking for joinable pthread attribute configure:4661: gcc -o conftest -g -O2 -pthread conftest.c >&5 configure:4667: $? = 0 configure:4674: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:4677: $? = 0 configure:4684: test -s conftest configure:4687: $? = 0 configure:4700: result: PTHREAD_CREATE_JOINABLE configure:4710: checking if more special flags are required for pthreads configure:4717: result: no configure:4871: checking for BSD pf(4) support configure:4908: gcc -o conftest -g -O2 -export-dynamic conftest.c >&5 conftest.c:16:29: error: net/pfvar.h: No such file or directory conftest.c: In function 'main': conftest.c:22: error: 'DIOCRCLRTABLES' undeclared (first use in this function) conftest.c:22: error: (Each undeclared identifier is reported only once conftest.c:22: error: for each function it appears in.) configure:4914: $? = 1 configure: failed program was: | | /* confdefs.h. */ | #define PACKAGE_NAME "auth-ldap" | #define PACKAGE_TARNAME "auth-ldap" | #define PACKAGE_VERSION "2.0" | #define PACKAGE_STRING "auth-ldap 2.0" | #define PACKAGE_BUGREPORT "landonf@opendarwin.org" | #define STDC_HEADERS 1 | #define HAVE_PTHREAD 1 | /* end confdefs.h. */ | | #include <sys/types.h> | #include <sys/ioctl.h> | #include <sys/socket.h> | #include <net/if.h> | #include <net/pfvar.h> | | int | main () | { | | unsigned long req = DIOCRCLRTABLES; | | ; | return 0; | } | configure:4956: result: no configure:4960: WARNING: pf(4) table support will not be included. configure:5054: checking for strlcpy configure:5110: gcc -o conftest -g -O2 -export-dynamic conftest.c >&5 /tmp/cc31wTmy.o: In function `main’:  
/tmp/auth-ldap-2.0.3/conftest.c:44: undefined reference to `strlcpy' collect2: ld returned 1 exit status configure:5116: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "auth-ldap" | #define PACKAGE_TARNAME "auth-ldap" | #define PACKAGE_VERSION "2.0" | #define PACKAGE_STRING "auth-ldap 2.0" | #define PACKAGE_BUGREPORT "landonf@opendarwin.org" | #define STDC_HEADERS 1 | #define HAVE_PTHREAD 1 | /* end confdefs.h. */ | /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy. | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | #define strlcpy innocuous_strlcpy | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char strlcpy (); below. | Prefer <limits.h> to <assert.h> if__STDC __is defined, since | <limits.h> exists even on freestanding compilers. */ | | #ifdef__ STDC __| # include <limits.h> | #else | # include <assert.h> | #endif | | #undef strlcpy | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef__ cplusplus | extern "C" | #endif | char strlcpy (); | /* 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_strlcpy || defined __stub___ strlcpy | choke me | #endif | | int | main () | { | return strlcpy (); | ; | return 0; | } configure:5150: result: no configure:5262: checking for openldap configure:5296: gcc -o conftest -g -O2 -export-dynamic conftest.c -lldap -llber >&5 configure:5302: $? = 0 configure:5309: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:5312: $? = 0 configure:5319: test -s conftest configure:5322: $? = 0 configure:5344: result: yes configure:5378: checking for check unit test library configure:5420: gcc -o conftest -g -O2 -export-dynamic conftest.c -lcheck >&5 configure:5426: $? = 0 configure:5433: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:5436: $? = 0 configure:5443: test -s conftest configure:5446: $? = 0 configure:5471: result: yes configure:5511: checking for openvpn-plugin.h configure:5544: gcc -o conftest -g -O2 -I/tmp/openvpn-2.2.2 -export-dynamic conftest.c >&5 configure:5550: $? = 0 configure:5557: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:5560: $? = 0 configure:5567: test -s conftest configure:5570: $? = 0 configure:5592: result: yes configure:5626: checking for sys/types.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5626: checking for sys/stat.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5626: checking for stdlib.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5626: checking for string.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5626: checking for memory.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5626: checking for strings.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5626: checking for inttypes.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5626: checking for stdint.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5626: checking for unistd.h configure:5647: gcc -c -g -O2 conftest.c >&5 configure:5653: $? = 0 configure:5660: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:5663: $? = 0 configure:5670: test -s conftest.o configure:5673: $? = 0 configure:5686: result: yes configure:5703: checking how to run the Objective C preprocessor configure:5739: gcc -E conftest.m configure:5745: $? = 0 configure:5783: gcc -E conftest.m conftest.m:19:28: error: ac_nonexistent.h: No such file or directory configure:5789: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "auth-ldap" | #define PACKAGE_TARNAME "auth-ldap" | #define PACKAGE_VERSION "2.0" | #define PACKAGE_STRING "auth-ldap 2.0" | #define PACKAGE_BUGREPORT "landonf@opendarwin.org" | #define STDC_HEADERS 1 | #define HAVE_PTHREAD 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:5829: result: gcc -E configure:5858: gcc -E conftest.m configure:5864: $? = 0 configure:5902: gcc -E conftest.m conftest.m:19:28: error: ac_nonexistent.h: No such file or directory configure:5908: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "auth-ldap" | #define PACKAGE_TARNAME "auth-ldap" | #define PACKAGE_VERSION "2.0" | #define PACKAGE_STRING "auth-ldap 2.0" | #define PACKAGE_BUGREPORT "landonf@opendarwin.org" | #define STDC_HEADERS 1 | #define HAVE_PTHREAD 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:5999: checking objc/objc.h usability configure:6016: gcc -c -x objective-c conftest.m >&5 configure:6022: $? = 0 configure:6029: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:6032: $? = 0 configure:6039: test -s conftest.o configure:6042: $? = 0 configure:6053: result: yes configure:6057: checking objc/objc.h presence configure:6072: gcc -E conftest.m configure:6078: $? = 0 configure:6099: result: yes configure:6132: checking for objc/objc.h configure:6140: result: yes configure:6170: checking if linking libobjc requires pthreads configure:6209: gcc -o conftest -x objective-c -export-dynamic conftest.m -lobjc >&5 configure:6215: $? = 0 configure:6222: test -z "$ac_objc_werror_flag" || test ! -s conftest.err configure:6225: $? = 0 configure:6232: test -s conftest configure:6235: $? = 0 configure:6339: result: no configure:6352: checking for Apple Objective-C runtime configure:6391: gcc -o conftest -x objective-c -export-dynamic conftest.m -lobjc >&5 conftest.m: In function 'main': conftest.m:29: warning: initialization makes pointer from integer without a cast conftest.m:30: warning: no '-alloc' method found conftest.m:30: warning: (Messages without a matching method signature conftest.m:30: warning: will be assumed to return 'id' and accept conftest.m:30: warning: '...' as arguments.) conftest.m:31: warning: no '-name' method found conftest.m:31: warning: passing argument 1 of 'puts' from incompatible pointer type /tmp/ccnKDHG8.o: In function `main’:  
conftest.m:(.text+0x14): undefined reference to `objc\_lookUpClass’  
collect2: ld returned 1 exit status  
configure:6397: $? = 1  
configure: failed program was:  
|  
| /_ confdefs.h. _/  
| #define PACKAGE\_NAME “auth-ldap”  
| #define PACKAGE\_TARNAME “auth-ldap”  
| #define PACKAGE\_VERSION “2.0”  
| #define PACKAGE\_STRING “auth-ldap 2.0”  
| #define PACKAGE\_BUGREPORT “[landonf@opendarwin.org](mailto:landonf@opendarwin.org)”  
| #define STDC\_HEADERS 1  
| #define HAVE\_PTHREAD 1  
| #define HAVE\_SYS\_TYPES\_H 1  
| #define HAVE\_SYS\_STAT\_H 1  
| #define HAVE\_STDLIB\_H 1  
| #define HAVE\_STRING\_H 1  
| #define HAVE\_MEMORY\_H 1  
| #define HAVE\_STRINGS\_H 1  
| #define HAVE\_INTTYPES\_H 1  
| #define HAVE\_STDINT\_H 1  
| #define HAVE\_UNISTD\_H 1  
| #define HAVE\_OBJC\_OBJC\_H 1  
| /_ end confdefs.h. \*/  
|  
| #include \<objc/objc.h\>  
| #include \<objc/objc-api.h\>  
|  
| int  
| main ()  
| {  
|  
| id class = objc\_lookUpClass(“Object”);  
| id obj = [class alloc];  
| puts([obj name]);  
|  
| ;  
| return 0;  
| }  
|  
configure:6437: result: no  
configure:6444: checking for GNU Objective C runtime  
configure:6483: gcc -o conftest -x objective-c -export-dynamic conftest.m -lobjc \>&5  
conftest.m: In function ‘main’:  
conftest.m:30: warning: no ‘-alloc’ method found  
conftest.m:30: warning: (Messages without a matching method signature  
conftest.m:30: warning: will be assumed to return ‘id’ and accept  
conftest.m:30: warning: ‘…’ as arguments.)  
conftest.m:31: warning: no ‘-name’ method found  
conftest.m:31: warning: passing argument 1 of ‘puts’ from incompatible pointer type  
configure:6489: $? = 0  
configure:6496: test -z “$ac\_objc\_werror\_flag” || test ! -s conftest.err  
configure:6499: $? = 0  
configure:6506: test -s conftest  
configure:6509: $? = 0  
configure:6529: result: yes  
configure:6549: Using GNU Objective-C runtime  
configure:6760: creating ./config.status

## ----------------------

## Running config.status.

## ----------------------

This file was extended by auth-ldap config.status 2.0, which was  
generated by GNU Autoconf 2.60. Invocation command line was

CONFIG\_FILES =  
CONFIG\_HEADERS =  
CONFIG\_LINKS =  
CONFIG\_COMMANDS =  
$ ./config.status

on ip-10-80-172-228

config.status:631: creating Makefile  
config.status:631: creating tools/Makefile  
config.status:631: creating src/Makefile  
config.status:631: creating tests/Makefile  
config.status:631: creating Mk/autoconf.mk  
config.status:631: creating Mk/compile.mk  
config.status:631: creating Mk/subdir.mk  
config.status:631: creating doxyfile  
config.status:631: creating config.h  
config.status:852: config.h is unchanged

## ----------------

## Cache variables.

## ----------------

ac\_cv\_build=x86\_64-unknown-linux-gnu  
ac\_cv\_c\_compiler\_gnu=yes  
ac\_cv\_env\_CC\_set=  
ac\_cv\_env\_CC\_value=  
ac\_cv\_env\_CFLAGS\_set=  
ac\_cv\_env\_CFLAGS\_value=  
ac\_cv\_env\_CPPFLAGS\_set=  
ac\_cv\_env\_CPPFLAGS\_value=  
ac\_cv\_env\_CPP\_set=  
ac\_cv\_env\_CPP\_value=  
ac\_cv\_env\_LDFLAGS\_set=  
ac\_cv\_env\_LDFLAGS\_value=  
ac\_cv\_env\_OBJCFLAGS\_set=  
ac\_cv\_env\_OBJCFLAGS\_value=  
ac\_cv\_env\_OBJCPP\_set=  
ac\_cv\_env\_OBJCPP\_value=  
ac\_cv\_env\_OBJC\_set=  
ac\_cv\_env\_OBJC\_value=  
ac\_cv\_env\_build\_alias\_set=  
ac\_cv\_env\_build\_alias\_value=  
ac\_cv\_env\_host\_alias\_set=  
ac\_cv\_env\_host\_alias\_value=  
ac\_cv\_env\_target\_alias\_set=  
ac\_cv\_env\_target\_alias\_value=  
ac\_cv\_func\_strlcpy=no  
ac\_cv\_header\_inttypes\_h=yes  
ac\_cv\_header\_memory\_h=yes  
ac\_cv\_header\_objc\_objc\_h=yes  
ac\_cv\_header\_stdc=yes  
ac\_cv\_header\_stdint\_h=yes  
ac\_cv\_header\_stdlib\_h=yes  
ac\_cv\_header\_string\_h=yes  
ac\_cv\_header\_strings\_h=yes  
ac\_cv\_header\_sys\_stat\_h=yes  
ac\_cv\_header\_sys\_types\_h=yes  
ac\_cv\_header\_unistd\_h=yes  
ac\_cv\_host=x86\_64-unknown-linux-gnu  
ac\_cv\_objc\_compiler\_gnu=yes  
ac\_cv\_objext=o  
ac\_cv\_path\_DOT=no  
ac\_cv\_path\_DOXYGEN=no  
ac\_cv\_path\_EGREP=‘/usr/bin/grep -E’  
ac\_cv\_path\_GREP=/usr/bin/grep  
ac\_cv\_path\_RE2C=/usr/bin/re2c  
ac\_cv\_path\_install=‘/usr/bin/install -c’  
ac\_cv\_prog\_CPP=‘gcc -E’  
ac\_cv\_prog\_OBJCPP=‘gcc -E’  
ac\_cv\_prog\_ac\_ct\_CC=gcc  
ac\_cv\_prog\_ac\_ct\_OBJC=gcc  
ac\_cv\_prog\_cc\_c89=  
ac\_cv\_prog\_cc\_g=yes  
ac\_cv\_prog\_make\_make\_set=yes  
ac\_cv\_prog\_objc\_x=yes  
ac\_cv\_target=x86\_64-unknown-linux-gnu  
od\_cv\_libcheck=yes  
od\_cv\_objc\_req\_pthread=no  
od\_cv\_objc\_runtime\_apple=no  
od\_cv\_objc\_runtime\_gnu=yes  
od\_cv\_openldap=yes  
od\_cv\_openvpn=yes  
tr\_cv\_pf\_ioctl=no

## -----------------

## Output variables.

## -----------------

CC=‘gcc’  
CFLAGS=‘-g -O2’  
CHECK\_CFLAGS=‘’  
CHECK\_DIRS=‘tests’  
CHECK\_LIBS=‘-lcheck’  
CLEAN\_PLUGIN=‘rm -f ${PLUGIN\_FILE}’  
CPP=‘gcc -E’  
CPPFLAGS=‘’  
DEFS=‘-DHAVE\_CONFIG\_H’  
DOT=‘no’  
DOTDIR=‘’  
DOXYGEN=‘false’  
ECHO\_C=‘’  
ECHO\_N=‘-n’  
ECHO\_T=‘’  
EGREP=‘/usr/bin/grep -E’  
EXEEXT=‘’  
GREP=‘/usr/bin/grep’  
INSTALL\_DATA=‘${INSTALL} -m 644’  
INSTALL\_PLUGIN=‘$(INSTALL\_LIB) $(PLUGIN\_FILE) $(PLUGIN\_INSTALL\_DIR)/$(PLUGIN\_FILE)’  
INSTALL\_PROGRAM=‘${INSTALL}’  
INSTALL\_SCRIPT=‘${INSTALL}’  
LDAP\_CFLAGS=‘’  
LDAP\_LIBS=‘-lldap -llber’  
LDFLAGS=‘-export-dynamic’  
LIBOBJS=‘’  
LIBS=‘’  
LN\_S=‘ln -s’  
LTLIBOBJS=‘’  
MAKE\_PLUGIN=‘${PLUGIN\_LD} -o $@ ${PLUGIN\_LD\_FLAGS} ${PLUGIN\_OBJS} ${LIBS}’  
OBJC=‘gcc’  
OBJCFLAGS=’ -x objective-c’  
OBJCPP=‘gcc -E’  
OBJC\_LIBS=‘-lobjc’  
OBJC\_PTHREAD\_CFLAGS=‘-pthread’  
OBJC\_PTHREAD\_LIBS=‘’  
OBJC\_RUNTIME=‘GNU\_RUNTIME’  
OBJC\_RUNTIME\_FLAGS=‘-fgnu-runtime’  
OBJEXT=‘o’  
OPENVPN\_CFLAGS=‘-I/tmp/openvpn-2.2.2’  
PACKAGE\_BUGREPORT=‘landonf@opendarwin.org’  
PACKAGE\_NAME=‘auth-ldap’  
PACKAGE\_STRING=‘auth-ldap 2.0’  
PACKAGE\_TARNAME=‘auth-ldap’  
PACKAGE\_VERSION=‘2.0’  
PATH\_SEPARATOR=‘:’  
PLUGIN\_CFLAGS=‘-fPIC’  
PLUGIN\_FILE=‘${PLUGIN\_NAME}${PLUGIN\_SUFFIX}’  
PLUGIN\_LD=‘gcc -shared’  
PLUGIN\_LD\_FLAGS=‘’  
PLUGIN\_SUFFIX=‘.so’  
PTHREAD\_CFLAGS=‘-pthread’  
PTHREAD\_LIBS=‘’  
RE2C=‘/usr/bin/re2c’  
SET\_MAKE=‘’  
SHELL=‘/bin/sh’  
ac\_ct\_CC=‘gcc’  
ac\_ct\_OBJC=‘gcc’  
acx\_pthread\_config=‘’  
bindir=‘${exec\_prefix}/bin’  
build=‘x86\_64-unknown-linux-gnu’  
build\_alias=‘’  
build\_cpu=‘x86\_64’  
build\_os=‘linux-gnu’  
build\_vendor=‘unknown’  
datadir=‘${datarootdir}’  
datarootdir=‘${prefix}/share’  
docdir=‘${datarootdir}/doc/${PACKAGE\_TARNAME}’  
dvidir=‘${docdir}’  
exec\_prefix=‘${prefix}’  
host=‘x86\_64-unknown-linux-gnu’  
host\_alias=‘’  
host\_cpu=‘x86\_64’  
host\_os=‘linux-gnu’  
host\_vendor=‘unknown’  
htmldir=‘${docdir}’  
includedir=‘${prefix}/include’  
infodir=‘${datarootdir}/info’  
libdir=‘${exec\_prefix}/lib’  
libexecdir=‘${exec\_prefix}/libexec’  
localedir=‘${datarootdir}/locale’  
localstatedir=‘${prefix}/var’  
mandir=‘${datarootdir}/man’  
oldincludedir=‘/usr/include’  
pdfdir=‘${docdir}’  
prefix=‘/usr/local’  
program\_transform\_name=‘s,x,x,’  
psdir=‘${docdir}’  
sbindir=‘${exec\_prefix}/sbin’  
sharedstatedir=‘${prefix}/com’  
sysconfdir=‘${prefix}/etc’  
target=‘x86\_64-unknown-linux-gnu’  
target\_alias=‘’  
target\_cpu=‘x86\_64’  
target\_os=‘linux-gnu’  
target\_vendor=‘unknown’

## -----------

## confdefs.h.

## -----------

#define PACKAGE\_NAME “auth-ldap”  
#define PACKAGE\_TARNAME “auth-ldap”  
#define PACKAGE\_VERSION “2.0”  
#define PACKAGE\_STRING “auth-ldap 2.0”  
#define PACKAGE\_BUGREPORT “[landonf@opendarwin.org](mailto:landonf@opendarwin.org)”  
#define STDC\_HEADERS 1  
#define HAVE\_PTHREAD 1  
#define HAVE\_SYS\_TYPES\_H 1  
#define HAVE\_SYS\_STAT\_H 1  
#define HAVE\_STDLIB\_H 1  
#define HAVE\_STRING\_H 1  
#define HAVE\_MEMORY\_H 1  
#define HAVE\_STRINGS\_H 1  
#define HAVE\_INTTYPES\_H 1  
#define HAVE\_STDINT\_H 1  
#define HAVE\_UNISTD\_H 1  
#define HAVE\_OBJC\_OBJC\_H 1  
#define GNU\_RUNTIME 1

configure: exit 0

---

<div class="post-metadata">

**Author:** ![ecanmaster](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@ecanmaster](https://forums.suse.com/u/ecanmaster)\
**Post date:** [October 22, 2014, 10:19pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/6 "2014-10-22T22:19:18Z")

</div>

sorry, it’s:  
Suse enterprise Server 11 SP2

---

<div class="post-metadata">

**Author:** ![ecanmaster](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@ecanmaster](https://forums.suse.com/u/ecanmaster)\
**Post date:** [October 23, 2014, 12:10pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/7 "2014-10-23T12:10:06Z")

</div>

Hello Malcolm,

I am not sure about those packages, because they look the same.  
As far as I have looked on internet, there is just one package:  
auth-ldap-2.0.3.tar  
After doing some digging, the problem is that the lpthreads are missing:

# cat config.log | grep -B 5 -A 5 “cannot find”

configure:4215: ./conftest  
configure:4218: $? = 0  
configure:4235: result: yes  
configure:4532: checking for the pthreads library -lpthreads  
configure:4575: gcc -o conftest -g -O2 conftest.c -lpthreads \>&5  
/usr/lib64/gcc/x86\_64-suse-linux/4.3/../../../../x86\_64-suse-linux/bin/ld: cannot find -lpthreads  
collect2: ld returned 1 exit status  
configure:4581: $? = 1  
configure: failed program was:  
| /\* confdefs.h. \*/  
| #define PACKAGE\_NAME “auth-ldap”

This looks like a bug with GCC  
Surely there is a way I can point to the correct location of lpthreads ?  
thx

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 23, 2014, 1:07pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/8 "2014-10-23T13:07:17Z")

</div>

Hi ecanmaster,

please enclose such output in “CODE” tags - either manually ( “[C O D E] … [/ C O D E]”, of course without the blanks 😉 ) or when using the “full” editor, by selecting the text and then pressing the “#” editor button. That will greatly enhance the viewability :).

I went though some of the output, anyhow - it’s fully ok it cannot compile with “-lpthreads”. There is no such library, and once configure tries to compile with “-lpthread”, everything works fine.

So pthreads aren’t the source of your problem.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 23, 2014, 1:12pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/9 "2014-10-23T13:12:04Z")

</div>

Hi ecanmaster,

> This looks like a bug with GCC

wrong tree,see my other reply - libpthreads isn’t to root cause, it’s simply not available, but libpthread is (and is detected properly by the configure run).

> I am not sure about those packages

Malcolm advice is good, give that package a try, you can at least expect a proper spec file defining the prereqs and may assume that someone has already tried building the package via rpmbuild. If not available pre-built for your platform and the rpmbuild fails, that is worth further investigation to see what is missing.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![ecanmaster](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@ecanmaster](https://forums.suse.com/u/ecanmaster)\
**Post date:** [October 23, 2014, 1:43pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/10 "2014-10-23T13:43:13Z")

</div>

Hello Jens,

Thank you for your review.  
What you are saying is that it runs without problems?  
According to the README file it should create a file: openvpn-auth-ldap.so (which it doesn’t):

BUILD

To build, you will need to configure the sources appropriately. Example:  
./configure --prefix=/usr/local --with-openldap=/usr/local --with-openvpn=/usr/ports/security/openvpn/work/openvpn-2.0.2

The module will be build in src/openvpn-auth-ldap.so and installed as  
${prefix}/lib/openvpn-auth-ldap.so.

Am I missing something?

Thx.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 23, 2014, 1:53pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/11 "2014-10-23T13:53:42Z")

</div>

Hi ecanmaster,

> What you are saying is that it runs without problems?

no, I’m saying you’re barking up the wrong tree. Both issues that you reported are non-issues (the one test is supposed to fail and the pthreads check works fine - configure detects that not libpthreads, but libpthread is to be used).

So if the build run doesn’t generate the proper file, something else must be wrong.

> Am I missing something?

You are also building the software, not only configuring the build, are you? The “configure” run is only supposed to sort out the differences between the various platforms. You’ll have to run the compile as well (typically by calling “make install”, if you want to go the full way).

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![ecanmaster](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@ecanmaster](https://forums.suse.com/u/ecanmaster)\
**Post date:** [October 23, 2014, 3:18pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/12 "2014-10-23T15:18:00Z")

</div>

What you are saying makes more sense  
This is what the readme file says:

BUILD

To build, you will need to configure the sources appropriately. Example:  
./configure --prefix=/usr/local --with-openldap=/usr/local --with-openvpn=/usr/ports/security/openvpn/work/openvpn-2.0.2

The module will be build in src/openvpn-auth-ldap.so and installed as  
${prefix}/lib/openvpn-auth-ldap.so.

My apologies for any stupid questions, but I don’t have much experience with building packages.  
The readme file says that I have to configure and then build?  
Its not clear, so I assume I can run: make install:

# make install

===\> making install in tools  
make[1]: Entering directory `/tmp/auth-ldap-2.0.3/tools' make[1]: Leaving directory `/tmp/auth-ldap-2.0.3/tools’  
===\> making install in src  
make[1]: Entering directory `/tmp/auth-ldap-2.0.3/src' ../tools/lemon -m -q TRConfigParser.lemon make[1]: [B]../tools/lemon: Command not found[/B] make[1]: *** [TRConfigParser.m] Error 127 make[1]: Leaving directory `/tmp/auth-ldap-2.0.3/src’  
make: \*\*\* [install] Error 1

The command lemon does exist and also the TRConfigParser.lemon  
/tmp/auth-ldap-2.0.3/src # la TRConfigParser\*  
-rw-r–r-- 1 501 wheel 2635 Jul 4 2006 TRConfigParser.lemon

:/tmp/auth-ldap-2.0.3/tools # la  
total 276  
drwxr-xr-x 2 501 wheel 4096 Oct 23 09:47 .  
drwxr-xr-x 7 501 wheel 4096 Oct 23 09:47 ..  
-rw-r–r-- 1 root root 687 Oct 23 09:47 Makefile  
-rwxr-xr-x 1 501 wheel 740 Apr 30 2006 Makefile.in  
-rw-r–r-- 1 501 wheel 600 May 1 2006 README  
-rw-r–r-- 1 501 wheel 134276 May 1 2006 lemon.c  
-rw-r–r-- 1 501 wheel 23624 Apr 28 2006 lempar.c.in  
-rw-r–r-- 1 501 wheel 90617 Apr 30 2006 makeheaders.c

how would you build this?

---

<div class="post-metadata">

**Author:** ![ecanmaster](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@ecanmaster](https://forums.suse.com/u/ecanmaster)\
**Post date:** [October 23, 2014, 3:39pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/13 "2014-10-23T15:39:46Z")

</div>

Hello Jens,

Thank you very much for your help !!  
I looked for the rpm file and it installed the openvpn-auth-ldap.so file.  
If you know a good wiki about building, configuring, installing packages on unix/linix, please let me know  
I love to learn more about Linux.

Thx…

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 23, 2014, 3:42pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/14 "2014-10-23T15:42:47Z")

</div>

Hi ecanmaster,

[QUOTE=ecanmaster;24338]What you are saying makes more sense  
This is what the readme file says:

BUILD

To build, you will need to configure the sources appropriately. Example:  
./configure --prefix=/usr/local --with-openldap=/usr/local --with-openvpn=/usr/ports/security/openvpn/work/openvpn-2.0.2

The module will be build in src/openvpn-auth-ldap.so and installed as  
${prefix}/lib/openvpn-auth-ldap.so.[/QUOTE]

usually such READMEs also specify the actual build command and possible targets, but quoting from your further output, “make install” is among them.

[QUOTE=ecanmaster;24338]  
[…]  
make[1]: …/tools/lemon: Command not found  
[…]  
how would you build this?[/QUOTE]

I would fetch the source RPM from [software.opensuse.org](http://software.opensuse.org), install it (which will place source and spec files in /usr/src/packages/\*) and then run “rpmbuild -ba /usr/src/packages/SPECS/auth-ldap.spec” (or whatever the name of the spec file is, installed via the source RPM). It will tell about missing dependencies that the spec file editor believed to need to be fulfilled (and you typically will have to provide, by searching for appropriate packages and installing them) or try to build the software (which is the step you’re currently fighting with) and if that succeeds, will create RPMs for you.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [October 23, 2014, 3:54pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/15 "2014-10-23T15:54:19Z")

</div>

Hi ecanmaster,

> If you know a good wiki about building, configuring, installing packages on unix/linix, please let me know

This so totally depends on the package style… if you have source RPMs, there are quite some pages out there dealing with how to use “rpmbuild”. Anything else (building from tarball etc) comes in many varieties.

Hey you other readers of this thread: If you have something to share, i.e. cool links, please voice up and contribute to this discussion 😉

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 23, 2014, 4:27pm UTC](https://forums.suse.com/t/integrating-openvpn-with-openldap/26242/16 "2014-10-23T16:27:23Z")

</div>

> [@](#):
>
> On Thu 23 Oct 2014 01:04:01 PM CDT, jmozdzen wrote:
> 
> Hi ecanmaster,  
> [color=blue]
> 
> > If you know a good wiki about building, configuring, installing[/color]  
> > packages on unix/linix, please let me know
> 
> This so totally depends on the package style… if you have source RPMs,  
> there are quite some pages out there dealing with how to use “rpmbuild”.  
> Anything else (building from tarball etc) comes in many varieties.
> 
> Hey you other readers of this thread: If you have something to share,  
> i.e. cool links, please voice up and contribute to this discussion 😉
> 
> Regards,  
> Jens

Hi  
The Open Build Service, best way to create, copy, contribute etc.

You can then use the osc command locally to build packages for a  
multitude of distributions, arches, releases… So not dependent on the  
web interface.

[https://build.opensuse.org/](https://build.opensuse.org/)  
[http://en.opensuse.org/Portal:Build\_service](http://en.opensuse.org/Portal:Build_service)  
[http://en.opensuse.org/images/d/df/Obs-cheat-sheet.pdf](http://en.opensuse.org/images/d/df/Obs-cheat-sheet.pdf)

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.1 Kernel 3.11.10-21-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!
