Hi there,

I tried to build Ptolemy 0.71p1 from scratch (including GNU Tools) on
SUN Ultra10 with Solaris 7 and I didn't succeed.
Are there any experiences rebuilding Ptolemy for SunOS 2.7 (Solaris 7) ?
While compiling the gthreads section (make install_gthreads) I get
the following messages :

> cd obj.sol2/thread; gmake  gthreads_install
> gmake[1]: Entering directory `/unix/ptolemy-0.7p1/obj.sol2/thread'
> mkdir ../../thread
> mkdir ../../thread/lib.sol2
> mkdir ../../thread/include.sol2
> rm -rf ../../thread/include.sol2/pthread.h ../../thread/include.sol2/pthread
> rm -f ../../thread/lib.sol2/libgthreads.a
> mkdir ../../obj.sol2/thread/gthreads
> (cd ../../obj.sol2/thread/gthreads; mkdir include lib src include/pthread)
> for mydir in include lib src; \
> do \
>         (cd ../../obj.sol2/thread/gthreads/$mydir; \
>                 ln -s ../../../../src/thread/gthreads/$mydir/* .); \
> done
> ln: cannot create ./pthread: File exists
> for mydir in include/pthread; \
> do \
>         (cd ../../obj.sol2/thread/gthreads/$mydir; \
>                 ln -s ../../../../../src/thread/gthreads/$mydir/* .); \
> done
> cd ../../obj.sol2/thread/gthreads/src; ln -s Makefile.Solaris Makefile
> gmake -C ../../obj.sol2/thread/gthreads/src -w "PTARCH=sol2" \
>         INSTALL_INCLUDE='../../../../thread/include.sol2' \
>         INSTALL_LIBS='../../../../thread/lib.sol2' \
>         CC=gcc \
>         CPLUSPLUS=g++ \
>         CFLAGS='-DASM_SETJMP -DSTACK_CHECK -DC_INTERFACE -DSOLARIS -DSVR4' \
>         all install;
> gmake[2]: Entering directory `/unix/ptolemy-0.7p1/obj.sol2/thread/gthreads/src'
> gcc -O3 -DASM_SETJMP -DSTACK_CHECK -DC_INTERFACE -DSOLARIS -DSVR4 -o config_header 
>config_header.c
> ./config_header -O3 -DASM_SETJMP -DSTACK_CHECK -DC_INTERFACE -DSOLARIS -DSVR4 > 
>../include/pthread/c
> onfig.h
> sh const.sh >> ../include/pthread/config.h
> ./config_header -l -O3 -DASM_SETJMP -DSTACK_CHECK -DC_INTERFACE -DSOLARIS -DSVR4 > 
>config_internals.h
> gcc -I../include  -O3 -DASM_SETJMP -DSTACK_CHECK -DC_INTERFACE -DSOLARIS -DSVR4 -c 
>pthread.c
> In file included from internals.h:63,
>                  from pthread.c:37:
> ../include/pthread.h:179: conflicting types for `pthread_mutex_t'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/sys/types.h:367: 
>previous declaration of `pthread_mutex_t'
> ../include/pthread.h:187: conflicting types for `pthread_mutexattr_t'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/sys/types.h:402: 
>previous declaration of `pthread_mutexattr_t'
> ../include/pthread.h:242: conflicting types for `pthread_once_t'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/sys/types.h:417: 
>previous declaration of `pthread_once_t'
> ../include/pthread.h:254: conflicting types for `pthread_cond_t'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/sys/types.h:375: 
>previous declaration of `pthread_cond_t'
> ../include/pthread.h:258: conflicting types for `pthread_condattr_t'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/sys/types.h:410: 
>previous declaration of `pthread_condattr_t'
> ../include/pthread.h:312: conflicting types for `pthread_attr_t'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/sys/types.h:394: 
>previous declaration of `pthread_attr_t'
> ../include/pthread.h:322: conflicting types for `pthread_key_t'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/sys/types.h:353: 
>previous declaration of `pthread_key_t'
> ../include/pthread.h:381: conflicting types for `pthread_t'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/sys/types.h:352: 
>previous declaration of `pthread_t'
> ../include/pthread.h:534: conflicting types for `pthread_kill'
> /unix/ptolemy-0.7p1/gnu/sol2/lib/gcc-lib/sol2/egcs-2.90.27/include/signal.h:98: 
>previous declaration of `pthread_kill'
> gmake[2]: *** [pthread.o] Error 1
> gmake[2]: Leaving directory `/unix/ptolemy-0.7p1/obj.sol2/thread/gthreads/src'
> gmake[1]: *** [gthreads_sol2] Error 2
> gmake[1]: Leaving directory `/unix/ptolemy-0.7p1/obj.sol2/thread'
> gmake: *** [install_gthreads] Error 2


Could someone help me, please ?
Any advice will be appreciated.
Many thanks in advance.

Werner Hack
([EMAIL PROTECTED])


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

Reply via email to