ptlib build failure - breaks pwlib - hence also asterisk - opal - & openh323

David Southwell david at vizion2000.net
Mon Sep 20 21:29:05 UTC 2010


 ----- Original Message -----
>   From: David Southwell
>   To: steve at energistic.com
>   Cc: freebsd-ports at freebsd.org ; mi at aldan.algebra.com
>   Sent: Monday, September 20, 2010 5:28 AM
>   Subject: Re: ptlib build failure - breaks pwlib - hence also asterisk -
> opal - & openh323
> 
>   > > On Sat, 18 Sep 2010, David Southwell wrote:
>   > > > /usr/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]: ***
>   > > > 
>   > > > [/usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pssl.o] Error
>   > > > 1
>   > > 
>   > > I'm having this error too. My guess is that is that pwlib has
>   > > problems
>   > > 
>   > > with the OpenSSL version in the ports. I've had similar problems with
>   > > 
>   > > other ports in the past.
>   > > 
>   > > 
>   > > 
>   > > Regards,
>   > > 
>   > > Marco
>   > 
>   > That makes sense. The problem is this also breaks asterisk which
>   > depends
>   > 
>   > > upon
>   > 
>   > pwlib!!
>   > 
>   > I have also tried building ptlib26 but get the same failures.
>   > 
>   > I have cc'd this to the maintainer<lihong at ieee.org>
> 
>   lihong at ieee.org is maintainer for ptlib.
> 
>   I have also just sent a copy to steve at energistic.com who is maintainer
> for pwlib and net/openh323 which is also affected by this build failure.
> 
> 
>   I have also added mi at aldan.algebra.com who is maintainer for /net/opal
> which has the same problem.
> 
> 
>   dns1# portupgrade -a
> 
> 
>   ---> Upgrading 'opal-2.2.11_2' to 'opal-2.2.11_3' (net/opal)
> 
>   ---> Building '/usr/ports/net/opal'
> 
>   ===> Cleaning for pwlib-1.12.0_6,1
> 
> 
> 
> 
> 
>   Created dependencies.
> 
>   gmake[3]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/src/ptlib/unix'
> 
>   gmake[3]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins'
> 
>   Created dependencies.
> 
>   set -e; gmake -C sound_oss debugdepend ; gmake -C vidinput_v4l
> debugdepend ; gmake -C vidinput_v4l2 debugdepend ; gmake -C vidinput_bsd
> debugdepend ;
> 
>   gmake[4]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/sound_oss'
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -D_DEBUG -fPIC -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -M sound_oss.cxx >> ../pwlib/device/sound/*.dep
> 
>   gmake[4]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/sound_oss'
> 
>   gmake[4]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/sound_oss'
> 
>   Created dependencies.
> 
>   gmake[4]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/sound_oss'
> 
>   gmake[4]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_v4l'
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -D_DEBUG -fPIC -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -M vidinput_v4l.cxx >> ../pwlib/device/videoinput/*.dep
> 
>   gmake[4]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_v4l'
> 
>   gmake[4]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_v4l'
> 
>   Created dependencies.
> 
>   gmake[4]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_v4l'
> 
>   gmake[4]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_v4l2'
> 
>   Created dependencies.
> 
>   gmake[4]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_v4l2'
> 
>   gmake[4]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_bsd'
> 
>   Created dependencies.
> 
>   gmake[4]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_bsd'
> 
>   gmake[3]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins'
> 
>   set -e; if test -e src/ptlib/unix ; then gmake -C src/ptlib/unix debug;
> fi; if test -e plugins ; then gmake -C plugins debug; fi;
> 
>   gmake[3]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/src/ptlib/unix'
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/psasl.cxx -o
> /usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/psasl.o
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/pldap.cxx -o
> /usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pldap.o
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/pils.cxx -o
> /usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pils.o
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/pssl.cxx -o
> /usr/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]: ***
> [/usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pssl.o] Error 1
> 
>   gmake[3]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/src/ptlib/unix'
> 
>   gmake[2]: *** [debug] Error 2
> 
>   gmake[2]: Leaving directory `/usr/ports/devel/pwlib/work/ptlib_v1_12_0'
> 
>   gmake[1]: *** [libs] Error 2
> 
>   gmake[1]: Leaving directory `/usr/ports/devel/pwlib/work/ptlib_v1_12_0'
> 
>   gmake: *** [debuglibs] Error 2
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/devel/pwlib.
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/net/opal.
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/net/opal.
> 
>   ________________________--
> 
> 
>   ---> Upgrading 'openh323-1.19.0.1_2' to 'openh323-1.19.0.1_3'
> (net/openh323)
> 
>   ---> Building '/usr/ports/net/openh323'
> 
>   ===> Cleaning for pwlib-1.12.0_6,1
> 
>   ===> Cleaning for openh323-1.19.0.1_3
> 
>   ===> License check disabled, port has not defined LICENSE
> 
>   ===> Extracting for openh323-1.19.0.1_3
> 
>   => MD5 Checksum OK for openh323/openh323-v1_19_0_1-src-tar.gz.
> 
>   => SHA256 Checksum OK for openh323/openh323-v1_19_0_1-src-tar.gz.
> 
>   ===> Patching for openh323-1.19.0.1_3
> 
> 
> 
> 
> 
> 
> 
> 
>   t -e; if test -e src/ptlib/unix ; then gmake -C src/ptlib/unix debug; fi;
> if test -e plugins ; then gmake -C plugins debug; fi;
> 
>   gmake[3]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/src/ptlib/unix'
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/psasl.cxx -o
> /usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/psasl.o
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/pldap.cxx -o
> /usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pldap.o
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/pils.cxx -o
> /usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pils.o
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/pssl.cxx -o
> /usr/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]: ***
> [/usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pssl.o] Error 1
> 
>   gmake[3]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/src/ptlib/unix'
> 
>   gmake[2]: *** [debug] Error 2
> 
>   gmake[2]: Leaving directory `/usr/ports/devel/pwlib/work/ptlib_v1_12_0'
> 
>   gmake[1]: *** [libs] Error 2
> 
>   gmake[1]: Leaving directory `/usr/ports/devel/pwlib/work/ptlib_v1_12_0'
> 
>   gmake: *** [debuglibs] Error 2
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/devel/pwlib.
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/net/openh323.
> 
>   ---> Backing up the old version
> 
>   ---> Uninstalling the old version
> 
>   ---> Deinstalling 'openh323-1.19.0.1_2'
> 
> 
> 
> 
> 
> 
> 
>   ---> Installing the new version via the port
> 
>   ===> openh323-1.19.0.1_3 depends on executable: gmake - found
> 
>   ===> openh323-1.19.0.1_3 depends on executable: bison - found
> 
>   ===> openh323-1.19.0.1_3 depends on file: /usr/local/bin/autoconf-2.67 -
> found
> 
>   ===> openh323-1.19.0.1_3 depends on shared library: pt_r.1 - not found
> 
>   ===> Verifying reinstall for pt_r.1 in /usr/ports/devel/pwlib
> 
>   ===> Building for pwlib-1.12.0_6,1
> 
> 
> 
> 
> 
> 
>   gmake[4]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins/vidinput_bsd'
> 
>   gmake[3]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/plugins'
> 
>   set -e; if test -e src/ptlib/unix ; then gmake -C src/ptlib/unix debug;
> fi; if test -e plugins ; then gmake -C plugins debug; fi;
> 
>   gmake[3]: Entering directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/src/ptlib/unix'
> 
>   c++ -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -D_REENTRANT -pthread -fno-exceptions -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -Wall -g -D_DEBUG -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -O1
> -fPIC -DLDAP_DEPRECATED -O1
> -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include -I/usr/local/include
> -O1 -I/usr/ports/devel/pwlib/work/ptlib_v1_12_0/include
> -I/usr/local/include -c ../../ptclib/pssl.cxx -o
> /usr/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]: ***
> [/usr/ports/devel/pwlib/work/ptlib_v1_12_0/lib/obj_d/pssl.o] Error 1
> 
>   gmake[3]: Leaving directory
> `/usr/ports/devel/pwlib/work/ptlib_v1_12_0/src/ptlib/unix'
> 
>   gmake[2]: *** [debug] Error 2
> 
>   gmake[2]: Leaving directory `/usr/ports/devel/pwlib/work/ptlib_v1_12_0'
> 
>   gmake[1]: *** [libs] Error 2
> 
>   gmake[1]: Leaving directory `/usr/ports/devel/pwlib/work/ptlib_v1_12_0'
> 
>   gmake: *** [debuglibs] Error 2
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/devel/pwlib.
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/devel/pwlib.
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/net/openh323.
> 
>   *** Error code 1
> 
> 
>   Stop in /usr/ports/net/openh323.
> 
> 
>> Does SSL from ports declare something that we can #ifdef around? I don't
> really use pwlib anymore. If you can produce a patch that fixes your issue
> without breaking the case of using system openssl I'll happly give it the
> nod. ports/pwlib is very old. Everything should be moving to ports/ptlib
> (2.4) or ports/ptlib26

Thanks for your reply.

IMHO The problem is ptlibs AND ptlib26. Both these ports seem to be the cause 
of the problem. pwlib tries to build ptlib and that build fails. ptlib26 fails 
with the same error.

I think you have your finger on the pulse... both ptlib AND ptlib26 need to 
address the way they use openssl but I do not know how to do that!

I have googles around the problem but there are so many reports of similar 
errors but I do not understand what is happening.

David

PS Would you mind not top posting


Photographic Artist
Permanent Installations & Design
Creative Imagery and Advanced Digital Techniques
High Dynamic Range Photography & Official Portraiture
Combined darkroom & digital creations
& Systems Adminstrator for the vizion2000.net network


More information about the freebsd-ports mailing list