Subject: unicon-im compiled broken under -current
To: None <tech-pkg@netbsd.org>
From: Rui-Xiang Guo <rxg@myrealbox.com>
List: tech-pkg
Date: 12/15/2004 14:46:29
Hi, all.
I tried to compile inputmethod/unicon-im-1.2nb3 under -current but
got some problem. It seems to relate some files about pthread.
Here is the message -
bee[/usr/pkgsrc/inputmethod/unicon-im]% make
===> Checking for vulnerabilities in unicon-im-1.2nb3
===> Building for unicon-im-1.2nb3
cd server; make
libtool  --mode=compile c++ -Wall -I. -I../include -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -c TLS_Debug.cpp -o TLS_Debug.o
 c++ -Wall -I. -I../include -O2 -I/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include -I/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/freetype2 -c TLS_Debug.cpp  -fPIC -DPIC -o .libs/TLS_Debug.o
In file included from /usr/include/g++/backward/iostream.h:31,
                 from TLS_Debug.cpp:3:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from /usr/include/g++/bits/gthr-default.h:40,
                 from /usr/include/g++/bits/gthr.h:101,
                 from /usr/include/g++/bits/c++io.h:37,
                 from /usr/include/g++/bits/fpos.h:44,
                 from /usr/include/g++/iosfwd:49,
                 from /usr/include/g++/ios:44,
                 from /usr/include/g++/ostream:45,
                 from /usr/include/g++/iostream:45,
                 from /usr/include/g++/backward/iostream.h:32,
                 from TLS_Debug.cpp:3:
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:285: error: conflicting
   types for `typedef struct pthread_st*pthread_t'
/usr/include/pthread_types.h:71: error: previous declaration as `typedef struct 
   __pthread_st*pthread_t'
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:286: error: conflicting
   types for `typedef struct pthread_attr_st*pthread_attr_t'
/usr/include/pthread_types.h:72: error: previous declaration as `typedef struct 
   __pthread_attr_st pthread_attr_t'
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:288: error: conflicting
   types for `typedef int pthread_once_t'
/usr/include/pthread_types.h:77: error: previous declaration as `typedef struct 
   __pthread_once_st pthread_once_t'
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:289: error: conflicting
   types for `typedef int pthread_mutexattr_t'
/usr/include/pthread_types.h:74: error: previous declaration as `typedef struct 
   __pthread_mutexattr_st pthread_mutexattr_t'
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:290: error: conflicting
   types for `typedef struct pthread_mutex_st*pthread_mutex_t'
/usr/include/pthread_types.h:73: error: previous declaration as `typedef struct 
   __pthread_mutex_st pthread_mutex_t'
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:291: error: conflicting
   types for `typedef int pthread_condattr_t'
/usr/include/pthread_types.h:76: error: previous declaration as `typedef struct 
   __pthread_condattr_st pthread_condattr_t'
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:292: error: conflicting
   types for `typedef struct pthread_cond_st*pthread_cond_t'
/usr/include/pthread_types.h:75: error: previous declaration as `typedef struct 
   __pthread_cond_st pthread_cond_t'
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:293: error: conflicting
   types for `typedef int pthread_rwlockattr_t'
/usr/include/pthread_types.h:80: error: previous declaration as `typedef struct 
   __pthread_rwlockattr_st pthread_rwlockattr_t'
/usr/pkgsrc/inputmethod/unicon-im/work/.buildlink/include/pthread.h:294: error: conflicting
   types for `typedef struct pthread_rwlock_st*pthread_rwlock_t'
/usr/include/pthread_types.h:79: error: previous declaration as `typedef struct 
   __pthread_rwlock_st pthread_rwlock_t'
TLS_Debug.cpp:12: error: default argument given for parameter 2 of `
   TLS_CDebug::TLS_CDebug(char*, int)'
TLS_Debug.hpp:17: error: after previous specification in `
   TLS_CDebug::TLS_CDebug(char*, int)'
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/inputmethod/unicon-im/work/unicon-1.2/server
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/inputmethod/unicon-im/work/unicon-1.2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/inputmethod/unicon-im
*** Error code 1

Hope someone may help me to resolve it, thanks.