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이 말 그대로 포인터이기 때문에
에러가 난 것입니다.
형변환을 시켜주세요.
제 생각엔 예전버젼과 호환 되도록 옵션이 있어야 한다고 생각되지만,
뭔지는 모르겠네요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.