Use OpenSSH plugs without modifying system

Discussion in 'Mac / Hackintosh' started by John Trumble, May 31, 2015.

  1. Grandy

    Grandy Member

    Joined:
    Jun 1, 2015
    Messages:
    97
    Likes Received:
    18
    dont know why artattack patches logic, because logically all you need to patch plugins to use openssh library. as i can remember, thats all i did.
     
  2. HPF

    HPF Kapellmeister

    Joined:
    Jun 23, 2012
    Messages:
    201
    Likes Received:
    56
    Location:
    Block 4
    artattack's uploaded dylib is exactly the openssh one, to rename a file i dont need a hex editor. Do you actually replace the string "/usr/lib/libstdc++.6.dylib" to "/usr/libstXX++.6.0.9.dylib" with the hex editor in the libstXX++.6.0.9.dylib itself?
     
  3. lyric8

    lyric8 Producer

    Joined:
    Sep 12, 2011
    Messages:
    1,125
    Likes Received:
    76
    Maybe someone can refine and give some detailed directions on how in bed the file into the plugins that would be cool thanks for the info
     
  4. artattack

    artattack Ultrasonic

    Joined:
    Apr 1, 2013
    Messages:
    28
    Likes Received:
    25
    Location:
    Portugal
    Hi, I've patched "Presonus Studio One", because the plugins didn't work before I patched it. I don't know what's Logic behaviour, I don't have logic installed on my Mac. But it's a good idea to have all the users' experiences listed in this thread, I guess.
     
  5. artattack

    artattack Ultrasonic

    Joined:
    Apr 1, 2013
    Messages:
    28
    Likes Received:
    25
    Location:
    Portugal
    Yes, I edited the lib with the Hex editor and replaced the string "/usr/lib/libstdc++.6.dylib" with "/usr/lib/libstXX++.6.dylib" and "/usr/lib/libstdc++.6.0.9.dylib" for "/usr/lib/libstXX++.6.0.9.dylib". The LIB is 100% openssh's. I figured that the label "XX" (at least for me) shows me that those are the cracked ones in my /usr/lib directory.
    I guess we could make a script to automate a good part of this work, but for now I need to try a bunch of those plugins and maybe some different DAWs to make sure the script/program doesn't bring more problems than to replace the standard libs.
     
  6. Kyrad

    Kyrad Ultrasonic

    Joined:
    Mar 18, 2014
    Messages:
    69
    Likes Received:
    37
    there is no need to patch latest Logic (LPX 10.2) cause it is not using some of the libstdc++.6.0.9.dylib nor libstXX++.6.dylib Libraries! Patched LX480, Slate Digital Virtual Channel and Slate Digital Virtual Mixer and it Works with the new Linked Libraries in Logic so far :)

    Thanks goes to artattack, for pointing in the right direction :drummer:

    Here is the otool -L from Logic:
    otool -L Logic\ Pro\ X
    Logic Pro X:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
    /usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
    /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
    /usr/lib/libxar.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
    @rpath/MALogicLegacySong.framework/Versions/A/MALogicLegacySong (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MAResourcesPlugInsShared.framework/Versions/A/MAResourcesPlugInsShared (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MAAudioUnitSupport.framework/Versions/A/MAAudioUnitSupport (compatibility version 1.0.0, current version 3987.29.0)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 157.0.0)
    /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 492.0.0)
    /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1151.16.0)
    /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /Library/Frameworks/iTunesLibrary.framework/Versions/A/iTunesLibrary (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling (compatibility version 1.0.0, current version 10.0.0)
    @rpath/MALoopManagement.framework/Versions/A/MALoopManagement (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MACore.framework/Versions/A/MACore (compatibility version 1.0.0, current version 3987.29.0)
    /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
    /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 57031.1.35)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1343.14.0)
    /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI (compatibility version 1.0.0, current version 73.0.0)
    @rpath/MAVectorUIKit.framework/Versions/A/MAVectorUIKit (compatibility version 1.0.0, current version 3987.29.0)
    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 62.0.0)
    /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration (compatibility version 1.0.0, current version 699.1.5)
    @rpath/MAHarmony.framework/Versions/A/MAHarmony (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/OMF.framework/Versions/A/OMF (compatibility version 1.0.0, current version 3987.2.0)
    @rpath/MADSP.framework/Versions/A/MADSP (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/LogicFileBrowser.framework/Versions/A/LogicFileBrowser (compatibility version 1.0.0, current version 3987.2.0)
    @rpath/LogicLoopBrowser.framework/Versions/A/LogicLoopBrowser (compatibility version 1.0.0, current version 3987.2.0)
    @rpath/MAResources.framework/Versions/A/MAResources (compatibility version 1.0.0, current version 3987.29.0)
    /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit (compatibility version 1.0.0, current version 1.0.0)
    @rpath/MAUnitTest.framework/Versions/A/MAUnitTest (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MAFiles.framework/Versions/A/MAFiles (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MAAudioEngine.framework/Versions/A/MAAudioEngine (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MAPlugInGUI.framework/Versions/A/MAPlugInGUI (compatibility version 1.0.0, current version 3987.29.0)
    /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit (compatibility version 1.0.0, current version 376.0.0)
    /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData (compatibility version 1.0.0, current version 526.0.0)
    /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz (compatibility version 1.0.0, current version 1.0.0)
    @rpath/MAVideo.framework/Versions/A/MAVideo (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MAToolKit.framework/Versions/A/MAToolKit (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/Animal.framework/Versions/A/Animal (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MALoopBrowser.framework/Versions/A/MALoopBrowser (compatibility version 1.0.0, current version 3987.2.0)
    @rpath/MAWorkspace.framework/Versions/A/MAWorkspace (compatibility version 1.0.0, current version 3987.29.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    @rpath/MAToolKitHighLevel.framework/Versions/A/MAToolKitHighLevel (compatibility version 1.0.0, current version 3987.29.0)
    /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework/Versions/A/iLifeMediaBrowser (compatibility version 1.0.0, current version 675.0.0)
    /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation (compatibility version 1.0.0, current version 2.0.0)
    /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.10.0)
    @rpath/MAResourcesLg.framework/Versions/A/MAResourcesLg (compatibility version 1.0.0, current version 3987.29.0)
    @rpath/MAContentDownloading.framework/Versions/A/MAContentDownloading (compatibility version 0.0.0, current version 0.0.0)
    @rpath/OAuth2Client.framework/Versions/A/OAuth2Client (compatibility version 1.0.0, current version 3987.2.0)
    @rpath/SoundCloudAPI.framework/Versions/A/SoundCloudAPI (compatibility version 1.0.0, current version 3987.2.0)
    /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit (compatibility version 1.0.0, current version 600.1.25)
    /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.8.0)
    @rpath/MAResourcesGB.framework/Versions/A/MAResourcesGB (compatibility version 1.0.0, current version 3987.29.0)
    /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1151.16.0)
    /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 48.0.0)
    /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork (compatibility version 1.0.0, current version 720.0.9)
    /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (compatibility version 64.0.0, current version 600.0.0)
    /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO (compatibility version 1.0.0, current version 1.0.0)​
     
    Last edited: Aug 28, 2015
  7. HPF

    HPF Kapellmeister

    Joined:
    Jun 23, 2012
    Messages:
    201
    Likes Received:
    56
    Location:
    Block 4
    ok, what I've tried so far:
    renamed and chmodded oSSH's dylib to: /usr/lib/libstdX++.6.0.9.dylib, linked it to /usr/lib/libstdX++.6.dylib
    1. Patched LPX & Plugs (/usr/lib/libstdc++.6.dylib -> /usr/lib/libstdX++.6.dylib) : no chance to get LPX started!
    2. Patch undone on LPX (revert to original binary), Plugs still patched, Plug's Gui load but state "pissing pace iCock stuff" ...
    3. HEXed /usr/lib/libstdX++.6.dylib and replaced the string "/usr/lib/libstdc++.6" with "/usr/lib/libstdX++.6" (2 occurencies) : Full no go, everything involved crash

    OS 10.9.4 | LPX 10.1
     
  8. returnal

    returnal Rock Star

    Joined:
    Jun 2, 2014
    Messages:
    392
    Likes Received:
    304
    Interesting. I'm doing a full system backup now, and when I'm done I'm going to attempt this. Just to be clear, are you saying that with LPX 10.2 I should only have to follow artattack's first seven steps, and not have to worry about steps eight through eleven?
     
  9. HPF

    HPF Kapellmeister

    Joined:
    Jun 23, 2012
    Messages:
    201
    Likes Received:
    56
    Location:
    Block 4
    Wonder why its working for everybody except me ? ... But got it now, the missing part was the missing codesigning of the hex'ed alernative dylib. Fully working now, the alternative dylib just for the eyepatch stuff is an excellent solution! Thanks everybody :D And there is no need for patching the host daw - NONE ... only plugins! Tested on LP9.1.X/LPX 10.1.X/LPX 10.2.X/LIVE9.2.X , everything (plugwise) behaves/misbehaves as it did with replacing the real original dylib, thank you for mentioning the otool & install_name_tool ... now adding codesign to the list.
     
  10. Kyrad

    Kyrad Ultrasonic

    Joined:
    Mar 18, 2014
    Messages:
    69
    Likes Received:
    37
    Yes, exactly this way.
    I was just checking if LPX 10.2 using on of the default Libraries. And obvious it not using it. Thats why i postet the output from otool from Logic.
    Artattack is using Studio One, and you see clear that Studio One is using /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
     
    Last edited: Aug 29, 2015
  11. returnal

    returnal Rock Star

    Joined:
    Jun 2, 2014
    Messages:
    392
    Likes Received:
    304
    Okay . . . so obviously I've fouled it up somehow after what felt like a good start . . .

    I followed Manta's directions and used a Hex Editor to change openssh's libstdc++.6.0.9.dylib to libstXX++.6.0.9.dylib (I chose XX because I find it less confusing that way). I also changed the name of the lib itself to libstXX++.6.0.9.dylib. Then I dropped that XX dylib into my usr/lib folder. So far so good. But when I attempt step #3 as seen below, I get a Permission denied response from Terminal. (I have Write privileges to my usr folder and everything in it.)

    When I tried it again I wasn't thinking and entered it all as one line (i.e. cd /usr/lib ln -s libstXX++.6.0.9.dylib libstXX++.6.dylib), which didn't yield the Permission denied response. However, when I moved onto step #4 as seen below:

    . . . and tried to open my .component with Terminal, I know get this message in Terminal:
    login(1221,0x7fff7eb15300) malloc: *** error for object 0x7ff0a8e18410: pointer being freed was not allocated
    *** set a breakpoint in malloc_error_break to debug

    [Process completed]


    . . . and nothing about the .component I've tried to open. Also, I cannot enter anything into this Terminal window now.

    Thoughts?
     
  12. lyric8

    lyric8 Producer

    Joined:
    Sep 12, 2011
    Messages:
    1,125
    Likes Received:
    76
    I've been trying to do the vocal align VST for 10.6.8 working but still with no luck yet this is an awesome thread give me hope that these will be working some day
     
    Last edited: Aug 30, 2015
  13. HPF

    HPF Kapellmeister

    Joined:
    Jun 23, 2012
    Messages:
    201
    Likes Received:
    56
    Location:
    Block 4

    you can drag n drop files and folders into the terminal ... for example: type cd and just pull the component over into the terminal ... its the same like typing cd /Library/Audio/Plug-Ins/Components/Some.component
     
  14. boy56

    boy56 Newbie

    Joined:
    Aug 30, 2015
    Messages:
    9
    Likes Received:
    2
    artattack, and others, there's no such string as "/usr/lib/libstdc++.6.0.9.dylib" in the openssh dylib. Where do you find it? When I search for it in the provided openssh dylib, all I can find is "/usr/lib/libstdc++.6.dylib" and NOT "/usr/lib/libstdc++.6.0.9.dylib", even though the actual dylib file is called libstdc++.6.0.9.dylib. It's very confusing what to patch.
     
  15. artattack

    artattack Ultrasonic

    Joined:
    Apr 1, 2013
    Messages:
    28
    Likes Received:
    25
    Location:
    Portugal
    You're correct, boy56. Although the library is libstdc++.6.0.9.dylib what is invoked in openssh's lib it's the libstdc++.6.dylib symbolic link. Just replace that string with the one you like (use a string with the same length like libstZZ for example) and save that file. After that you can use it in the plugs and your daw.
     
  16. returnal

    returnal Rock Star

    Joined:
    Jun 2, 2014
    Messages:
    392
    Likes Received:
    304
    Thanks for the helpful suggestion HPF - For some reason I've never thought to try drag+drop with Terminal. Unfortunately right now, as soon as I open Terminal I get this message:

    malloc: *** error for object 0x7fd823c033c0: pointer being freed was not allocated
    *** set a breakpoint in malloc_error_break to debug
    [Process completed]


    . . . and Terminal won't allow me to do anything from here (type commands into it, or drag something into it). I think it's time I restore my whole system back to where it was before I started tinkering . . . and try, try again! ;)
     
  17. lyric8

    lyric8 Producer

    Joined:
    Sep 12, 2011
    Messages:
    1,125
    Likes Received:
    76
    Interesting interesting interesting please keep this going I must get vocal align VST working in 10.6.8 thanks for all the posts

    i found this article on Patching with Terminal says some stuff about using the cd command and stuff i did not read all the way through yet https://www.drupal.org/node/60818
     
    Last edited: Aug 30, 2015
  18. HPF

    HPF Kapellmeister

    Joined:
    Jun 23, 2012
    Messages:
    201
    Likes Received:
    56
    Location:
    Block 4
    Run Check & Repair Permissions on System disk using the Disk Utility.app, when done restart osx. If you dont kick the habbit of messing around with sudo in terminal, you will wreck your install soon. A TM backup comes very handy then ... GL

    Another Story...
    Using this method i cant get the sonnox stuff running, i know it did as i replaced the system file. Anyone?
     
  19. Kyrad

    Kyrad Ultrasonic

    Joined:
    Mar 18, 2014
    Messages:
    69
    Likes Received:
    37
    Same here! Sonnox not working
    Here is what i have testet so far.

    Working ones:
    - DuyEverythingBundle
    - Antares7.6.8
    - EventideBundle (Blackhole / H3000)
    - Flux.Alchemist.v3.3.6.35839
    - LX480Complete
    - SlateVCC1.5.2
    - Softube
    - McDSP

    Still need to Test:
    - Altiverb
    - Antares AVOX4
    - clariphonic
    - GRMTools
    - TCElectronic
    - UBK1
    - VocalignPro4.2.2
     
    Last edited: Aug 31, 2015
  20. boy56

    boy56 Newbie

    Joined:
    Aug 30, 2015
    Messages:
    9
    Likes Received:
    2
    I can't get any Sonnox plugins to work, and I can only get Softube plugins to work in Ableton Live, and NOT LPX. Logic just crashes everytime I start it up. (Really weird that they work fine in Ableton, but can't even start Logic)
     
Loading...
Similar Threads - OpenSSH plugs without Forum Date
Problem Propellerhead Reason 5 after instal libstcd++ (openssh plugs) Mac / Hackintosh May 27, 2015
Any way to get old openssh plugins to work in m1 native DAW? Software Mar 16, 2023
Openssh Big Sur Mac / Hackintosh Nov 19, 2022
McDSP Openssh on Logic Pro X Software Mar 4, 2022
openssh plugins in Reaper macOS Reaper Dec 4, 2020
Loading...