Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#28595 closed defect (fixed)

libsockets: invalid conversion from ‘const SSL_METHOD*’ to ‘SSL_METHOD*’

Reported by: tommyb06@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), bhology@…
Port: libsockets

Description (last modified by blb@…)

It appears to be something wrong with the compilation of TcpSocket.cpp

Here is what happend when I tried the step that didn't work in the log file:

 cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/Sockets-2.3.3
77$ make
/usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o TcpSocket.o TcpSocket.cpp
TcpSocket.cpp: In member function ‘virtual void TcpSocket::InitSSLClient()’:
TcpSocket.cpp:1226: error: invalid conversion from ‘const SSL_METHOD*’ to ‘SSL_METHOD*’
TcpSocket.cpp:1226: error:   initializing argument 2 of ‘void TcpSocket::InitializeContext(const std::string&, SSL_METHOD*)’
TcpSocket.cpp: In member function ‘void TcpSocket::InitializeContext(const std::string&, SSL_METHOD*)’:
TcpSocket.cpp:1244: error: invalid conversion from ‘const SSL_METHOD*’ to ‘SSL_METHOD*’
TcpSocket.cpp: In member function ‘void TcpSocket::InitializeContext(const std::string&, const std::string&, const std::string&, SSL_METHOD*)’:
TcpSocket.cpp:1261: error: invalid conversion from ‘const SSL_METHOD*’ to ‘SSL_METHOD*’
TcpSocket.cpp: In member function ‘void TcpSocket::InitializeContext(const std::string&, const std::string&, const std::string&, const std::string&, SSL_METHOD*)’:
TcpSocket.cpp:1297: error: invalid conversion from ‘const SSL_METHOD*’ to ‘SSL_METHOD*’
TcpSocket.cpp: At global scope:
TcpSocket.cpp:1799: fatal error: opening dependency file TcpSocket.d: Permission denied
compilation terminated.

Under follows the original Logfile:

version:1
:debug:main epoch: in tree: 1 installed: 1
:debug:main openssl 1.0.0d_0 exists in the ports tree
:debug:main openssl 0.9.8n_0 +darwin is the latest installed
:debug:main openssl 0.9.8n_0 +darwin is active
:debug:main Merging existing variants '+darwin' into variants
:debug:main new fully merged portvariants: darwin +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Requested variant darwin is not provided by port openssl.
:debug:main epoch: in tree: 0 installed: 0
:debug:main zlib 1.2.5_0 exists in the ports tree
:debug:main zlib 1.2.5_0  is the latest installed
:debug:main zlib 1.2.5_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! zlib 1.2.5_0 >= zlib 1.2.5_0
:debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl/work
:debug:main Starting logging for openssl
:debug:destroot Starting logging for openssl
:msg:clean --->  Computing dependencies for libsockets:info:clean .:debug:clean Searching for dependency: openssl
:debug:clean Found Dependency: receipt exists for openssl
:msg:clean 
:debug:main Executing org.macports.main (libsockets)
:msg:main --->  Fetching libsockets
:debug:fetch fetch phase started at Wed Mar  2 03:10:44 CET 2011
:debug:fetch Executing org.macports.fetch (libsockets)
:info:fetch --->  uuid.h doesn't seem to exist in /opt/local/var/macports/distfiles/libsockets
:debug:fetch Pinging www.die.net...
:debug:fetch Pinging distfiles.macports.org...
:debug:fetch Pinging aarnet.au.distfiles.macports.org...
:debug:fetch Pinging cjj.kr.distfiles.macports.org...
:debug:fetch Pinging lil.fr.distfiles.macports.org...
:debug:fetch Pinging sea.us.distfiles.macports.org...
:debug:fetch Pinging ykf.ca.distfiles.macports.org...
:debug:fetch www.die.net ping time is 211.271
:debug:fetch distfiles.macports.org ping time is 184.948
:debug:fetch aarnet.au.distfiles.macports.org ping time is 345.022
:debug:fetch cjj.kr.distfiles.macports.org ping time is 10000
:debug:fetch lil.fr.distfiles.macports.org ping time is 35.926
:debug:fetch sea.us.distfiles.macports.org ping time is 10000
:debug:fetch ykf.ca.distfiles.macports.org ping time is 122.370
:debug:fetch Pinging www.alhem.net...
:debug:fetch www.alhem.net ping time is 10000
:msg:fetch --->  Attempting to fetch uuid.h from http://lil.fr.distfiles.macports.org/libsockets
:info:fetch --->  Sockets-2.3.3.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/libsockets
:msg:fetch --->  Attempting to fetch Sockets-2.3.3.tar.gz from http://lil.fr.distfiles.macports.org/libsockets
:msg:fetch --->  Verifying checksum(s) for libsockets
:debug:checksum checksum phase started at Wed Mar  2 03:10:51 CET 2011
:debug:checksum Executing org.macports.checksum (libsockets)
:info:checksum --->  Checksumming uuid.h
:debug:checksum Correct (sha1) checksum for uuid.h
:info:checksum --->  Checksumming Sockets-2.3.3.tar.gz
:debug:checksum Correct (sha1) checksum for Sockets-2.3.3.tar.gz
:msg:checksum --->  Extracting libsockets
:debug:extract extract phase started at Wed Mar  2 03:10:51 CET 2011
:debug:extract Executing org.macports.extract (libsockets)
:info:extract --->  Extracting Sockets-2.3.3.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/libsockets/Sockets-2.3.3.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/libsockets/Sockets-2.3.3.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing proc-post-org.macports.extract-extract-0
:info:extract xinstall: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsockets/files/configure -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/Sockets-2.3.3/configure
:info:extract xinstall: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsockets/files/create-dylib.sh -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/Sockets-2.3.3/create-dylib.sh
:debug:patch patch phase started at Wed Mar  2 03:10:52 CET 2011
:debug:patch Executing org.macports.patch (libsockets)
:msg:patch --->  Applying patches to libsockets
:info:patch --->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsockets/files/patch-Makefile.diff
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/Sockets-2.3.3" && /usr/bin/patch -p0'
:info:patch patching file Makefile
:info:patch --->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsockets/files/patch-Makefile.Defines.macosx.diff
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/Sockets-2.3.3" && /usr/bin/patch -p0'
:info:patch patching file Makefile.Defines.macosx
:msg:patch --->  Configuring libsockets
:debug:patch Using compiler 'Mac OS X gcc 4.2'
:debug:configure configure phase started at Wed Mar  2 03:10:53 CET 2011
:debug:configure Executing org.macports.configure (libsockets)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' FCFLAGS='-O2 -m64' OBJC='/usr/bin/gcc-4.2' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC_PRINT_OPTIONS='YES' PLATFORM='macosx' PREFIX='/opt/local' CC='/usr/bin/gcc-4.2'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/Sockets-2.3.3" && ./configure --prefix=/opt/local'
:msg:configure --->  Building libsockets
:debug:build build phase started at Wed Mar  2 03:10:53 CET 2011
:debug:build Executing org.macports.build (libsockets)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/Sockets-2.3.3" && /usr/bin/make -j2 all libSockets.dylib'
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Ajp13Socket.o Ajp13Socket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o AjpBaseSocket.o AjpBaseSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Base64.o Base64.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Debug.o Debug.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Event.o Event.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o EventHandler.o EventHandler.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o EventTime.o EventTime.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Exception.o Exception.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o File.o File.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o FileStream.o FileStream.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HTTPSocket.o HTTPSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpBaseSocket.o HttpBaseSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpClientSocket.o HttpClientSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpDebugSocket.o HttpDebugSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpGetSocket.o HttpGetSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpPostSocket.o HttpPostSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpPutSocket.o HttpPutSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpRequest.o HttpRequest.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpResponse.o HttpResponse.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpTransaction.o HttpTransaction.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpdCookies.o HttpdCookies.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpdForm.o HttpdForm.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o HttpdSocket.o HttpdSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o IEventOwner.o IEventOwner.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Ipv4Address.o Ipv4Address.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Ipv6Address.o Ipv6Address.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Lock.o Lock.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o MemFile.o MemFile.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Mutex.o Mutex.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Parse.o Parse.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o ResolvServer.o ResolvServer.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o ResolvSocket.o ResolvSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o SSLInitializer.o SSLInitializer.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o SctpSocket.o SctpSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o SmtpdSocket.o SmtpdSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o Socket.o Socket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o SocketHandler.o SocketHandler.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o SocketStream.o SocketStream.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o StdoutLog.o StdoutLog.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o StreamSocket.o StreamSocket.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o StreamWriter.o StreamWriter.cpp
:info:build /usr/bin/g++-4.2  -O2 -arch x86_64 -Wall -g -I/opt/local/include -MD -D_VERSION='"2.3.3"' -DMACOSX    -c -o TcpSocket.o TcpSocket.cpp
:info:build TcpSocket.cpp: In member function 'virtual void TcpSocket::InitSSLClient()':
:info:build TcpSocket.cpp:1226: error: invalid conversion from 'const SSL_METHOD*' to 'SSL_METHOD*'
:info:build TcpSocket.cpp:1226: error:   initializing argument 2 of 'void TcpSocket::InitializeContext(const std::string&, SSL_METHOD*)'
:info:build TcpSocket.cpp: In member function 'void TcpSocket::InitializeContext(const std::string&, SSL_METHOD*)':
:info:build TcpSocket.cpp:1244: error: invalid conversion from 'const SSL_METHOD*' to 'SSL_METHOD*'
:info:build TcpSocket.cpp: In member function 'void TcpSocket::InitializeContext(const std::string&, const std::string&, const std::string&, SSL_METHOD*)':
:info:build TcpSocket.cpp:1261: error: invalid conversion from 'const SSL_METHOD*' to 'SSL_METHOD*'
:info:build TcpSocket.cpp: In member function 'void TcpSocket::InitializeContext(const std::string&, const std::string&, const std::string&, const std::string&, SSL_METHOD*)':
:info:build TcpSocket.cpp:1297: error: invalid conversion from 'const SSL_METHOD*' to 'SSL_METHOD*'
:info:build make: *** [TcpSocket.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/work/Sockets-2.3.3" && /usr/bin/make -j2 all libSockets.dylib " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for libsockets): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for libsockets is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libsockets/main.log


[]

Attachments (2)

libsocketsfix.patch (2.2 KB) - added by bhology@… 14 years ago.
Patch to libsockets to fix the issue
main.log (16.0 KB) - added by tommyb06@… 14 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 years ago by blb@…

Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: libsockets added

Current version for libsockets is 2.3.9.5, perhaps that'll fix this issue (which appears to be OpenSSL-related, probably with openssl 1.x)?

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Libsockets won't build on SnowLeopard 10.6.6libsockets: invalid conversion from ‘const SSL_METHOD*’ to ‘SSL_METHOD*’

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Yes, it looks like an openssl 1.0.0-related problem, like we've seen with several other ports before.

Updating to 2.3.9.5 (#28596) doesn't help this issue.

Changed 14 years ago by bhology@…

Attachment: libsocketsfix.patch added

Patch to libsockets to fix the issue

comment:4 Changed 14 years ago by bhology@…

I've attached a patch to get things building again. I don't know the details of how to get this into the patch set, but hopefully someone here does.

comment:5 Changed 14 years ago by tommyb06@…

Hello.

I did "sudo port clean libsockets" then I tried to install it again from a packet manager, it fluked this time as well. I have included the logfile in the attatch files of the original ticket.

Best Regards

Changed 14 years ago by tommyb06@…

Attachment: main.log added

comment:6 Changed 14 years ago by tommyb06@…

I see there is a patch attached. Do I just go into the source tree and patches the files, then tries sudo port update libsockets???

Thanks in advance.

comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: bhology@… added
Resolution: fixed
Status: newclosed

@bhology: Thanks, committed in r76742.

comment:8 Changed 14 years ago by tommyb06@…

Hello. Thank you very much! At least I managed to install it. Very important for me, because of the tutorial in XCode which uses it, which can be founder herehttp://developer.apple.com/library/mac/#featuredarticles/UsingMacPorts/index.html

It is nice that you bear over with me.

Note: See TracTickets for help on using tickets.