Re: dillo configuration on AIX
On Wed, 7 Jan 2004, Riccardo wrote:
Hello,
Hi!
I have a question whichmight be a short configuration question. I'm trying to build dillo 0.7.3 on AIX 4.2.1 using gcc. I already installed and tested gtk and pth.
Pth is different from pthread (POSIX threads).
when configuring dillo it says it can't find pthreads. In fact it tries -pthread. I'm sure that AIX has native threads,
Yes, but our configure doesn't detect them yet. Although this should not be hard to do: Get the detected target system type string from the configure script. That is, near the third line of output, it says something like: checking target system type... i586-pc-linux-gnu Then add that option to "configure.in" inside the case statement for pthreads. Something like: [...] case $target in *-*-linux*|*-*-solaris*) AC_CHECK_LIB(pthread, pthread_create) ;; + *-*-aix*) + AC_CHECK_LIB(pthreads, pthread_create) + ;; [...] Then follow the directives at: http://home.t-online.de/home/Andreas.Steinmetz/unix/pthreads.html That is basically adding a call to pthread_init() somewhere in main() in dillo.c. Run autoreconf or autogen.sh, configure, make, tweak and send some feedback! :-)
but in any case -lpth should be used to use libpth. I'm not an expert with AIX development, I'm using version 4.2.1. Can dillo be linked against lpth? other projects usually have a configure option top select the threading model.
Against Pth, no. Cheers Jorge.-
Hi,
I have a question whichmight be a short configuration question. I'm trying to build dillo 0.7.3 on AIX 4.2.1 using gcc. I already installed and tested gtk and pth.
FWIW, I used to run dillo 0.6.6 on AIX 4.3.2 quite extensively.
Pth is different from pthread (POSIX threads).
I did not install pth either.
when configuring dillo it says it can't find pthreads. In fact it tries -pthread. I'm sure that AIX has native threads,
http://home.t-online.de/home/Andreas.Steinmetz/unix/pthreads.html
The odd thing is contrary to the above explanation, it worked for me with gcc and -pthread (and not -pthreads). I'm not quite sure which version of gcc I used back then. But gcc can (and should be) configured to do the right thing when called with -pthread. Using xlc instead of gcc however, was quite a bit of a mess ... I got it compiled somehow :-) ... but would need to look up the details. I beleive the explanations given in the web page refer to xlc. Now, all that does not really help the original poster :-) ... what would help is some more detailed output, maybe some portions of config.log and to some degree the output of gcc -v lslpp -l | egrep -i 'thread|xlc|gcc' and that possibly on-list ;-) Cheers, Andreas -- **************************** NEW ADDRESS ****************************** Hamburger Sternwarte Universitaet Hamburg Gojenbergsweg 112 Tel. ++49 40 42891 4016 D-21029 Hamburg, Germany Fax. ++49 40 42891 4198
participants (2)
-
Andreas Schweitzer
-
Jorge Arellano Cid