LinuxQuestions.org
Visit Jeremy's Blog.
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 03-24-2006, 03:16 PM   #1
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Rep: Reputation: 15
C compiler cannot create executables when compiling OpenVPN


hey all.

I have SuSE 9.3 with OpenSSL 0.9.8a installed in /usr/local/ssl/bin/openssl. I have installed a number of programs, including OpenSSL, OpenSSH, rssh, and I never had any programs with the compiler. Now I'm trying to install OpenVPN 2.0.5. When I do ./configure I get an error message indicating that the program can't find my ssl. So I tried compiling with the following directive:
Code:
 ./configure --with-ssl-headers=/usr/local/ssl/bin/openssl
But, when I do that I get an error message:

Code:
configure: error: C compiler cannot create executables
What makes it stranger is that when I compile it without the --with-ssl-headers directive, the configuration goes through the part where it checks for gcc and c compiler. This is the code when I do a simple ./compile

Code:
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
and this is the code when I compile with the ./configure --with-ssl-headers=/usr/local/ssl/bin/openssl directive
Code:
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Below is the portion of 'config.log' file pertaining to the error. I look through it but I didn't really find anything. I looked through the linuxquestions.org database but I didn't find anything similar to my problem. Could anyone help please? Thank you.



Code:
configure:2631: checking for C compiler version
configure:2634: gcc --version </dev/null >&5
gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
Copyright (C) 2003 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:2637: $? = 0
configure:2639: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.5/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/lo
cal --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,a
da --disable-checking --libdir=/usr/lib --enable-libgcj --with-slibdir=/lib --with-system-zlib
 --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
configure:2642: $? = 0
configure:2644: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2647: $? = 1
configure:2670: checking for C compiler default output file name
configure:2673: gcc   -I/usr/local/ssl/bin/openssl -I.  conftest.c  >&5
cc1: /usr/local/ssl/bin/openssl: Not a directory
configure:2676: $? = 1
configure: failed program was:
| /* confdefs.h.  */
 
Old 03-24-2006, 04:51 PM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
I am just guessing, but what do you have to point
Code:
 ./configure --with-ssl-headers=/usr/local/ssl/bin/openssl
? ssl execuables? or header?
 
Old 03-25-2006, 03:57 PM   #3
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Original Poster
Rep: Reputation: 15
that's the path to my executable. What is a header then and how do I find it? should I feel stupid ?
 
Old 03-25-2006, 06:32 PM   #4
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
Yes. Header file is somename.h and normally in usr/include or /usr/local/include; perhaps a subdirectory.

find your openssl headers and change ./config command line accordingly.
 
Old 03-27-2006, 08:02 AM   #5
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Original Poster
Rep: Reputation: 15
here's where I'm at:

this is what I get when I type plain ./configure

Code:
checking for lzo1x_1_15_compress in -llzo2... yes
configure: checking for OpenSSL Crypto Library and Header files...
checking openssl/evp.h usability... no
checking openssl/evp.h presence... no
checking for openssl/evp.h... no
configure: error: OpenSSL Crypto headers not found.
so I go looking for the 'evp.h' file. I find it in the '/usr/local/ssl/include/openssl/' directory. So I recompile with this directory, as in:

Code:
./configure --with-ssl-headers=/usr/local/ssl/include/openssl/
I get the same error message. So I recompile like this:

Code:
./configure --with-ssl-headers=/usr/local/ssl/include/openssl/evp.h
and that's when I get this error message:

Code:
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
What do I do now? I'm quite clueless at this point. Thank you.
 
Old 03-27-2006, 08:22 AM   #6
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Original Poster
Rep: Reputation: 15
It looks like the compiler can't find 'evp.h' file even though it's right in the directory where it's looking. What does it mean and how do I go about it?
 
Old 03-27-2006, 08:47 AM   #7
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Original Poster
Rep: Reputation: 15
for those that follow up on threads, here's the solution:

Code:
./configure --with-ssl-lib=/usr/local/ssl/lib/ --with-ssl-headers=/usr/local/ssl/include/
I had to put explicitly two compile directives. Otherwise it didn't want to work. Strange, I guess.
 
Old 08-26-2006, 09:58 AM   #8
rastyk
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Thanks! (OpenVPN problem)

Thanks Rob, this worked out for me, hadn't found the solution yet.
 
Old 09-15-2006, 10:37 PM   #9
Abunasar Khan
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
dude just

apt-get install build-essential

it will be ok
 
  


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
C compiler cannot create executables packets Linux - Security 3 05-03-2010 05:30 PM
C++ compiler cannot create executables IceStorm Linux - Newbie 6 06-14-2004 01:45 AM
C compiler cannot create executables shams Linux - Software 6 06-12-2004 01:55 PM
C compiler cannot create executables inanna Linux - Newbie 1 05-01-2004 01:42 AM
C compiler cannot create executables chrismiceli Linux - General 2 05-11-2003 03:21 PM

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

All times are GMT -5. The time now is 09:35 AM.

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