problems compiling the omnithread sources
Bernd Daum
daum@dik.maschinenbau.tu-darmstadt.de
Fri, 21 Nov 1997 17:21:47 +0100
Hello,
i have been trying to recompile the OmniORB - sources
since i had changed the Idl-Interface of the Naming Service.
(i added the omg.org prefix).
Unfortunately, the build fails during recompiling the sources
of the omnithread-library.
Has anyone encountered this problem before?
Any suggestions would be welcomed.
Thanks,
Bernd Daum
Errors from build (DEC Alpha OSF1, C++ V5.5)
cxx -c -O -I../../../include -D_REENTRANT -DPthreadDraftVersion=4
-DNoNanoSleep -D__osf1__ -D__alpha__ -D__OSVERSION__=3 -o posix.o
posix.cc
cxx: Error: posix.cc, line 79: In the initializer for rc,
"pthread_mutexattr_default" is not declared.
int rc = ERRNO(pthread_mutex_init(&posix_mutex,
-------------^
cxx: Error: posix.cc, line 127: In the initializer for rc,
"pthread_condattr_default" is not declared.
int rc = ERRNO(pthread_cond_init(&posix_cond,
pthread_condattr_default));
-------------^
cxx: Error: posix.cc, line 304: In the initializer for rc,
"pthread_keycreate" is not declared.
int rc = ERRNO(pthread_keycreate(&self_key, NULL));
-------------^
cxx: Error: posix.cc, line 568: In this statement, "pthread_attr_create"
is not declared.
pthread_attr_create(&attr);
----^
cxx: Error: posix.cc, line 621: In this statement, "attr" is of type
"__pthread_attr_t", and may not be converted to "pointer to const
__pthread_attr_t".
rc = ERRNO(pthread_create(&posix_thread, attr, wrapper,
(void*)this));
---------^
cxx: Error: posix.cc, line 632: In this statement, "pthread_attr_delete"
is not declared.
pthread_attr_delete(&attr);
----^
cxx: Error: posix.cc, line 642: In this statement, the referenced type
of the pointer value "&posix_thread" is "pointer to __pthread_t", which
is not compatible with "__pthread_t".
rc = ERRNO(pthread_detach(&posix_thread));
-------------^
cxx: Error: posix.cc, line 879: In the initializer for rc,
"__pthread_getspecific(self_key,(void ...)&me)" supplies 2 arguments,
but 1 is expected.
int rc = ERRNO(pthread_getspecific(self_key, (void**)&me));
-------------^
cxx: Error: posix.cc, line 907: In this statement, "pthread_yield" is
not declared.
pthread_yield();
----^