Pthread compile problem

Ask a Question related to AIX, Design and Development.

  1. #1

    Default Pthread compile problem

    I'm using gcc (dl-ed from Bull) to compile a program:
    ****
    gcc -o fftosql fftosql.o $II_SYSTEM/ingres/lib/libingres.a -lm -lc -lc_r -mthreads -bnoquiet -bloadmap
    ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    ****
    cc return similar:
    ****
    /usr/vac/bin/cc -o fftosql fftosql.o -lm -lc_r -lc -lpthreads $II_SYSTEM/ingres/lib/libingres.a
    ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    ****

    I'm running AIX 4.3.3 ML11
    i have bos.rte.libpthreads 4.3.3.80

    Any idea about for what i should be looking?



    --
    be safe.
    flip



    Philip Edward Lewis Guest

  2. Similar Questions and Discussions

    1. pthread mutex and data alignment
      Environment: AIX 4.3.3 - RS6000 H80 - VAC 5.0.2.0 Has anyone had data alignment problems when using pthreads while compiling a program with the...
    2. Compile/Linking problem
      Hello, So it seems that there still is an incompatibility between GD and libpng-1.2.x... fine So I installed into a dedicated directory an...
    3. #24983 [Opn->WFx]: pfpro module requires -pthread on FreeBSD
      ID: 24983 Updated by: sniper@php.net Reported By: peter at guts dot nl -Status: Open +Status: Wont...
    4. #24983 [Opn]: pfpro module requires -pthread on FreeBSD
      ID: 24983 User updated by: peter at guts dot nl Reported By: peter at guts dot nl Status: Open Bug Type: ...
    5. #24983 [NEW]: pfpro module requires -pthread on FreeBSD
      From: peter at guts dot nl Operating system: FreeBSD PHP version: 4.3.2 PHP Bug Type: Compile Failure Bug description: ...
  3. #2

    Default Re: Pthread compile problem

    Philip Edward Lewis <flip+@andrew.cmu.edu> wrote:
    PEL> I'm using gcc (dl-ed from Bull) to compile a program:
    PEL> ****
    PEL> gcc -o fftosql fftosql.o $II_SYSTEM/ingres/lib/libingres.a -lm -lc -lc_r -mthreads -bnoquiet -bloadmap
    PEL> ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    PEL> ****
    PEL> cc return similar:
    PEL> ****
    PEL> /usr/vac/bin/cc -o fftosql fftosql.o -lm -lc_r -lc -lpthreads $II_SYSTEM/ingres/lib/libingres.a
    PEL> ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    PEL> ****

    PEL> I'm running AIX 4.3.3 ML11
    PEL> i have bos.rte.libpthreads 4.3.3.80

    PEL> Any idea about for what i should be looking?

    Those functions don't even exist on AIX.

    Regards,

    Nicholas

    --
    "Why shouldn't I top-post?" [url]http://www.aglami.com/tpfaq.html[/url]
    "Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]
    Nicholas Dronen Guest

  4. #3

    Default Re: Pthread compile problem

    Nicholas Dronen <ndronen@io.frii.com> writes:
    >PEL> gcc -o fftosql fftosql.o $II_SYSTEM/ingres/lib/libingres.a -lm -lc -lc_r -mthreads -bnoquiet -bloadmap
    >PEL> ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    >Those functions don't even exist on AIX.
    They worked (are working) on 4.2.1.

    This is one of the reasons we still have 4.2.1 boxes around.



    --
    be safe.
    flip
    Verso l'esterno! Verso l'esterno! Deamons di ignoranza.


    Philip Edward Lewis Guest

  5. #4

    Default Re: Pthread compile problem

    >>PEL> gcc -o fftosql fftosql.o $II_SYSTEM/ingres/lib/libingres.a -lm -lc -lc_r -mthreads -bnoquiet -bloadmap
    >>PEL> ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    >>Those functions don't even exist on AIX.
    >
    > They worked (are working) on 4.2.1.
    >
    > This is one of the reasons we still have 4.2.1 boxes around.
    >
    Take a look in the VAC 6.0 compiler documentation about the different
    invocations of the compiler driver (cc, cc_r7 , cc_r4...)

    And /etc/vac.cfg.

    AFAIK they set some macros for compatibility with DCE threads.
    Not sure, just an idea...

    ---
    Ui

    Ulrich--nO--(dot)-sPAM--Link Guest

  6. #5

    Default Re: Pthread compile problem

    Philip Edward Lewis wrote:
    > Nicholas Dronen <ndronen@io.frii.com> writes:
    >
    >>PEL> gcc -o fftosql fftosql.o $II_SYSTEM/ingres/lib/libingres.a -lm -lc -lc_r -mthreads -bnoquiet -bloadmap
    >>PEL> ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    >>Those functions don't even exist on AIX.
    >
    > They worked (are working) on 4.2.1.
    >
    > This is one of the reasons we still have 4.2.1 boxes around.
    That's a draft 7 symbol. The default on current levels of AIX
    is draft 10. The draft 7 module in libpthreads is load-only,
    meaning that you're not able to link against it.

    That said, I think there's a strip option in 4.3.3 that allows you
    to set/unset the LOADONLY bit (dump -ov /usr/lib/libpthreads.a and look
    at shr.o). Try -e/-E. I know this works in 5.1. Then use your
    modified libpthreads for linking.

    Or port the code to draft 10.

    --
    Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
    __________________________________________________ ______________________

    Gary R. Hook Guest

  7. #6

    Default Re: Pthread compile problem

    "Gary R. Hook" <nospam@nospammers.net> writes:
    > That said, I think there's a strip option in 4.3.3 that allows you
    > to set/unset the LOADONLY bit (dump -ov /usr/lib/libpthreads.a and look
    > at shr.o). Try -e/-E.
    The version of strip from bos.rte.bind_cmds:4.3.3.77 has '-e/-E' ...

    This is good to know: I was looking for the option to turn LOADONLY
    on in the 'ld' (because I need to relink some LOADONLY modules, and
    *leave* them LOADONLY), but didn't find it there. Looking in 'strip'
    didn't occur to me. I ended up with a perl script that simply pokes
    the right value into the executable.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Paul Pluzhnikov Guest

  8. #7

    Default Re: Pthread compile problem

    Quote Originally Posted by Philip Edward Lewis View Post
    I'm using gcc (dl-ed from Bull) to compile a program:
    ****
    gcc -o fftosql fftosql.o $II_SYSTEM/ingres/lib/libingres.a -lm -lc -lc_r -mthreads -bnoquiet -bloadmap
    ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    ****
    cc return similar:
    ****
    /usr/vac/bin/cc -o fftosql fftosql.o -lm -lc_r -lc -lpthreads $II_SYSTEM/ingres/lib/libingres.a
    ld: 0711-317 ERROR: Undefined symbol: pthread_mutexattr_default
    ****

    I'm running AIX 4.3.3 ML11
    i have bos.rte.libpthreads 4.3.3.80

    Any idea about for what i should be looking?



    --
    be safe.
    flip
    Try to stop looking at men
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139