Ethereal-dev: Re: [ethereal-dev] Re: [ethereal-users] Problems compiling 0.7.7 under AIX 4.3.2
On Fri, Nov 05, 1999 at 01:42:44PM -0600, Guy Harris wrote:
>
>
> Hmm.
>
> Looks suspiciously similar to the previous error; have you tried
> recompiling GTK+ with "xlc_r"?
I believe glib and gtk+ should both be compiled with xlc_r. I haven't
compiled on AIX in a long time, but I think it's because glib is including
pthread stuff, so the re-entrant C library, libc_r, is needed.
Can you get to http://9.53.35.177:80/techlib/manuals/adoclib/aixprggd/genprogc/multi.htm
I work in Austin, for Tivoli/IBM, so I can see IBM's intranet. If you can't
get to that page, here's what it says:
Compiler Invocation
When compiling a multi-threaded program, you should invoke the C compiler using one of the following commands:
xlc_r
Invokes the compiler with default language level of ansi.
cc_r
Invokes the compiler with default language level of extended.
These commands ensure that the adequate options and libraries are used to be compliant with the X/Open Version 5 Standard. The POSIX Threads
Specification 1003.1c is a subset of the X/Open Specification.
The following libraries are automatically linked with your program when using these commands:
libpthreads.a
Threads library.
libc.a
Standard C library
For example, the following command compiles the foo.c multi-threaded C source file and produces the foo executable file:
cc_r -o foo foo.c
See the cc command for more information about C For AIX.
--gilbert