Subject: pkg/28783: inputmethod/unicon-im can't build under -current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rxg@myrealbox.com>
List: pkgsrc-bugs
Date: 12/26/2004 07:45:00
>Number: 28783
>Category: pkg
>Synopsis: inputmethod/unicon-im can't build under -current
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 26 07:45:00 +0000 2004
>Originator: Rui-Xiang Guo
>Release: NetBSD 2.99.11
>Organization:
>Environment:
System: NetBSD bee 2.99.11 NetBSD 2.99.11 (BEE) #1: Sat Dec 18 21:50:34 CST 2004 rxg@bee:/usr/obj/sys/arch/i386/compile/BEE i386
Architecture: i386
Machine: i386
>Description:
inputmethod/unicon-im can't build under -current
>How-To-Repeat:
cd /usr/pkgsrc/inputmethod/unicon-im && make
bee[/usr/pkgsrc/inputmethod/unicon-im]% make
===> Checking for vulnerabilities in unicon-im-1.2nb3
=> Checksum OK for unicon-1.2.tar.gz.
===> Extracting for unicon-im-1.2nb3
===> Required installed package xorg-libs>=6.8.1nb2: xorg-libs-6.8.1nb3 found
===> Required installed package pth>=2.0.0nb2: pth-2.0.0nb2 found
===> Required installed package fontconfig>=2.2.96nb1: fontconfig-2.2.96nb1 found
===> Required installed package zlib>=1.2.1nb3: zlib-1.2.2 found
===> Required installed package freetype2>=2.1.9nb1: freetype2-2.1.9nb1 found
===> Required installed package expat>=1.95.8nb2: expat-1.95.8nb2 found
===> Required installed package libtool-base>=1.5.10nb6: libtool-base-1.5.10nb6 found
===> Patching for unicon-im-1.2nb3
===> Applying pkgsrc patches for unicon-im-1.2nb3
===> Overriding tools for unicon-im-1.2nb3
===> Creating toolchain wrappers for unicon-im-1.2nb3
===> Configuring for unicon-im-1.2nb3
creating cache ./config.cache
checking for mawk... /usr/bin/awk
checking for gcc... cc
checking whether the C compiler (cc -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/xorg/lib -Wl,-R/usr/pkg/xorg/lib) works... yes
checking whether the C compiler (cc -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/xorg/lib -Wl,-R/usr/pkg/xorg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether make sets ${MAKE}... yes
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking whether cc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for strdup... yes
checking for strerror... yes
updating cache ./config.cache
creating ./config.status
creating unicon/Makefile
creating data/Makefile
creating client/Makefile
creating Makefile
creating server/Makefile
creating ImmModules/CCE/Makefile
creating ImmModules/TL-1/Makefile
===> 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_HzInput.cpp -o TLS_HzInput.o
mkdir .libs
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_HzInput.cpp -fPIC -DPIC -o .libs/TLS_HzInput.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_HzInput.cpp -o TLS_HzInput.o >/dev/null 2>&1
libtool --mode=compile c++ -Wall -I. -I../include -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -c TLS_ImmOp.cpp -o TLS_ImmOp.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_ImmOp.cpp -fPIC -DPIC -o .libs/TLS_ImmOp.o
In file included from /usr/include/g++/backward/iostream.h:31,
from TLS_ImmOp.cpp:1:
/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.
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_ImmOp.cpp -o TLS_ImmOp.o >/dev/null 2>&1
libtool --mode=compile c++ -Wall -I. -I../include -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -c TLS_MemFile.cpp -o TLS_MemFile.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_MemFile.cpp -fPIC -DPIC -o .libs/TLS_MemFile.o
In file included from /usr/include/g++/backward/iostream.h:31,
from TLS_MemFile.cpp:1:
/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.
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_MemFile.cpp -o TLS_MemFile.o >/dev/null 2>&1
libtool --mode=compile c++ -Wall -I. -I../include -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -c TLS_PthSocket.cpp -o TLS_PthSocket.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_PthSocket.cpp -fPIC -DPIC -o .libs/TLS_PthSocket.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_PthSocket.cpp -o TLS_PthSocket.o >/dev/null 2>&1
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
Stop.
make: stopped in /usr/pkgsrc/inputmethod/unicon-im
>Fix:
1.according to this patch to fix Makefile:
ps.it's ugly because I don't know the correct way to remove the
unnecessary buildlink head file.
--- Makefile.orig 2004-12-26 15:24:05.000000000 +0800
+++ Makefile 2004-12-26 15:31:18.000000000 +0800
@@ -15,5 +15,8 @@
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
+post-configure:
+ ${RM} -f ${WRKSRC}/../.buildlink/include/pthread.h
+
.include "../../devel/pth/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
2.add this patch as patch-ah in patches/
$NetBSD$
--- server/TLS_Debug.cpp.orig 2004-12-26 15:33:00.000000000 +0800
+++ server/TLS_Debug.cpp
@@ -8,8 +8,10 @@
#include <assert.h>
#include <string.h>
#include <TLS_Debug.hpp>
-TLS_CDebug::TLS_CDebug (char *szFileName, int mode = 0)
+TLS_CDebug::TLS_CDebug (char *szFileName, int mode)
{
+ mode = 0;
+
if (szFileName == NULL)
{
bDebugToFile = 0;
3.make makepatchsum && make
>Unformatted: