OpenConnect Build Error
Hi,
Im running CentOS 6.3 and was trying to build openconnect from source, as the repo's on my machine dont appear to have an rpm for it, anyhow the configure works fine: ./configure --with-vpnc-script=/etc/vpnc/vpnc-script --with-openssl=/usr/bin/openssl however when i try make, im getting this: Making all in www make[1]: Entering directory `/home/Viral/Downloads/openconnect-4.07/www' Making all in styles make[2]: Entering directory `/home/Viral/Downloads/openconnect-4.07/www/styles' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/Viral/Downloads/openconnect-4.07/www/styles' Making all in inc make[2]: Entering directory `/home/Viral/Downloads/openconnect-4.07/www/inc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/Viral/Downloads/openconnect-4.07/www/inc' Making all in images make[2]: Entering directory `/home/Viral/Downloads/openconnect-4.07/www/images' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/Viral/Downloads/openconnect-4.07/www/images' make[2]: Entering directory `/home/Viral/Downloads/openconnect-4.07/www' groff -t -K UTF-8 -mandoc -Txhtml ../openconnect.8 | sed -e '1,/<body>/d' -e '/<\/body>/,$d' > openconnect.8.inc groff: invalid option -- 'K' usage: groff [-abceghilpstvzCENRSUVXZ] [-Fdir] [-mname] [-Tdev] [-ffam] [-wname] [-Wname] [-Mdir] [-dcs] [-rcn] [-nnum] [-olist] [-Parg] [-Larg] [-Idir] [files...] groff -h gives more help /usr/bin/python "./html.py" -d . manual.xml > manual.html || (rm manual.html; exit 1) make[2]: Leaving directory `/home/Viral/Downloads/openconnect-4.07/www' make[1]: Leaving directory `/home/Viral/Downloads/openconnect-4.07/www' Making all in po make[1]: Entering directory `/home/Viral/Downloads/openconnect-4.07/po' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/Viral/Downloads/openconnect-4.07/po' make[1]: Entering directory `/home/Viral/Downloads/openconnect-4.07' CC libopenconnect_la-version.lo cc1: error: /usr/bin/openssl/include: Not a directory make[1]: *** [libopenconnect_la-version.lo] Error 1 make[1]: Leaving directory `/home/Viral/Downloads/openconnect-4.07' make: *** [all-recursive] Error 1 Can anyone shed some light on this...?? Thanks in advance |
Welcome to LQ.
Quote:
Code:
./configure --with-vpnc-script=/etc/vpnc/vpnc-script The option '--with-openssl=' is meant to be used if you have openssl in a non default location. . |
You can also build an openconnect-4.07-2.el6.<arch>.rpm
.. with : rpmbuild -bb openconnect.spec .. or : rpmbuild --rebuild openconnect-4.07-2.fc19.src.rpm from the Fedora 19 openconnect source SRC.RPM : http://dl.fedoraproject.org/pub/fedo...2.fc19.src.rpm . |
thanks for the reponses, building without invoking the path to openssl returns :
[root@localhost openconnect-4.07]# ./configure --with-script=/etc/vpnc/vpnc-script configure: WARNING: unrecognized options: --with-script checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes configure: Applying feature macros for GNU build checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 dependency style of gcc... gcc3 checking for fdevname_r... no checking for getline... yes checking for strcasestr... yes checking for asprintf... yes checking for supported compiler flags... -Wall -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Werror=pointer-to-int-cast -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wnested-externs -Wpointer-arith -Wwrite-strings checking for msgfmt... /usr/bin/msgfmt checking for functional NLS support... yes checking for OPENSSL... no checking for OpenSSL without pkg-config... no configure: error: Could not build against OpenSSL [root@localhost openconnect-4.07]# which openssl /usr/bin/openssl Thats why i used the --with-openssl feature.... Any ideas ? |
i managed to resolve it !, i was missing the openssl-devel package, I assume i needed the header files,
Thanks for all your help hopefully this helps someone... ! |
All times are GMT -5. The time now is 04:04 AM. |