PDA

View Full Version : Integrating OpenVPN with OpenLDAP



ecanmaster
22-Oct-2014, 16:21
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

malcolmlewis
22-Oct-2014, 16:55
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:
<snip>

Hi
Why not grab the src rpm from OBS and rebuild that?
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

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!

jmozdzen
22-Oct-2014, 17:14
Hi ecanmaster,

hi,

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

For completeness' sake - *which* SLES11? SP3? SP2?



# ./configure --prefix=/usr/local --with-openldap=/etc/openldap --with-openvpn=/tmp/openvpn-2.2.2

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


[...]
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:
This test is supposed to fail.


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 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

ecanmaster
22-Oct-2014, 20:11
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

ecanmaster
22-Oct-2014, 20:15
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/ --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/ --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"
| /* 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"
| /* 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"
| #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"
| #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"
| #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"
#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

ecanmaster
22-Oct-2014, 20:19
sorry, it's:
Suse enterprise Server 11 SP2

ecanmaster
23-Oct-2014, 10:10
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

jmozdzen
23-Oct-2014, 11:07
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

jmozdzen
23-Oct-2014, 11:12
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

ecanmaster
23-Oct-2014, 11:43
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.

jmozdzen
23-Oct-2014, 11:53
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

ecanmaster
23-Oct-2014, 13:18
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]: ../tools/lemon: Command not found
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?

ecanmaster
23-Oct-2014, 13:39
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..

jmozdzen
23-Oct-2014, 13:42
Hi ecanmaster,

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.

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



[...]
make[1]: ../tools/lemon: Command not found
[...]
how would you build this?

I would fetch the source RPM from 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

jmozdzen
23-Oct-2014, 13:54
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

malcolmlewis
23-Oct-2014, 14:27
On Thu 23 Oct 2014 01:04:01 PM CDT, jmozdzen wrote:


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




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/
http://en.opensuse.org/Portal:Build_service
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!