LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-14-2004, 03:33 PM   #1
Terayon
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Problem compiling squid with openssl


Hello, I am having an issue that I just can't get past

I am trying to compile squid with ssl suppot using openssl.

The openssl executeable on my system is located at:

/usr/bin/openssl

The includes are located at

/usr/include/openssl

the 2 configure options I use are --includedir=/usr/include/openssl and
--with-openssl=/usr/bin/openssl

when I run make afterwards I get an error that the openssl headers could not be found.

I can unclkude the actual error text if neccessary. But I am wondering what path's Ishould put in my configure to get it to find openssl properley.
 
Old 04-14-2004, 04:02 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Since these are fairly standard locations, what happens
if you just
./configure --with-openssl
without any extra paths? If that doesn't work, try just giving
ssl's prefix (no include)
./configure --with-openssl=/usr


Cheers,
Tink
 
Old 04-14-2004, 04:20 PM   #3
Terayon
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I get the same error:

gcc -DHAVE_CONFIG_H -I, -I, -I../include -I../include -I../include -I/usr/include -g -02 -Wall -c `test -f rfc2617.c || echo './'`rfc2617.c
In file included from rfc2617.c:52:
../include/md5.h:18:2: #error Cannot find OpenSSL headers

Then it gives some other md5 related errors......


I notice this part of the statement changes based on my --with-openssl=
gcc -DHAVE................. -I/usr/include
if I put --with-openssl=/usr/include/openssl
The line above becomes:
-I/usr/include/openssl/include

if I put --with-openssl=/foo
The line becomes -I/fo/include

so it is alway adding include to the end of the path for some reason.....I think that's what the problem is anyways.....but I can't figure out how to fix it
 
Old 04-14-2004, 04:57 PM   #4
Terayon
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I fixed it, I should have tried this first.
In between each attempt, I was running make clean.
I decided just to deete the squid directory and extract it from the tarball again, ran configure with just --enable-ssl and it worked like a charm....I gues my source tree was foobar. Thanks for your help....
 
Old 05-12-2004, 12:20 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
hi there... i also have a question about compiling squid... i posted it a few days ago but i've had no luck getting a reply, and i was wondering if perhaps you guys could help me... i think you guys know a lot about this... basically, i'm just trying to find-out how to compile squid on slackware 9.1 using the compiler from slackware 8.1... here's the thread i started:

http://www.linuxquestions.org/questi...&postid=900793

any input you can give me would be greatly appreciated...

thanks so much...
 
  


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
FC2 compiling openssl/openssh TSJoshB Fedora 4 07-04-2005 02:25 PM
Compiling Squid wennie Linux - Software 2 12-11-2004 07:49 AM
Trouble compiling nmap with openssl glenik Linux - Software 2 06-19-2004 11:34 AM
Trouble compiling nmap with openssl glenik Linux - Software 0 06-19-2004 10:48 AM
openSSL problem raven Linux - Software 2 09-15-2002 11:24 AM

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

All times are GMT -5. The time now is 10:17 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