dcethreads-2.0.2 컴파일 하신 분~~ 이것 좀 봐주세요~^^;

stratus의 이미지

dcethreads-2.0.2.tar.gz 를 받아서 인스톨하려고 하는데,
컴파일 도중 아래와 같은 오류가 발생하는데 원인 좀 알려주세요.
(RedHat 8.0 (2.4.18-14smp), gcc 3.2-7 환경입니다.)

configure 는 모두 default를 사용했고,
#./configure
#make

하였더니 warning을 에러처리 하면서 종료되길래,
warning option 없애주고
(./src/Makefile.in 을 아래처럼 바꿨는데, gcc 옵션을 맞게 한건지 ^^; )

AM_CFLAGS = -Wall -W -Werror -pipe
---> 이부분을 다음과 같이 바꿨어요~
AM_CFLAGS = -pipe

그리고 나서 다시 컴파일 했더니,

...
gcc -DCOMPILING_DCETHREADS -D_GNU_SOURCE -D_REENTRANT -I../include -pipe -g -O2 -c pthread_dceexc.c
 -fPIC -DPIC -o .libs/pthread_dceexc.lo
pthread_dceexc.c: In function `pthd4exc_attr_create':
pthread_dceexc.c:152: warning: concatenation of string literals with __FUNCTION__ is deprecated
...
...
...(동일 종류 warning)
...
...
pthread_dceexc.c: In function `pthd4exc_join':
pthread_dceexc.c:265: pointers are not permitted as case values
...
...
...(동일 종류 warning)
...
...
pthread_dceexc.c: In function `pthd4exc_atfork':
pthread_dceexc.c:985: warning: concatenation of string literals with __FUNCTION__ is deprecated
make[1]: *** [pthread_dceexc.lo] Error 1
make[1]: Leaving directory `/home/deccan/utility/dcethreads-2.0.2/src'

이렇게 나옵니다. 무슨 문제인지 해결 좀 부탁드립니다.

참고로 pthread_dceexc.c 부분 소스는 다음과 같습니다.

 247 int
 248 pthd4exc_join( pthread_t thread, pthread_addr_t *status )
 249 {
 250   int e;
 251   if ( pthread_once( &pthd4exc_is_initialized, pthd4exc_lib_init ) != SUCCESS )
 252                 RAISE(pthread_use_error_e);
 253
 254
 255   e = pthd4_join( thread, status );
 256   if (e != SUCCESS)
 257     {
 258       switch(e)
 259         {
 260
 261           /*
 262            * jrd added 05-09 PTHREAD_CANCEL
 263            */
 264
 265          case PTHREAD_CANCELED:
 266                           RAISE(pthread_cancel_e);
 267                           break;
 268          case ESRCH:
kyong의 이미지

stratus wrote:
dcethreads-2.0.2.tar.gz 를 받아서 인스톨하려고 하는데,
컴파일 도중 아래와 같은 오류가 발생하는데 원인 좀 알려주세요.
(RedHat 8.0 (2.4.18-14smp), gcc 3.2-7 환경입니다.)

configure 는 모두 default를 사용했고,
#./configure
#make

하였더니 warning을 에러처리 하면서 종료되길래,
warning option 없애주고
(./src/Makefile.in 을 아래처럼 바꿨는데, gcc 옵션을 맞게 한건지 ^^; )

AM_CFLAGS = -Wall -W -Werror -pipe
---> 이부분을 다음과 같이 바꿨어요~
AM_CFLAGS = -pipe

그리고 나서 다시 컴파일 했더니,

...
gcc -DCOMPILING_DCETHREADS -D_GNU_SOURCE -D_REENTRANT -I../include -pipe -g -O2 -c pthread_dceexc.c
 -fPIC -DPIC -o .libs/pthread_dceexc.lo
pthread_dceexc.c: In function `pthd4exc_attr_create':
pthread_dceexc.c:152: warning: concatenation of string literals with __FUNCTION__ is deprecated
...
...
...(동일 종류 warning)
...
...
pthread_dceexc.c: In function `pthd4exc_join':
pthread_dceexc.c:265: pointers are not permitted as case values
...
...
...(동일 종류 warning)
...
...
pthread_dceexc.c: In function `pthd4exc_atfork':
pthread_dceexc.c:985: warning: concatenation of string literals with __FUNCTION__ is deprecated
make[1]: *** [pthread_dceexc.lo] Error 1
make[1]: Leaving directory `/home/deccan/utility/dcethreads-2.0.2/src'

이렇게 나옵니다. 무슨 문제인지 해결 좀 부탁드립니다.

참고로 pthread_dceexc.c 부분 소스는 다음과 같습니다.

 247 int
 248 pthd4exc_join( pthread_t thread, pthread_addr_t *status )
 249 {
 250   int e;
 251   if ( pthread_once( &pthd4exc_is_initialized, pthd4exc_lib_init ) != SUCCESS )
 252                 RAISE(pthread_use_error_e);
 253
 254
 255   e = pthd4_join( thread, status );
 256   if (e != SUCCESS)
 257     {
 258       switch(e)
 259         {
 260
 261           /*
 262            * jrd added 05-09 PTHREAD_CANCEL
 263            */
 264
 265          case PTHREAD_CANCELED:
 266                           RAISE(pthread_cancel_e);
 267                           break;
 268          case ESRCH:

gcc 버젼이 올라가면서 생긴 문제네요.
__FUNCTION__ 은 __func__ 로 바꾸면 될 것 같고,
case문에 사용된 PTHREAD_CANCELED이 말 그대로 포인터이기 때문에
에러가 난 것입니다.
형변환을 시켜주세요.
제 생각엔 예전버젼과 호환 되도록 옵션이 있어야 한다고 생각되지만,
뭔지는 모르겠네요.