AIX

AIX

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

 View Only
  • 1.  POSIX thread problem

    Posted Sun February 19, 2006 06:20 AM

    Originally posted by: SystemAdmin


    hello aixperts,

    I am trying to configure lam on an AIX5L v5.3. Lam was working fine too but because of some problems I had to delete it. Then only swithced off SMT and now when I am trying to configure lam it says:
    checking for working POSIX threads package... no

    Also all the compilers too cannot be linked to POSIX i.e.:
    checking if F77 compiler and POSIX threads work with -mt... no
    checking if F77 compiler and POSIX threads work with -mthreads... no
    checking if C compiler and POSIX threads work with -lpthreads... no
    checking if C compiler and POSIX threads work with -llthread... no
    checking if C compiler and POSIX threads work with -lpthread... no
    checking if C++ compiler and POSIX threads work with -lpthreads... no
    checking if C++ compiler and POSIX threads work with -llthread... no
    checking if C++ compiler and POSIX threads work with -lpthread... no
    checking if F77 compiler and POSIX threads work with -lpthreads... no
    checking if F77 compiler and POSIX threads work with -llthread... no
    checking if F77 compiler and POSIX threads work with -lpthread...

    Please tell me how to enable the POSIX package in the machine, I have tried restarting the machine but of no help.

    Eagerly waiting for your reply,
    MzZt.


  • 2.  AIX does POSIX thread problem - always enabled

    Posted Wed February 22, 2006 01:02 PM

    Originally posted by: nagger


    AIX has had POSIX threads for years and it can't be switched off, so you are not going to find any way of switching it on. Why would you ever have it swithed off?

    It is Linux systems that have had to catch up and recently reimplemented POSIX thread and I heard IBM helped out on that development.

    What you have is a build problem with the application.
    I think your application build process is assuming old sytle Linux POSIX threads support.
    On AIX libraries ending with_r are recursive = allow multiple threads to call them at the same time and /lib/threads directory has the pthread libraries.

    The IBM Redbook
    has a section on POSIX threads on AIX that might help

    One final thought, if you are using a machine that can run Logical Partitions then you could try running Linux on POWER in a partition. As it is Linux it is far simpler to recompile Open Source (this usually means Linux built) applications as it is native Linux and GCC compilers.