Bug 132097 - security/qca-ossl configure not finding OpenSSL when WITH_OPENSSL_PORT defined
Summary: security/qca-ossl configure not finding OpenSSL when WITH_OPENSSL_PORT defined
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: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-25 13:00 UTC by Matt Dawson
Modified: 2009-03-02 19:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Dawson 2009-02-25 13:00:12 UTC
security/qca-ossl is failing on configure. Full details here:
https://tinderbox.chronos.org.uk/tb/errors/7-amd64-Desktop/qca-ossl-2.0.0.b3.log

Fix: 

Not known. I have tried setting a conditional in the Makefile thus:

.if defined(WITH_OPENSSL_PORT)
CONFIGURE_ARGS+=  --with-openssl-inc=${PREFIX}/include \
                  --with-openssl-lib=${PREFIX}/lib
.endif

My reasoning was to force configure to find the ports version of OpenSSL. Needless to say, it didn't work. Strangely, with the pre PORTREVISION= 1 version of the openssl-0.9.8j package on my system, the port builds successfully. I have yet to try backing out dinoex@'s changes of 23rd Feb to the security/openssl port on the tinderbox.
How-To-Repeat: Try to install qca-ossl with the default OpenSSL set to the port rather than base in make.conf/tinderbox envs.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-02-25 13:00:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kde

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dirk.meyer 2009-02-26 18:33:21 UTC
Hello,

I looked int this.
I rebuild with option WITH_OPENSSL_PORTS=yes
	qt4-network-4.4.3
	qca-2.0.0_1

Then patched qca-ossl with the patch below.
I detects OpenSSL but the build fails as EVP_whirlpool ist not defined.

It seemms that this ports needs updating,
as the source references only OpenSSL 0.9.6 and OpenSSL 0.9.7, not 0.9.8

The second patch fixed the build problem.

The problem was not exposed before, cause the linker
did still build with libcrypto from base, instead from ports.

kind regards Dirk

- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
- [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org]
http://people.freebsd.org/~dinoex/errorlogs/


http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/132097


diff -u /usr/ports/security/qca-ossl/Makefile ./Makefile
--- /usr/ports/security/qca-ossl/Makefile	2008-08-05 02:12:57.000000000 +0200
+++ ./Makefile	2009-02-26 06:22:52.000000000 +0100
@@ -26,7 +26,9 @@
 		PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
 		PTHREAD_LDFLAGS=${PTHREAD_LIBS}
 CONFIGURE_ARGS=	--plugins-path=${PREFIX}/${QT_PLUGINDIR} --qtdir=${LOCALBASE} \
-		--with-qca=${LOCALBASE}
+		--with-qca=${LOCALBASE} \
+		--with-openssl-inc=${PREFIX}/include \
+		--with-openssl-lib=${PREFIX}/lib
 
 QT_PLUGINDIR=	lib/qt4/plugins
--- qca-ossl.cpp.orig	2007-12-11 07:34:57.000000000 +0100
+++ qca-ossl.cpp	2009-02-26 06:41:17.000000000 +0100
@@ -6597,9 +6597,11 @@
 #ifdef SHA512_DIGEST_LENGTH
 	list += "sha512";
 #endif
+#if 0
 #ifdef OBJ_whirlpool
 	list += "whirlpool";
 #endif
+#endif
 	return list;
 }
 
@@ -6810,10 +6812,12 @@
 		else if ( type == "sha512" )
 			return new opensslHashContext( EVP_sha512(), this, type);
 #endif
+#if 0
 #ifdef OBJ_whirlpool
 		else if ( type == "whirlpool" )
 			return new opensslHashContext( EVP_whirlpool(), this, type);
 #endif
+#endif
 		else if ( type == "pbkdf1(sha1)" )
 			return new opensslPbkdf1Context( EVP_sha1(), this, type );
 		else if ( type == "pbkdf1(md2)" )
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2009-03-02 18:56:04 UTC
State Changed
From-To: open->closed

fixed now thanks for your report.
Comment 4 dfilter service freebsd_committer freebsd_triage 2009-03-02 18:56:27 UTC
miwi        2009-03-02 18:55:40 UTC

  FreeBSD ports repository

  Modified files:
    security/qca-ossl    Makefile 
  Added files:
    security/qca-ossl/files patch-qca-oss.cpp 
  Log:
  - Fix build with OpenSSL from ports
  
  PR:             132097
  Submitted by:   Matt Dawson <matt@chronos.org.uk>
  Thanks to:      dinoex@
  
  Revision  Changes    Path
  1.2       +5 -2      ports/security/qca-ossl/Makefile
  1.1       +27 -0     ports/security/qca-ossl/files/patch-qca-oss.cpp (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"