Article delegate-en/4716 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Delegate - AIX 6.1 Compilation Errors
17 Dec 2009 02:28:52 GMT Antonio Hernandez Jr <payjabdyi-bfkmicav4g3r.ml@ml.delegate.org>


Hi Yutaka,,

It says of "conflicting types for 'thread_wait'".


$ nm -A maker/*.o | grep Thread
maker/nothread.o: .getThreadIds        T           0
maker/nothread.o: ThreadExit           D          76
maker/nothread.o: ThreadFork           D          60
maker/nothread.o: ThreadId             D          68
maker/nothread.o: ThreadWait           D          72
maker/nothread.o: ThreadYield          D          64
maker/nothread.o: WithThread           D          56
maker/nothread.o: getThreadIds         D          44
maker/nothread.o: getThreadIds         d          44          12


$ gcc -c -O2 -DQSC -Igen -Iinclude maker/__pthread_create.c
maker/__pthread_create.c:147: error: conflicting types for 'thread_wait'
/usr/include/sys/thread.h:1002: error: previous declaration of
'thread_wait' was here

$ gcc -c -O2 -DQSC -Igen -Iinclude maker/__pthread_kill.c
maker/__pthread_kill.c:22: error: conflicting types for 'thread_kill'
/usr/include/sys/thread.h:972: error: previous declaration of 'thread_kill'
was here

Regards,

Antonio "Mark" Hernandez, Jr.




                                                                           
             feedback@delegate                                             
             .org (Yutaka                                                  
             Sato)                                                      To 
                                       feedback@delegate.org               
             2009/12/17 10:19                                           cc 
                                       Antonio Hernandez                   
                                       Jr/Japan/Contr/IBM@IBMJP            
             Please respond to                                     Subject 
             feedback@delegate         Re: [DeleGate-En] Delegate - AIX    
                   .org                6.1 Compilation Errors              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi,

In message
<_A4714@delegate-en.ML_> on
12/17/09(09:46:55)
you Antonio Hernandez Jr <payjabdyi-bfkmicav4g3r.ml@ml.delegate.org> wrote:
 |$ grep pthread maker/*list
 |__pthread_create.o
 |_-pthread_create.o
 |__pthread_kill.o
 |
 |$ ls -l maker/*pthread*
 |-rw-r--r--    1 guest server            64 Aug 16 15:25
 |maker/_-pthread_create.c
 |-rwxr-xr-x    1 guest server          5085 Aug 25 19:24
 |maker/__pthread_create.c
 |-rw-r--r--    1 guest server          2041 Aug 17 14:12
 |maker/__pthread_kill.c
 |-rw-r--r--    1 guest server           165 Aug 16 15:25
 |maker/pthread_kill.c

So the problem is why these source files referring the pthread functions
failed to be compiled.
For example, the man page of pthread_create() on AIX seems to show that
it is a very usual pthread_create (
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.basetechref/doc/basetrf1/pthread_create.htm
)
The result of the following command may show us hints.

  % nm -A maker/*.o | grep Thread
  % gcc -c -O2 -DQSC -Igen -Iinclude maker/__pthread_create.c
  % gcc -c -O2 -DQSC -Igen -Iinclude maker/__pthread_kill.c

It seems that LWP on AIX are partially used, but it is not supported
in recent versions and pthread must be used instead...

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller



  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V