Ask a Question related to AIX, Design and Development.
-
Philip Edward Lewis #1
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
-
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... -
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... -
#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... -
#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: ... -
#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: ... -
Nicholas Dronen #2
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
-
Philip Edward Lewis #3
Re: Pthread compile problem
Nicholas Dronen <ndronen@io.frii.com> writes:
They worked (are working) on 4.2.1.>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.
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
-
Ulrich--nO--(dot)-sPAM--Link #4
Re: Pthread compile problem
>>PEL> gcc -o fftosql fftosql.o $II_SYSTEM/ingres/lib/libingres.a -lm -lc -lc_r -mthreads -bnoquiet -bloadmap
Take a look in the VAC 6.0 compiler documentation about the different>>>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.
>
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
-
Gary R. Hook #5
Re: Pthread compile problem
Philip Edward Lewis wrote:
That's a draft 7 symbol. The default on current levels of AIX> 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.
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
-
Paul Pluzhnikov #6
Re: Pthread compile problem
"Gary R. Hook" <nospam@nospammers.net> writes:
The version of strip from bos.rte.bind_cmds:4.3.3.77 has '-e/-E' ...> 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.
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
-
Unregistered #7Unregistered Guest



Reply With Quote


