LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-10-2012, 02:12 PM   #1
vxrcorsa90
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
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
 
Old 09-11-2012, 06:54 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
./configure --with-vpnc-script=/etc/vpnc/vpnc-script --with-openssl=/usr/bin/openssl
This will do :
Code:
./configure --with-vpnc-script=/etc/vpnc/vpnc-script
There is no openssl/lib/ or openssl/include/ in /usr/bin/openssl
The option '--with-openssl=' is meant to be used if you have
openssl in a non default location.

.
 
Old 09-11-2012, 07:20 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

.
 
Old 09-11-2012, 07:32 AM   #4
vxrcorsa90
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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 ?
 
Old 09-11-2012, 07:40 AM   #5
vxrcorsa90
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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... !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openconnect asking for hostname R3V0LV3R Slackware 3 01-31-2012 07:39 PM
build error Youri Linux From Scratch 15 11-07-2011 06:27 AM
jhbuild: Error during phase build of gnome-shell: Error running make Kenny_Strawn Linux - Desktop 1 07-09-2010 06:01 PM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM
build error ravi.xolve Linux From Scratch 0 03-16-2007 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration