AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

gpg for AIX-5.3?

  • 1.  gpg for AIX-5.3?

    Posted Tue October 31, 2006 10:48 AM

    Originally posted by: SystemAdmin


    Has gpg (Gnu Pretty-Good privacy) been ported to AIX-5.3?

    Has any other Open-PGP (RFC2440) compliant tools been ported to AIX-5.3?

    What Open-PGP (RFC2440) compliant tools do people (dis)recommend?

    TIA,
    #AIX-Forum


  • 2.  Re: gpg for AIX-5.3?

    Posted Wed November 01, 2006 07:22 AM

    Originally posted by: SystemAdmin


    I'm not sure how much "porting" is required for these things. Why not just compile them from source?
    #AIX-Forum


  • 3.  Re: gpg for AIX-5.3?

    Posted Wed November 01, 2006 11:30 AM

    Originally posted by: SystemAdmin


    Thank you for the suggestion and report of success.

    Porting from source is doable,
    but depending on dependencies can be very time consuming.
    A pointer to an existing port can save a lot of time and trouble
    for packages with many or difficult dependencies.
    I don't yet know how easy or hard it is to build gnupg from source.
    I downloaded gnupg source from a trusted source,
    and will try to build it today (or soon).

    Thank you,

    #AIX-Forum


  • 4.  Re: gpg for AIX-5.3?

    Posted Wed November 01, 2006 07:33 AM

    Originally posted by: jeffschaller


    I compiled GPG 1.4.5 on AIX 5.3 (TL 4) just fine.
    #AIX-Forum


  • 5.  Re: gpg for AIX-5.3?

    Posted Mon November 13, 2006 04:41 PM

    Originally posted by: SystemAdmin


    would you please be kind to post the general steps for a totally newbie to be able to install/deploy GPG on AIX5.3
    thank you
    #AIX-Forum


  • 6.  Re: gpg for AIX-5.3?

    Posted Tue November 14, 2006 08:21 AM

    Originally posted by: jeffschaller


    > would you please be kind to post the general steps for a totally
    > newbie to be able to install/deploy GPG on AIX5.3

    I compiled GPG with the fairly standard configure, make, and make install commands. About the only unique thing I did was to specify a separate application root directory using the PREFIX variable in the configure step. Deploying the package will probably depend more on your local requirements than anything else. I imagine you could create a bff or RPM package fairly easily (although I did not).

    Because of the nature of the application (encryption and decryption), you'll want to verify that you downloaded the correct source file by verifying the checksum of the file before unpacking it.
    #AIX-Forum


  • 7.  Re: gpg for AIX-5.3?

    Posted Tue November 14, 2006 05:15 PM

    Originally posted by: SystemAdmin


    jeffschaller,

    > I compiled GPG with the fairly standard configure,
    > make, and make install commands.

    Which compiler (and version) did you use?
    xlC-6?
    g++-3.3.2?
    g++-4.0.0?
    ???

    If you used g++-4.0.0, how did you install it?

    After installing g++-4.0.0 from ibm (http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html)
    I am unable to compile and link even a 3-line hello world program.
    It reports "ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_t
    raits<char> >&, char const*) ..."

    TIA,
    #AIX-Forum


  • 8.  Re: gpg for AIX-5.3?

    Posted Wed November 15, 2006 07:16 AM

    Originally posted by: jeffschaller


    > Which compiler (and version) did you use?

    I used gcc-3.4.3, which I had previously compiled with xlC.
    #AIX-Forum


  • 9.  Re: gpg for AIX-5.3?

    Posted Tue November 14, 2006 06:57 PM

    Originally posted by: SystemAdmin


    raoATT,

    > would you please be kind to post the general steps
    > for a totally newbie to be able to install/deploy GPG
    > on AIX5.3

    I would recommend that you start with hello.rpm (available from you favorite
    archive, e.g. http://www.pbone.net/) to learn installation procedures.
    You might also consider reading the Art of Unix Programming by Eric Raymond
    (available at Borders and better bookstores, and http://www.faqs.org/docs/artu/)

    In general (the following is not sufficient)
    1. As a priveleged user, create a new directory to be used exclusively for
    the new package.
    2. Expand the package in that new directory as an unpriveleged user.
    3. Build the package in that new directory as an unpriveleged user.
    4. Test the package as an unpriveleged user.
    5. As a priveleged user, create symlinks from public locations
    (e.g. /opt/bin) into the installed directory.
    6. (When no longer needed) As a priveleged user, remove the directory created
    in step 1, and remove all symlinks into the directory created in step 5.

    Several tools have evolved to streamline the above. The two most common are
    autoconf (a.k.a. ./configure) and imake (a.k.a. x-make).

    The File Hierarchy Standard (e.g.http://www.pathname.com/fhs/2.2/) recommends
    /opt/<vendor-or-package-name> for the empty directory created in step 1.

    autoconf uses a variant on './configure --prefix=/opt/<vendor-or-package-name>
    for step 2. imake uses a variant on 'TOP=/opt/<vendor-or-package-name> imake'
    for step 2.

    Most packages use 'make clean; make all' for step 3, and 'make test' for step 4.

    Most packages uses 'make install' for step 5.
    The 'make install' of many packages uses a tool called 'install'.
    'install' lets a weakly priveleged user perform pre-approved installation
    tasks (e.g. creating a non-existent empty directory,
    creating new (and non-shadowing) symlinks from public areas into a directory.

    Step 6 is often performed with 'install -r' or a variant of
    chown -R deleteme /opt/<vendor-or-package-name>
    find <public-places> -follow -user deleteme -exec rm {} ';'

    Hopefully helpful,

    #AIX-Forum


  • 10.  Re: gpg for AIX-5.3?

    Posted Tue November 28, 2006 01:19 PM

    Originally posted by: SystemAdmin


    Greetings,
    I was wondering if there is a complete summary on this issue?
    We are hoping to install gnupg-2.0.0 - It has prerequisites and corequisites

    Any leads appreciated. Note, of course I looked on aixpds first...

    Thanks
    _root@sre_unit_[/]:> gcc --version
    gcc (GCC) 4.1.0

    libgpg-error (ftp://ftp.gnupg.org/gcrypt/libgpg-error/) DONE
    Compiling libgcrypt (ftp://ftp.gnupg.org/gcrypt/libgcrypt/)
    I get these errors
    ld: 0711-317 ERROR: Undefined symbol: .gcry_prime_check
    ld: 0711-317 ERROR: Undefined symbol: .gcry_prime_group_generator
    ld: 0711-317 ERROR: Undefined symbol: .gcry_prime_release_factors
    ld: 0711-317 ERROR: Undefined symbol: .gcry_mpi_release
    ld: 0711-317 ERROR: Undefined symbol: .gcry_mpi_add_ui
    ld: 0711-317 ERROR: Undefined symbol: .gcry_prime_generate
    ld: 0711-317 ERROR: Undefined symbol: .gcry_mpi_dump
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
    more information.
    collect2: ld returned 8 exit status
    make: 1254-004 The error code from the last command is 1.
    Compiling libksba (ftp://ftp.gnupg.org/gcrypt/libksba/)
    I get errors like these:
    collect2: ../gl/.libs/libgnu.a: not a COFF file
    make: 1254-004 The error code from the last command is 1.
    Compiling libassuan (ftp://ftp.gnupg.org/gcrypt/libassuan/) DONE

    Compiling ftp://ftp.gnupg.org/gcrypt/pinentry/
    I get a bunch of these:
    pinentry.c:505: warning: pointer targets in
    passing argument 2 of 'strcpy_escaped' differ in signedness

    #AIX-Forum


  • 11.  Re: gpg for AIX-5.3?

    Posted Fri January 19, 2007 09:19 AM
      |   view attached

    Originally posted by: SystemAdmin


    pachai,

    I regret it has taken me so long to respond.
    > We are hoping to install gnupg-2.0.0 - It has prerequisites and corequisites

    I am only aware of glibc required to use, and gcc required to build.
    Please let me know of other prerequisites.
    > I was wondering if there is a complete summary on this issue?

    I wrote a spec file (rpm build script), included below.
    Though not a complete summary, due to limited testing,
    it should answer most of your questions.

    Before using this in a secure situation, check the md5sum/sha1sum/...
    of the .tar.gz with a trusted source (e.g. http://www.gnupg.org/).

    Check the PATH/CPATH/LIBPATH/LD_LIBRARY_PATH settings that appear
    in the %build section of the included .spec file.
    As I am unfamiliar with IBM standard, most of these environment settings
    are unnecessary, and a few may be problematic,
    but some were required for our successful installation.
    If you simply remove all the settings and attempt to build,
    the error messages will probably indicate what variables
    must be set from your environment.
    I would appreciate learning the complete minimum settings for IBM standard.

    I don't expect any debugging to be necessary except to,
    tweak for versions of gnupg other than 1.4.5, and
    remove unnecessary settings.

    To use: (summary: detail according to local sysadmin policy)
    1. Install rpm support.
    2. cp the spec below into /usr/src/packages/SPECS/gnupg.spec
    3. cp gnupg-%{version}.tar.gz from a trusted source
    into /usr/src/packages/SOURCES .
    4. Change Version: and Release: appropriately.
    5. rpm -ba /usr/src/packages/SPECS/gnupg.spec
    6. Debug as necessary.
    7. cp /usr/src/packages/SRPMS/gnupg-* and
    /usr/src/packages/RPMS/*/gnupg-* to /opt/freeware/gnupg/derived/
    8. rpm -i /opt/freeware/gnupg/derived/gnupg-*.aix*.rpm

    Hopefully helpful,
    #AIX-Forum

    Attachment(s)



  • 12.  Re: gpg for AIX-5.3?

    Posted Thu July 05, 2007 11:28 AM

    Originally posted by: SystemAdmin


    I'm curious how you solved the linking issue?

    I'm in the middle of trying to compile libgcrypt-1.2.4 and get the same errors during test-suite linking, and having all sorts of headaches.

    This system is AIX 5.1 (up-to-date as much as possible, but it's an older Microchannel/PCI machine...) running a built version of gcc 4.1.2 (compiled with a previous version of gcc). The make system is all GNU.

    Everything except for the test-suite actually compiles and links. The library is created, and a "make -k" will go all the way through, actually giving something to install. The problem is that the above mentioned symbols don't make it into the final library, and the test-suite can't link correctly as a result of that.

    I've run a diff between a Darwin ./configure and the AIX box and found minimal changes between several of the Makefiles- nothing to change the configuration of the linker so far as I can tell.

    I've had already to do some standing-on-my-head to get this far: the ./configure line must include a CC="gcc -mcpu=604e -mtune=604e", or I get errors on compile of one of the modules.

    The problem appears to be "not enough feedback" to the developers of the library, because I can get a good build with the GNU (Binutils) ld (NOT a dynamic library, but forced static for the limitations of GNU ld on AIX)


    #AIX-Forum


  • 13.  Re: gpg for AIX-5.3?

    Posted Tue July 31, 2007 09:59 AM

    Originally posted by: SystemAdmin


    You're talking about 2 different verions. 1.4.7 will compile and 2.x would not due to problems with libgcrypt linking.
    GnuPG 2.0 depends on the following packages:

    libgpg-error (ftp://ftp.gnupg.org/gcrypt/libgpg-error/)
    libgcrypt (ftp://ftp.gnupg.org/gcrypt/libgcrypt/)
    libksba (ftp://ftp.gnupg.org/gcrypt/libksba/)
    libassuan (ftp://ftp.gnupg.org/gcrypt/libassuan/)

    where 1.4.x doesn't.
    #AIX-Forum