ports/145966: port devel/pwlib fails to build: cast error: patch attached

Andrew Reilly areilly at bigpond.net.au
Fri Apr 23 03:40:02 UTC 2010


>Number:         145966
>Category:       ports
>Synopsis:       port devel/pwlib fails to build: cast error: patch attached
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 23 03:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Reilly
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD duncan.reilly.home 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sat Apr 17 00:13:12 EST 2010 root at duncan.reilly.home:/nb/obj/nb/src/sys/DUNCAN amd64


	
>Description:
	I don't understand how this managed to make it into a software
	release.  It's just broken.  The compile fails thusly:
c++ -O1 -I/nb/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include  -D_REENTRANT -pthread -fno-exceptions  -O1 -I/nb/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include -Wall  -g -D_DEBUG -I/nb/ports/devel/pwlib/work/ptlib_v1_12_0/include  -O1 -fPIC -DLDAP_DEPRECATED -O1 -I/nb/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include   -O1 -I/nb/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include -c ../../ptclib/pssl.cxx -o /nb/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pssl.o
../../ptclib/pssl.cxx: In constructor 'PSSLContext::PSSLContext(const void*, PINDEX)':
../../ptclib/pssl.cxx:917: error: invalid conversion from 'const SSL_METHOD*' to 'SSL_METHOD*'
gmake[3]: *** [/nb/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pssl.o] Error 1


>How-To-Repeat:
	cd /usr/ports/devel/pwlib; make
>Fix:

--- work/ptlib_v1_12_0/src/ptclib/pssl.cxx.orig	2010-04-23 11:45:47.000000000 +1000
+++ work/ptlib_v1_12_0/src/ptclib/pssl.cxx	2010-04-23 11:46:01.000000000 +1000
@@ -914,7 +914,7 @@
   InitialisationMutex.Signal();
 
   // create the new SSL context
-  SSL_METHOD * meth = SSLv23_method();
+  const SSL_METHOD * meth = SSLv23_method();
   context  = SSL_CTX_new(meth);
   if (context == NULL)
     PSSLAssert("Error creating context: ");

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



More information about the freebsd-ports-bugs mailing list