Symbol not found: _SSLv2_client_method - macos

I was trying to update openssl so that it could use libssl.1.0.0 instead of libssl.0.9.8.dylib
So I moved the two files
/usr/lib/libssl.0.9.8.dylib
/usr/lib/libssl.0.9.7.dylib
into my home and I copied libssl.1.0.0.dylib inside /usr/lib. That didn't worked too so I re-moved the two original files to their location but now Apache (and other app using ssl) don't start anymore. Apache says:
Syntax error on line 111 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_ssl.so into server: dlopen(/Applications/MAMP/Library/modules/mod_ssl.so, 10): Symbol not found: _SSLv2_client_method\n Referenced from: /Applications/MAMP/Library/modules/mod_ssl.so\n Expected in: /usr/lib/libssl.0.9.8.dylib\n in /Applications/MAMP/Library/modules/mod_ssl.so`
and libssl.0.9.8.dylib is present inside usr/lib so I don't know why/what it does not find. Is it possibile to fix?

Related

PHP Warning: PHP Startup: Unable to load dynamic library 'oci8_12c'

I'm trying to enable oci8_12c extension with Instant client 12.2 in PHP 8.0.7. on windows x64
I've uncommented extension=oci8_12c in my php.ini file.
Downloaded and placed php_oci8-3.0.1-8.0-ts-vs16-x64 files in my C:\xampp\php\ext folder
Downloaded instantclient-basic-windows.x64-12.2.0.1.0.zip file and extracted to C:\Oracle\instantclient_12_2 also added to PATH.
Downloaded & installed vcredist_x64.exe from Microsoft Visual Studio 2013 Redistributable.
Restarted my PC.
But still when I run php --ini in my cmd. I get the following warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'oci8_12c' (tried: C:\xampp\php\ext\oci8_12c (The specified module could not be found), C:\xampp\php\ext\php_oci8_12c.dll (The specified module could not be found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'oci8_12c' (tried: C:\xampp\php\ext\oci8_12c (The specified module could not be found), C:\xampp\php\ext\php_oci8_12c.dll (The specified module could not be found)) in Unknown on line 0
Configuration File (php.ini) Path:
Loaded Configuration File: C:\xampp\php\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
phpinfo() screenshot
After 3 days of trying and failing
I found this article by Daniel Opitz.
The step I was missing in my question post was
Copy all *.dll files: to c:\xampp\php
Copy all *.dll files to c:\xampp\apache\bin (We need a second copy here for apache)
Thats it !! After adding the .dll files to my root php and apache, the warning was resolved.

(clang++) Symbol not found from libstdc++.6.0.9.dylib

I meet an error called "Symbol not found" on matlab. The error message is in below.
Symbol not found: __ZNKSt5ctypeIcE13_M_widen_initEv
Referenced from: blabla/lib/buildW.mexmaci64
Expected in: /usr/lib/libstdc++.6.0.9.dylib
There are quite bunch of questions like me, but I never found the solution of this problem. The former threads mentioned conflicts between the updated clang and the clang used.
Here are exmaples of questions on the similar question.
Need help finding Undefined Symbols
Handling "dyld: lazy symbol binding failed: Symbol not found" error when nm does not find symbol
https://github.com/Homebrew/homebrew-core/issues/4902
I currently installed Xcode 9.2.
And in matlab, I use MacOSX10.13.sdk like below.
>> edit ([matlabroot '/bin/maci64/mexopts/clang++_maci64.xml'])
...
...
<dirExists name="$$/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" />
<cmdReturns name="find $$ -name MacOSX10.13.sdk" />
Also, I found that there are three files in "/usr/lib"
/usr/lib/libstdc++.6.0.9.dylib
/usr/lib/libstdc++.6.dylib
/usr/lib/libstdc++.dylib
Can anyone help me?
The symbol __ZNKSt5ctypeIcE13_M_widen_initEv (demangled std::ctype<char>::_M_widen_init() const) is defined in libstdc++.dylib but if you execute
nm /usr/lib/libstdc++.dylib | fgrep __ZNKSt5ctypeIcE13_M_widen_initEv
you will get
0000000000006a14 t __ZNKSt5ctypeIcE13_M_widen_initEv
as result. The t means that it's defined in the TEXT section but it's a local symbol which cannot referenced from outside the library.
Clang in Xcode uses
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib/libstdc++.tbd
for linking instead of /usr/lib/libstdc++.dylib. This is a human readable file which contains only the name of the public symbols in libstdc++.dylib. Since the symbol above is private it is not listed in the .tbd file.

cocoaPods error :duplicate symbol _OBJC_METACLASS_$_PodsDummy_Pods

I make a xx.a(use cocoaPods) serve it to others,they want to use it in a project which used cocoaPods too,get this error:
duplicate symbol OBJC_METACLASS$PodsDummy_Pods in:
xx.a(Pods-dummy.o)
other.a(Pods-dummy.o)
duplicate symbol _OBJC_CLASS$_PodsDummy_Pods in:
xx.a(Pods-dummy.o)
other.a(Pods-dummy.o)
How can I resolve it? Can I delete the Pods-dummy.o from xx.a?
Having duplicate symbol.
You can safely delete them from the Archive.

MediaWiki - ERROR: 20024 (The given path misformatted or contained invalid characters)

I am running mediawiki in xampp on windows and keep getting the error:
ERROR: 20024 (The given path misformatted or contained invalid characters)
Is there a workaround or software bundle that can be installed to eliminate this problem.
Thanks
Have you tried setting MediaWiki to use the article names as parameters instead of using them as file names?
On your LocalSettings.php
$wgArticlePath = $wgScriptPath.'/index.php?title=$1';

SIMBL plugin fails to load framework

On console, I am getting these errors:
27.08.11 20:56:06,371 sandboxd: ([83008]) TextEdit(83008) deny file-read-data /Users/az/Library/Frameworks/FScript.framework/Versions/A/FScript
27.08.11 20:56:06,372 TextEdit: Error loading /Users/az/Library/Containers/com.apple.TextEdit/Data/Library/Application Support/SIMBL/Plugins/FScriptAnywhere.bundle/Contents/MacOS/FScriptAnywhere: dlopen(/Users/az/Library/Containers/com.apple.TextEdit/Data/Library/Application Support/SIMBL/Plugins/FScriptAnywhere.bundle/Contents/MacOS/FScriptAnywhere, 265): Library not loaded: #executable_path/../Frameworks/FScript.framework/Versions/A/FScript
Referenced from: /Users/az/Library/Containers/com.apple.TextEdit/Data/Library/Application Support/SIMBL/Plugins/FScriptAnywhere.bundle/Contents/MacOS/FScriptAnywhere
Reason: no suitable image found. Did find:
/Users/az/Library/Frameworks/FScript.framework/Versions/A/FScript: open() failed with errno=1
The file FScriptAnywhere.bundle/Contents/Frameworks/FScript.framework/Versions/A/FScript exists. Thus, I don't understand the error / the problem.
Any idea?
Found the problem:
#executable_path is relative to the app, not the bundle, i.e. in this case TextEdit. Of course it doesn't find the framework there.
It also cannot load the framework from ~/Library/Frameworks because of the sandboxing of TextEdit.
Copying the framework over to /Library/Frameworks solved the problem.

Resources