lexeress / openvpn-auth-ldap

Automatically exported from code.google.com/p/openvpn-auth-ldap
Other
0 stars 0 forks source link

conftest.c:8:28: error: ac_nonexistent.h: No such file or directory #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hi,

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

command:
# ./configure  --with-openvpn=/tmp/openvpn-2.2.2/

I see the foollowing on myscreen:
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... 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... 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: 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

WHen looking in the config.log I see this error:
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory

seems the command is not completing, because I miss this file:
openvpn-auth-ldap.so

how can I troubleshoot this?

Original issue reported on code.google.com by erdalca...@gmail.com on 22 Oct 2014 at 9:35

GoogleCodeExporter commented 9 years ago
Here is the config.log

Original comment by erdalca...@gmail.com on 22 Oct 2014 at 1:16

Attachments:

GoogleCodeExporter commented 9 years ago
Now when I run the ./configure command I dont see any errors, but still the 
openvpn-auth-ldap.so is not being created, seems the configure is still not 
running and finishing the job:

See above the latest config.log 

 # ./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

Original comment by erdalca...@gmail.com on 22 Oct 2014 at 1:18

GoogleCodeExporter commented 9 years ago
I checked the log files again and found this:

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

Original comment by erdalca...@gmail.com on 22 Oct 2014 at 3:41