I believe that the problem with the PN domain under Linux was a
compilation problem, but this was so long ago, I'm not really sure.

On 98/03/26 I folded the following changes in from Wolfgang Reimer
into mk/config-linux.mk:
   change optimization flags to get better performance with Pentium
   - add -D_REENTRANT to ARCHFLAGS (necessary for pthtreads)
   - add code to determine setting for variables INCLUDE_MATLAB,
   INCLUDE_MATHEMATICA, and INCLUDE_PN_DOMAIN

I poked around in my logs, but did not find any further explanation.

I'm surprised that adding -lpthread to the link command is causing a
crash, it must be that some function that is usually pulled in from
another library at runtime is being pulled in from the pthread library
instead.

The way I would track down your error message is to create a ptcl
binary with debugging and then run ptcl under a debugger such as gdb.
This would at least tell you where the failure is occuring.

Threads under C are somewhat difficult to work with.  
You may want to consider using Ptolemy II and Java threads instead.
Several years ago, I found it very very difficult to port threaded C
code between platforms.  This situation has probably improved, but
I would still look at Java threads instead.

-Christopher

--------

    Hi ptolemy hackers!
    
    My name is Chaeni Rhee and I'm in PeaCE Team at Seoul National University i
   n Korea.
    
    May I ask you a question about pthread in Linux?
    There is not a  ' pn domain ' in Linux Ptolemy.
    Why? Are there  some problems?
    
    I develop  PeaCE system and want to use pthread in Linux.
    I included a  pthread library in makefile and compiled. There is no error
    message.
    But when PeaCE starts to run, an error happens like 
    -----------------------------------------------------------
    rshCommand: mkdir -p $HOME/PEACE_SYSTEMS/CGC
    Error accessing memory address 0x40041b14: No such process.
    -----------------------------------------------------------
    In source codes, no pthread code is included.
    Just -lpthread is added in makefile.
    
    I hope you can give me help...
    
    ---
    Chaeni.
    
    
    ---------------------------------------------------------------------------
   -
    Posted to the ptolemy-hackers mailing list.  Please send administrative
    mail for this list to: [EMAIL PROTECTED]
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to