Hey,my OpenBSD: # uname -a OpenBSD openbsd.openbsd.com 4.3 GENERIC.MP#0 i386
I installed openvpn via pkg_add,and worked fine. But now I wanna auth username/password on it. I searched by Google and found two software: openvpn-auth-ldap : http://code.google.com/p/openvpn-auth-ldap/ openvpn_bsdauth : In ports /usr/ports/net/openvpn_bsdauth/ When I try to installed via source code, but it is some error: # ./configure --prefix=/usr/local --with-openldap=/usr/local --with-openvpn=/usr/ports/distfiles/openvpn-2.0.9 checking build system type... i386-unknown-openbsd4.3 checking host system type... i386-unknown-openbsd4.3 checking target system type... i386-unknown-openbsd4.3 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/local/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... yes checking for strlcpy... yes checking for openldap... yes checking for check unit test library... no configure: WARNING: Check library not found. Unit tests will not be built or run. 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... yes 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: WARNING: Mk/autoconf.mk.in seems to ignore the --datarootdir setting 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 # make ===> making all in tools ===> making all in src gcc -o testplugin testplugin.o -export-dynamic -L. -lauth-ldap-testing -lldap -llber -L/usr/local/lib -lobjc testplugin.o(.text+0xba): In function `main': /home/linyin/auth-ldap-2.0.3/src/testplugin.c:75: warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/libldap.so.9.1: warning: sprintf() is often misused, please use snprintf() testplugin.o(.text+0xc7):/home/linyin/auth-ldap-2.0.3/src/testplugin.c:76: warning: strcat() is almost always misused, please use strlcat() /usr/lib/libobjc.so.4.0: undefined reference to `pthread_cond_signal' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_attr_destroy' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_create' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_getspecific' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_attr_init' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_exit' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_key_delete' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_cond_broadcast' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_key_create' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_cond_init' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_mutex_unlock' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_self' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_mutex_destroy' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_mutex_lock' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_cond_wait' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_mutex_trylock' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_cond_destroy' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_mutex_init' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_attr_setdetachstate' /usr/lib/libobjc.so.4.0: undefined reference to `pthread_setspecific' collect2: ld returned 1 exit status *** Error code 1 Stop in /home/linyin/auth-ldap-2.0.3/src (line 61 of Makefile). *** Error code 1 Stop in /home/linyin/auth-ldap-2.0.3 (line 12 of Mk/subdir.mk). I Google openvpn_bsdauth also can not found any useful information about it. Who can give me some advise or others softwares can use on OpenBSD, Thank you. -- Regards Linyin SooChow China http://linyin.8800.org

