Bug 48978 - /usr/ports/ftp/curl tries to load openssl port
Summary: /usr/ports/ftp/curl tries to load openssl port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-06 14:40 UTC by Kirill Ponomarew
Modified: 2003-04-16 15:54 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (419 bytes, patch)
2003-03-06 14:40 UTC, Kirill Ponomarew
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Ponomarew 2003-03-06 14:40:17 UTC
/usr/ports/ftp/curl loads openssl port with default "make" in port 

su-2.05b# make
  Extracting for curl-7.10.3_2
  Checksum OK for curl-7.10.3.tar.bz2.
  Checksum OK for curl-lib-url.c-netrc.patch.
  Patching for curl-7.10.3_2
  Applying distribution patches for curl-7.10.3_2
  Applying FreeBSD patches for curl-7.10.3_2
  Configuring for curl-7.10.3_2
  curl-7.10.3_2 depends on shared library: crypto.3 - not found
  Verifying install for crypto.3 in /usr/ports/security/openssl
 openssl-0.9.7a.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
Attempting to fetch from http://www.openssl.org/source/.
Receiving openssl-0.9.7a.tar.gz (2776582 bytes): 45%^C

How-To-Repeat:        cd /usr/ports/ftp/curl && make install
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2003-03-06 16:57:56 UTC
Responsible Changed
From-To: freebsd-ports-bugs->roam

My port.
Comment 2 Peter Pentchev 2003-03-06 17:05:59 UTC
On Thu, Mar 06, 2003 at 02:41:13PM +0000, Kirill Ponomarew wrote:
[snip]
> >Description:
> /usr/ports/ftp/curl loads openssl port with default "make" in port 
> 
> su-2.05b# make

[snip]
>   curl-7.10.3_2 depends on shared library: crypto.3 - not found
>   Verifying install for crypto.3 in /usr/ports/security/openssl
>  openssl-0.9.7a.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
> Attempting to fetch from http://www.openssl.org/source/.
> Receiving openssl-0.9.7a.tar.gz (2776582 bytes): 45%^C


Do you have either WANT_OPENSSL_PORT or WANT_OPENSSL_BETA defined
in your environment or /etc/make.conf?  If so, then you have
explicitly requested use of the ports version of OpenSSL, instead
of that provided by the base system.

If you have neither of those variables defined at the time of
building the port, can you show me the output of the following commands;

   ls -l /usr/lib/libcrypto*
   fgrep OPENSSL_VERSION_NUMBER /usr/include/openssl/opensslv.h
   cd /usr/ports/ftp/curl

Hmmm..  What you are describing could happen if your system is a bit
old: the security/openssl/Makefile.ssl checks for OpenSSL 0.9.7, and
it was only merged into -stable a couple of weeks ago.  In that case,
you may need to set WANT_OPENSSL_BASE=yes while building the cURL port.
Can you try and tell me if this helps?

G'luck,
Peter

-- 
Peter Pentchev	roam@ringlet.net    roam@sbnd.net    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Do you think anybody has ever had *precisely this thought* before?
Comment 3 Kirill Ponomarew 2003-03-06 21:27:41 UTC
Hi,

On Thu, Mar 06, 2003 at 07:05:59PM +0200, Peter Pentchev wrote:
> Do you have either WANT_OPENSSL_PORT or WANT_OPENSSL_BETA defined
> in your environment or /etc/make.conf?  If so, then you have
> explicitly requested use of the ports version of OpenSSL, instead
> of that provided by the base system.
> 
> If you have neither of those variables defined at the time of
> building the port, can you show me the output of the following commands;
> 
>    ls -l /usr/lib/libcrypto*
>    fgrep OPENSSL_VERSION_NUMBER /usr/include/openssl/opensslv.h
>    cd /usr/ports/ftp/curl


voodoo$ ls -l /usr/lib/libcrypto*
-r--r--r--  1 root  wheel  1247540  5 Feb 10:09 /usr/lib/libcrypto.a
lrwxr-xr-x  1 root  wheel       14  5 Feb 10:09 /usr/lib/libcrypto.so -> libcrypto.so.2
-r--r--r--  1 root  wheel   761916  5 Feb 10:09 /usr/lib/libcrypto.so.2
-r--r--r--  1 root  wheel  1330026  5 Feb 10:09 /usr/lib/libcrypto_p.a

voodoo$ fgrep OPENSSL_VERSION_NUMBER /usr/include/openssl/opensslv.h
#define OPENSSL_VERSION_NUMBER  0x0090607fL

It's -stable from 5th February. And OpenSSL is there old as you
see.

> Hmmm..  What you are describing could happen if your system is a bit
> old: the security/openssl/Makefile.ssl checks for OpenSSL 0.9.7, and
> it was only merged into -stable a couple of weeks ago.  In that case,
> you may need to set WANT_OPENSSL_BASE=yes while building the cURL port.
> Can you try and tell me if this helps?


No it doesn't work either:

voodoo$ sudo make WANT_OPENSSL_BASE=yes
===>  Extracting for curl-7.10.3_2
>> Checksum OK for curl-7.10.3.tar.bz2.
>> Checksum OK for curl-lib-url.c-netrc.patch.

===>  Patching for curl-7.10.3_2
===>  Applying distribution patches for curl-7.10.3_2
===>  Applying FreeBSD patches for curl-7.10.3_2
===>  Configuring for curl-7.10.3_2
===>   curl-7.10.3_2 depends on shared library: crypto.3 - not
found
===>    Verifying install for crypto.3 in
/usr/ports/security/openssl
>> openssl-0.9.7a.tar.gz doesn't seem to exist in
>> /usr/ports/distfiles/.
>> Attempting to fetch from http://www.openssl.org/source/.

Receiving openssl-0.9.7a.tar.gz (2776582 bytes): 6%^C
179200 bytes transferred in 0.2 seconds (869.54 kBps)
fetch: transfer interrupted


Kirill
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2003-04-09 12:36:46 UTC
Responsible Changed
From-To: roam->dinoex

Problem is more that Mkekefile.ssl checks for /usr/lib/libcrypto.so.3 
while on -stable that is /usr/lib/libcrypto.so.2. 

Over to security/openssl maintainer - dinoex
Comment 5 Dirk Meyer freebsd_committer freebsd_triage 2003-04-09 15:46:47 UTC
Responsible Changed
From-To: dinoex->feedback



OpenSSL 0.9.7 in the base was updated at Feb 14 2003. 
the Version Number of the SHLIB is .3 
http://www.FreeBSD.org/cgi/cvsweb.cgi/src/secure/lib/libcrypto/Makefile.diff?r1=1.15.2.13&r2=1.15.2.14&f=h 
http://www.FreeBSD.org/cgi/cvsweb.cgi/src/secure/lib/libssl/Makefile.diff?r1=1.4.2.7&r2=1.4.2.8&f=h 

# ls -l /usr/lib/libcr* 
-r--r--r--  1 root  wheel    43016 Mar  7 09:33 /usr/lib/libcrypt.a 
lrwxr-xr-x  1 root  wheel       13 Mar  7 09:33 /usr/lib/libcrypt.so -> libcrypt.so.2 
-r--r--r--  1 root  wheel    37040 Mar  7 09:33 /usr/lib/libcrypt.so.2 
lrwxrwxrwx  1 root  wheel       15 Mar 11  2002 /usr/lib/libcrypt_p.a -> libdescrypt_p.a 
-r--r--r--  1 root  wheel  1911660 Mar  7 09:36 /usr/lib/libcrypto.a 
lrwxr-xr-x  1 root  wheel       14 Mar  7 09:36 /usr/lib/libcrypto.so -> libcrypto.so.3 
-r--r--r--  1 root  wheel   790036 Dec  6  2000 /usr/lib/libcrypto.so.1 
-r--r--r--  1 root  wheel   943836 Jan 21 09:02 /usr/lib/libcrypto.so.2 
-r--r--r--  1 root  wheel  1338964 Mar  7 09:36 /usr/lib/libcrypto.so.3 
-r--r--r--  1 root  wheel  1376598 Dec  6  2000 /usr/lib/libcrypto_p.a 

=================================================================== 
--- 
Revision 1.1.1.1.2.1 / (download) - annotate - [select for diffs], 
Fri Feb 14 22:37:40 2003 UTC (7 weeks, 4 days ago) by nectar  
Branch: RELENG_4  
CVS Tags: RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8  
Changes since 1.1.1.1: +8 -0 lines 
Diff to previous 1.1.1.1 (colored) next main 1.1.1.2 (colored)  

MFC OpenSSL 0.9.7 

--- 

Revision 1.4.2.8 / (download) - annotate - [select for diffs], 
Fri Feb 14 22:38:20 2003 UTC (7 weeks, 4 days ago) by nectar  
Branch: RELENG_4  
CVS Tags: RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8  
Changes since 1.4.2.7: +13 -12 lines 
Diff to previous 1.4.2.7 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)  

MFC OpenSSL 0.9.7 

--- 

nevertheless I suggest to change: 

Index: Makefile 
=================================================================== 
RCS file: /home/pcvs/ports/ftp/curl/Makefile,v 
retrieving revision 1.51 
diff -u -u -r1.51 Makefile 
--- Makefile	5 Mar 2003 10:43:08 -0000	1.51 
+++ Makefile	9 Apr 2003 14:45:29 -0000 
@@ -53,7 +53,7 @@ 
.include <bsd.port.pre.mk> 

.if !defined(WITHOUT_SSL) 
-.include "${PORTSDIR}/security/openssl/Makefile.ssl" 
+.include "${PORTSDIR}/security/openssl/bsd.openssl.mk" 
CONFIGURE_ARGS=	--with-ssl=${OPENSSLBASE} 
.else 
CONFIGURE_ARGS=	--without-ssl
Comment 6 Dirk Meyer freebsd_committer freebsd_triage 2003-04-09 15:54:07 UTC
Responsible Changed
From-To: feedback->roam


then menioned flags are not: 
WANT_OPENSSL_PORT or WANT_OPENSSL_BETA 

instead they are: 
USE_OPENSSL_PORT, USE_OPENSSL_BASE or USE_OPENSSL_BETA
Comment 7 Dirk Meyer freebsd_committer freebsd_triage 2003-04-16 15:53:05 UTC
State Changed
From-To: open->closed

A fix has been committed.