AIX

AIX

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


#Power
 View Only
  • 1.  gpg pthread make error

    Posted Mon March 31, 2008 10:33 AM

    Originally posted by: SystemAdmin


    When trying to compile gnupg 1.4.8 I receive parsing errors related to pthread.h. This is an AIX 5.3 host with gcc-4.0.0-1 installed via rpm. Related RPMS installed are gcc-c++, libgcc, libstdc++, libstdc++-devel. While disabling threading solves the problem are there any other work arounds? I've found several others experiencing similar problems but never see a resolution. Thanks!
    Output
    ./configure gives the following warning:

    checking pthread.h usability... no
    checking pthread.h presence... yes
    configure: WARNING: pthread.h: present but cannot be compiled
    configure: WARNING: pthread.h: check for missing prerequisite headers?
    configure: WARNING: pthread.h: see the Autoconf documentation
    configure: WARNING: pthread.h: section "Present But Cannot Be Compiled"
    configure: WARNING: pthread.h: proceeding with the preprocessor's result
    configure: WARNING: pthread.h: in the future, the compiler will take precedence
    configure: WARNING: ## ________________________________ ##
    configure: WARNING: ## Report this to bug-gnupg@gnu.org ##
    configure: WARNING: ## ________________________________ ##
    checking for pthread.h... yes
    checking for pthread_kill in -lpthread... yes
    checking for pthread_rwlock_t... no
    checking for multithread API to use... posix
    make dies with:
    $ make
    make all-recursive
    Making all in m4
    Target "all" is up to date.
    Making all in intl
    gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -D_THREAD_SAFE -g -O2 -Wall -Wno-pointer-sign -fvisibility=hidden bindtextdom.c
    In file included from lock.h:71,
    from bindtextdom.c:41:
    /usr/include/pthread.h:596: error: parse error before '*' token
    /usr/include/pthread.h:599: error: parse error before '*' token
    /usr/include/pthread.h:603: error: parse error before '*' token
    /usr/include/pthread.h:606: error: parse error before '*' token
    /usr/include/pthread.h:609: error: parse error before '*' token
    /usr/include/pthread.h:612: error: parse error before '*' token
    /usr/include/pthread.h:615: error: parse error before '*' token
    /usr/include/pthread.h:618: error: parse error before '*' token
    /usr/include/pthread.h:621: error: parse error before '*' token
    /usr/include/pthread.h:625: error: parse error before '*' token
    /usr/include/pthread.h:628: error: parse error before '*' token
    /usr/include/pthread.h:639: error: parse error before '*' token
    /usr/include/pthread.h:643: error: parse error before '*' token
    /usr/include/pthread.h:666: error: parse error before '*' token
    /usr/include/pthread.h:669: error: parse error before '*' token
    /usr/include/pthread.h:672: error: parse error before '*' token
    /usr/include/pthread.h:675: error: parse error before '*' token
    /usr/include/pthread.h:678: error: parse error before '*' token
    /usr/include/pthread.h:686: error: parse error before '*' token
    /usr/include/pthread.h:689: error: parse error before '*' token
    /usr/include/pthread.h:692: error: parse error before '*' token
    /usr/include/pthread.h:695: error: parse error before '*' token
    /usr/include/pthread.h:703: error: parse error before '*' token
    /usr/include/pthread.h:707: error: parse error before '*' token
    /usr/include/pthread.h:710: error: parse error before '*' token
    make: 1254-004 The error code from the last command is 1.
    #AIX-Forum


  • 2.  Re: gpg pthread make error

    Posted Wed April 02, 2008 05:37 AM

    Originally posted by: nagger


    Why not just download the gpg from http://www.perzl.org/aix/

    If you must recompile due to a company policy or similar ....
    I think GCC 4.0.0 is getting old and many compile errors can be fixed with later compilers.

    Any chance you could update to GNC GCC to 4.2.3?
    You can find a RPM to install at http://www.perzl.org/aix/

    Michael is a friend of mine, so I can recommend his repository.

    thanks N
    #AIX-Forum