Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2009 01:51:01 GMT
From:      Wes Morgan <morganw@chemikals.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/136974: xca build fails on 8-current due to openssl upgrades
Message-ID:  <200907220151.n6M1p1sp047085@www.freebsd.org>
Resent-Message-ID: <200907220200.n6M20HUU048287@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136974
>Category:       ports
>Synopsis:       xca build fails on 8-current due to openssl upgrades
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 22 02:00:17 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Wes Morgan
>Release:        8.0-current
>Organization:
>Environment:
FreeBSD catalyst 8.0-BETA2 FreeBSD 8.0-BETA2 #7: Mon Jul 20 17:46:59 CDT 2009     root@catalyst:/usr/obj/usr/src/sys/CATALYST  i386
>Description:
(Disclaimer: this doesn't seem to happen on pointyhat?)

Build of xca fails with this error:

cc -I. -I.. -I/usr/ports/security/xca/work/xca-0.6.4/ui -I/usr/local/include/qt4 -I/usr/local/include/qt4/Qt -I/usr/local/include -pipe -msse3 -O2 -march=prescott -fno-strict-aliasing -Wall -ggdb  -c x509rev.cpp -o x509rev.o
x509rev.cpp: In constructor 'x509rev::x509rev(const X509_REVOKED*)':
x509rev.cpp:28: error: invalid conversion from 'void*' to 'char*'
x509rev.cpp:28: error:   initializing argument 3 of 'void* ASN1_dup(int (*)(void*, unsigned char**), void* (*)(void**, const unsigned char**, long int), char*)'
x509rev.cpp: In member function 'x509rev& x509rev::set(const X509_REVOKED*)':
x509rev.cpp:46: error: invalid conversion from 'void*' to 'char*'
x509rev.cpp:46: error:   initializing argument 3 of 'void* ASN1_dup(int (*)(void*, unsigned char**), void* (*)(void**, const unsigned char**, long int), char*)'
x509rev.cpp: In member function 'X509_REVOKED* x509rev::get() const':
x509rev.cpp:90: error: invalid conversion from 'void*' to 'char*'
x509rev.cpp:90: error:   initializing argument 3 of 'void* ASN1_dup(int (*)(void*, unsigned char**), void* (*)(void**, const unsigned char**, long int), char*)'
gmake[1]: *** [x509rev.o] Error 1
gmake[1]: Leaving directory `/usr/ports/security/xca/work/xca-0.6.4/lib'
gmake: *** [lib/target.obj] Error 2
*** Error code 1

>How-To-Repeat:
Build on latest 8-current.

>Fix:
Apply attached patch, based on the existing patch and a patch from gentoo portage.


Patch attached with submission follows:

--- x509rev.cpp.orig	2007-08-13 13:55:50.000000000 -0500
+++ x509rev.cpp	2009-07-21 20:31:34.505337865 -0500
@@ -7,14 +7,20 @@
 
 #include "x509rev.h"
 
-#if OPENSSL_VERSION_NUMBER >= 0x00908000L
+
+#if OPENSSL_VERSION_NUMBER >= 0x0090806fL
+#define X509_REVOKED_dup(x5r) (X509_REVOKED *)ASN1_dup( \
+	(i2d_of_void*)i2d_X509_REVOKED, \
+	(d2i_of_void*)d2i_X509_REVOKED, \
+	(char *)x5r)
+#elif OPENSSL_VERSION_NUMBER >= 0x00908000L
 #define X509_REVOKED_dup(x5r) \
 	ASN1_dup_of (X509_REVOKED, i2d_X509_REVOKED, d2i_X509_REVOKED, x5r)
 
 #else
 #define X509_REVOKED_dup(x5r) (X509_REVOKED *)ASN1_dup( \
-	(int (*)(...))i2d_X509_REVOKED, \
-	(char *(*)(...))d2i_X509_REVOKED, \
+	(int (*)())i2d_X509_REVOKED, \
+	(char *(*)())d2i_X509_REVOKED, \
 	(char *)x5r)
 #endif
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907220151.n6M1p1sp047085>