#100 ✓released
Alex (via GPGTools)

Add MacGPG1 PPC binaries

Reported by Alex (via GPGTools) | March 18th, 2011 @ 12:09 AM

Comments and changes to this ticket

  • Alex (via GPGTools)
  • Alex (via GPGTools)

    Alex (via GPGTools) March 18th, 2011 @ 12:20 AM

    • State changed from “new” to “hold”

    Now waiting for feedback...

  • Andrew Long

    Andrew Long March 18th, 2011 @ 07:10 PM

    1. Running the installation program appeared to work, but didn't replace the version of 1.4.9 in /usr/local/bin.
    2. Running the uninstall program did not remove the version of 1.4.9 in /usr/local/bin
    3. I manually deleted the version of 1.4.9 in /usr/local/bin and the install program installed something at /usr/locl/bin/gpg, but when I tried to call 'gpg --version' it threw some linkage error messages (output attached)
    4. Is this due to incorrectly uninstalling 1.4.9? If so how can I clean it out to start again?

    Regards, Andy

  • Alex (via GPGTools)

    Alex (via GPGTools) March 18th, 2011 @ 08:38 PM

    Could you link /usr/local/bin/gpg to /usr/local/MacGPG1/bin/gpg?
    What is the output of "which gpg" and "ls -l /usr/local/bin/gpg"?

    -- sent from my mobile phone

  • Alex (via GPGTools)

    Alex (via GPGTools) March 19th, 2011 @ 11:32 AM

    Btw: it is intended that MacGPG1 does not overwrite or uninstall existing (manual) gpg1 installations. Hope at least "/usr/local/MacGPG1/bin/gpg --version" will work.

  • Andrew Long

    Andrew Long March 22nd, 2011 @ 09:24 PM

    Finally! got my network up and crawling again. OK.

    1. hawkwing:~ andy$ ls -las which gpg
      8 lrwxr-xr-x 1 root admin 26 22 Mar 20:13 /usr/local/bin/gpg -> /usr/local/MacGPG1/bin/gpg

    2. hawkwing:~ andy$ /usr/local/MacGPG1/bin/gpg --version
      dyld: lazy symbol binding failed: Symbol not found: _fopen$UNIX2003
      Referenced from: /usr/local/MacGPG1/bin/gpg Expected in: /usr/lib/libSystem.B.dylib

    dyld: Symbol not found: _fopen$UNIX2003
    Referenced from: /usr/local/MacGPG1/bin/gpg Expected in: /usr/lib/libSystem.B.dylib

    Trace/BPT trap

    1. hawkwing:~ andy$ ls -las /usr/lib/libSystem.B.dylib
      15424 -r-xr-xr-x 1 root wheel 7895472 28 Jan 2010 /usr/lib/libSystem.B.dylib
  • Alex (via GPGTools)

    Alex (via GPGTools) March 22nd, 2011 @ 09:26 PM

    • Assigned user changed from “Alex (via GPGTools)” to “Benjamin Donnachie”

    @Benjamin: you've more experiences...

  • Alex (via GPGTools)

    Alex (via GPGTools) March 23rd, 2011 @ 11:45 AM

    • Assigned user changed from “Benjamin Donnachie” to “Alex (via GPGTools)”
  • Andrew Long

    Andrew Long March 23rd, 2011 @ 08:41 PM

    Sorry, no difference -

    Hawkwing:~ andy$ ls -las which gpg
    8 lrwxr-xr-x 1 root admin 26 23 Mar 19:30 /usr/local/bin/gpg -> /usr/local/MacGPG1/bin/gpg
    Hawkwing:~ andy$ gpg --version
    dyld: lazy symbol binding failed: Symbol not found: _fopen$UNIX2003
    Referenced from: /usr/local/bin/gpg Expected in: /usr/lib/libSystem.B.dylib

    dyld: Symbol not found: _fopen$UNIX2003
    Referenced from: /usr/local/bin/gpg Expected in: /usr/lib/libSystem.B.dylib

    Trace/BPT trap

    I installed the new version from the download, then uninstalled it with the uninstaller to clean up the installation. I then re-ran the installation and tried the 'gpg --version' again.

    Regards, Andy

    PS - I tried to send this info in a reply to the mail from lighthouse, but got the following reply from lighthouse -

    We received an email from this address that had problems being processed
    into a new Lighthouse ticket:

    You do not have access to post to the MacGPG1 project.

  • Benjamin Donnachie

    Benjamin Donnachie March 23rd, 2011 @ 09:41 PM

    This was based upon the MacGPG howto document:

    
    export MACOSX_DEPLOYMENT_TARGET=10.4
    export CFLAGS="-mmacosx-version-min=10.4 -isysroot
    /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
    
    
    ./configure --enable-static=no --disable-endian-check
    --disable-dependency-tracking --disable-asm
    
    sudo make -e prefix=/Volumes/Home/Desktop/MacGPG2/2.0.11/working/XXX install
    
    Gettext depends upon pth and libtool
    libiconv depends upon gettext  (Circular dependency)
    
    Compile libiconv
    
    Compile pth
    replace libtool:
    CC -dynamiclib
    with CC -dynamiclib -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
    i386 -arch ppc
    
    Compile gettext
    Configure and compile iconv again.
    Compile libusb (depends on pth)  Patch libtool as above.
    Compile libgpg-error
    Compile libgcrypt - /configure --enable-static=no
    --disable-endian-check --disable-dependency-tracking --disable-asm
    
    Compile others
    GnuPG apply gpg-agent patch and edit resulting file to remove
    use_standard_socket,
    
    ./configure --enable-static=no --disable-endian-check
    --disable-dependency-tracking --disable-asm
    --with-pinentry-pgm=/usr/local/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
    

    Note: For MacGPG v1.4.x all libraries should be compiled statically
    and, therefore, do not require distributing with the binaries.

    I will update the ticket if I find the original document.

  • Andrew Long

    Andrew Long March 23rd, 2011 @ 11:07 PM

    THis is just a random stab in th dark, as it's a long time since a programmed for a *nix box, but what struck me was that the error message implies that the program is looking for a Unix variant of the fopen routine in the library; I know that OS X is a &nix type OS, ut I thought there were sufficient differences that you needed to compile against a target of 'mac' rather than 'unix' still...?

  • Alex (via GPGTools)

    Alex (via GPGTools) March 23rd, 2011 @ 11:08 PM

    @Benjamin: Thank you - my build script is based on http://macgpg.sourceforge.net/docs/howto-build-gpg-osx.txt.asc. I added some more flags.

    @Andrew: Could you please test the next version? Sorry, but I've no PPC around for testing: https://github.com/downloads/GPGTools/MacGPG1/MacGPG1-1.4.11-4.dmg

  • Alex (via GPGTools)

    Alex (via GPGTools) March 23rd, 2011 @ 11:19 PM

    • Tag set to “”
    • Assigned user changed from “Alex (via GPGTools)” to “Benjamin Donnachie”

    Sorry, no change there either.

    Andy

  • Benjamin Donnachie

    Benjamin Donnachie March 23rd, 2011 @ 11:39 PM

    • Tag cleared.

    Looks like it's linking to the wrong system libraries to me.

    Does your build script have the following?

    export MACOSX_DEPLOYMENT_TARGET=10.4
    export CFLAGS="-mmacosx-version-min=10.4 -isysroot
    /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
    

    Otherwise it will link to the 10.6 libraries.

  • Alex (via GPGTools)

    Alex (via GPGTools) March 23rd, 2011 @ 11:42 PM

    The script: https://github.com/GPGTools/MacGPG1/blob/master/build-script.sh
    Further information:

    otool -L build/MacGPG1/bin/gpg
    build/MacGPG1/bin/gpg:
        /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.42.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
        /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 625.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10)
    
  • Alex (via GPGTools)
  • Benjamin Donnachie

    Benjamin Donnachie March 24th, 2011 @ 12:12 AM

    I have a PPC for testing but it will have to wait until I return home.

  • Andrew Long
  • Alex (via GPGTools)
  • steve

    steve February 13th, 2013 @ 10:27 PM

    • Tag set to macgpg1
    • Importance cleared.
  • steve

    steve August 14th, 2013 @ 01:30 PM

    • State changed from “resolved” to “released”
    • Tag cleared.
    • Assigned user cleared.
    • Importance set to “Low”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Attachments

Referenced by

Pages