SUSECON
Results 1 to 10 of 16

Thread: Integrating OpenVPN with OpenLDAP

Threaded View

  1. #1

    Integrating OpenVPN with OpenLDAP

    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"
    | /* 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
    Last edited by ecanmaster; 22-Oct-2014 at 16:22.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •