NetBSD Problem Report #46915

From www@NetBSD.org  Thu Sep  6 14:28:48 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 182E363BD00
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  6 Sep 2012 14:28:48 +0000 (UTC)
Message-Id: <20120906142846.20C1963B9BC@www.NetBSD.org>
Date: Thu,  6 Sep 2012 14:28:46 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: chat/libotr 4.0.0 may break net/kdenetwork4 4.8.4 build on DragonFly
X-Send-Pr-Version: www-1.0

>Number:         46915
>Category:       pkg
>Synopsis:       chat/libotr 4.0.0 may break net/kdenetwork4 4.8.4 build on DragonFly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    markd
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 06 14:30:00 +0000 2012
>Closed-Date:    Fri Apr 05 23:56:03 +0000 2013
>Last-Modified:  Fri Apr 05 23:56:03 +0000 2013
>Originator:     David Shao
>Release:        DragonFly  3.1-DEVELOPMENT x86_64
>Organization:
>Environment:
DragonFly  3.1-DEVELOPMENT x86_64
>Description:
Update current pkgsrc on DragonFly 3.1-DEVELOPMENT x86_64
cc -v
Using built-in specs.
Target: x86_64-pc-dragonflybsd
Configured with: DragonFly/x86_64 system compiler
Thread model: posix
gcc version 4.4.7 2012.03.13 (DragonFly) 
to
commit 92bd25915950e0c71e0fc20881cd7eaec7e71c24
Author: pkgsrc fixup <pkgsrc@dragonflybsd.org>
Date:   Wed Sep 5 18:47:29 2012 -0700
which includes update to chat/libotr 4.0.0.

Rebuilding net/kdenetwork4 4.8.4 results in:

[ 87%] Building CXX object kopete/plugins/otr/CMakeFiles/kopete_otr_shared.dir/otrlchatinterface.o
In file included from /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context_priv.h:25,
                 from /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h:25,
                 from /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/proto.h:25,
                 from /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/authenticationwizard.h:30,
                 from /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.h:37,
                 from /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:26:
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1336: warning: 'gcry_ac_io_mode_t' is deprecated (declared at /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1324)
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1337: warning: 'gcry_ac_io_type_t' is deprecated (declared at /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1331)
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1344: warning: 'gcry_ac_data_read_cb_t' is deprecated (declared at /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1312)
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1358: warning: 'gcry_ac_data_write_cb_t' is deprecated (declared at /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1317)
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1393: warning: 'gcry_md_algo_t' is deprecated (declared at /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1387)
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1401: warning: 'gcry_md_algo_t' is deprecated (declared at /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1387)
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'void (*)(void*, OtrlNotifyLevel, const char*, const char*, const char*, const char*, const char*, const char*)' to 'void (*)(void*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'int (*)(void*, const char*, const char*, const char*, const char*)' to 'void (*)(void*, s_OtrlUserState*, const char*, const char*, const char*, unsigned char*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'const char* (*)(void*, const char*)' to 'void (*)(void*, ConnContext*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'void (*)(void*, const char*)' to 'void (*)(void*, ConnContext*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'void (*)(void*, s_OtrlUserState*, const char*, const char*, const char*, unsigned char*)' to 'void (*)(void*, ConnContext*, int)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'void (*)(void*)' to 'int (*)(void*, ConnContext*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'void (*)(void*, ConnContext*)' to 'const char* (*)(void*, const char*, const char*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'void (*)(void*, ConnContext*)' to 'void (*)(void*, const char*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'void (*)(void*, ConnContext*, int)' to 'void (*)(void*, ConnContext*, unsigned int, const unsigned char*, size_t, const unsigned char*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'void (*)(void*, const char*)' to 'const char* (*)(void*, ConnContext*, OtrlErrorCode)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334: error: invalid conversion from 'int (*)(void*, ConnContext*)' to 'void (*)(void*, const char*)'
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/message.h: In member function 'int OtrlChatInterface::decryptMessage(QString*, const QString&, const QString&, const QString&, Kopete::ChatSession*)':
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/message.h:374: error: too few arguments to function 'int otrl_message_receiving(s_OtrlUserState*, const OtrlMessageAppOps*, void*, const char*, const char*, const char*, const char*, char**, OtrlTLV**, ConnContext**, void (*)(void*, ConnContext*), void*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:388: error: at this point in file
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h:139: error: too few arguments to function 'ConnContext* otrl_context_find(s_OtrlUserState*, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:399: error: at this point in file
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/qt4/include/QtCore/qbytearray.h: In member function 'int OtrlChatInterface::encryptMessage(QString*, const QString&, const QString&, const QString&, Kopete::ChatSession*)':
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/qt4/include/QtCore/qbytearray.h:383: error: 'QByteArray::operator QNoImplicitBoolCast() const' is private
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:547: error: within this context
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:547: error: cannot convert 'char**' to 'OtrlTLV*' for argument '9' to 'gcry_error_t otrl_message_sending(s_OtrlUserState*, const OtrlMessageAppOps*, void*, const char*, const char*, const char*, otrl_instag_t, const char*, OtrlTLV*, char**, OtrlFragmentPolicy, ConnContext**, void (*)(void*, ConnContext*), void*)'
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h:139: error: too few arguments to function 'ConnContext* otrl_context_find(s_OtrlUserState*, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:555: error: at this point in file
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:560: error: 'otrl_message_fragment_and_send' was not declared in this scope
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/message.h: In member function 'void OtrlChatInterface::disconnectSession(Kopete::ChatSession*)':
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/message.h:384: error: too few arguments to function 'void otrl_message_disconnect(s_OtrlUserState*, const OtrlMessageAppOps*, void*, const char*, const char*, const char*, otrl_instag_t)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:591: error: at this point in file
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h: In member function 'int OtrlChatInterface::privState(Kopete::ChatSession*)':
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h:139: error: too few arguments to function 'ConnContext* otrl_context_find(s_OtrlUserState*, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:627: error: at this point in file
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h: In member function 'void OtrlChatInterface::verifyFingerprint(Kopete::ChatSession*)':
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h:139: error: too few arguments to function 'ConnContext* otrl_context_find(s_OtrlUserState*, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:660: error: at this point in file
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h: In member function 'void OtrlChatInterface::initSMP(ConnContext*, Kopete::ChatSession*, const QString&)':
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h:139: error: too few arguments to function 'ConnContext* otrl_context_find(s_OtrlUserState*, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:756: error: at this point in file
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h: In member function 'void OtrlChatInterface::initSMPQ(ConnContext*, Kopete::ChatSession*, const QString&, const QString&)':
/usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h:139: error: too few arguments to function 'ConnContext* otrl_context_find(s_OtrlUserState*, const char*, const char*, const char*, otrl_instag_t, int, int*, void (*)(void*, ConnContext*), void*)'
/usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:768: error: at this point in file
*** Error code 1

>How-To-Repeat:
Update current pkgsrc on DragonFly 3.1-DEVELOPMENT x86_64
to
commit 92bd25915950e0c71e0fc20881cd7eaec7e71c24
Author: pkgsrc fixup <pkgsrc@dragonflybsd.org>
Date:   Wed Sep 5 18:47:29 2012 -0700
which includes update to chat/libotr 4.0.0

and rebuild net/kdenetwork4, using for example
pkg_rolling-replace -u
>Fix:

>Release-Note:

>Audit-Trail:
From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46915: chat/libotr 4.0.0 may break net/kdenetwork4 4.8.4
 build on DragonFly
Date: Fri, 7 Sep 2012 08:45:48 -0700

 I have just encountered the same error on current pkgsrc NetBSD
 6.99.11 (GENERIC) amd64.

 cc -v
 Using built-in specs.
 COLLECT_GCC=cc
 Target: x86_64--netbsd
 Configured with:
 /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure
 --target=x86_64--netbsd --enable-long-long --enable-threads
 --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html
 --with-pkgversion='NetBSD nb2 20111202' --enable-__cxa_atexit
 --with-tune=nocona
 --with-mpc=/var/obj/mknative/amd64/usr/src/destdir.amd64/usr
 --with-mpfr=/var/obj/mknative/amd64/usr/src/destdir.amd64/usr
 --with-gmp=/var/obj/mknative/amd64/usr/src/destdir.amd64/usr
 --enable-tls --disable-multilib --disable-symvers
 --disable-libstdcxx-pch --build=x86_64-unknown-netbsd6.0
 --host=x86_64--netbsd
 Thread model: posix
 gcc version 4.5.3 (NetBSD nb2 20110806)

 [ 87%] Building CXX object
 kopete/plugins/otr/CMakeFiles/kopete_otr_shared.dir/otrlchatinterface.o
 In file included from
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context_priv.h:24:0,
                  from
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/context.h:24,
                  from
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/libotr/proto.h:24,
                  from
 /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/authenticationwizard.h:29,
                  from
 /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.h:36,
                  from
 /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:25:
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1336:26:
 warning: 'gcry_ac_io_mode_t' is deprecated (declared at
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1324)
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1337:26:
 warning: 'gcry_ac_io_type_t' is deprecated (declared at
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1331)
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1344:25:
 warning: 'gcry_ac_data_read_cb_t' is deprecated (declared at
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1312)
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1358:26:
 warning: 'gcry_ac_data_write_cb_t' is deprecated (declared at
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1317)
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1393:18:
 warning: 'gcry_md_algo_t' is deprecated (declared at
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1387)
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1401:18:
 warning: 'gcry_md_algo_t' is deprecated (declared at
 /usr/pkgsrc/net/kdenetwork4/work/.buildlink/include/gcrypt.h:1387)
 /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334:1:
 error: invalid conversion from 'void (*)(void*, OtrlNotifyLevel, const
 char*, const char*, const char*, const char*, const char*, const
 char*)' to 'void (*)(void*)'
 /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334:1:
 error: invalid conversion from 'int (*)(void*, const char*, const
 char*, const char*, const char*)' to 'void (*)(void*,
 s_OtrlUserState*, const char*, const char*, const char*, unsigned
 char*)'
 /usr/pkgsrc/net/kdenetwork4/work/kdenetwork-4.8.4/kopete/plugins/otr/otrlchatinterface.cpp:334:1:
 error: invalid conversion from 'const char* (*)(void*, const char*)'
 to 'void (*)(void*, ConnContext*)'

Responsible-Changed-From-To: pkg-manager->markd
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 12 Sep 2012 11:52:09 +0000
Responsible-Changed-Why:
Over to maintainer of kdenetwork4.


From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: markd@netbsd.org, obache@netbsd.org
Subject: Re: pkg/46915 (chat/libotr 4.0.0 may break net/kdenetwork4 4.8.4
 build on DragonFly)
Date: Wed, 12 Sep 2012 07:31:53 -0700

 On Wed, Sep 12, 2012 at 4:52 AM,  <obache@netbsd.org> wrote:
 > Synopsis: chat/libotr 4.0.0 may break net/kdenetwork4 4.8.4 build on DragonFly
 >
 > Responsible-Changed-From-To: pkg-manager->markd
 > Responsible-Changed-By: obache@NetBSD.org
 > Responsible-Changed-When: Wed, 12 Sep 2012 11:52:09 +0000
 > Responsible-Changed-Why:
 > Over to maintainer of kdenetwork4.

 FreeBSD ports created a new port, libotr3, of the old version of
 libotr for backwards compatibility with other packages:

 http://www.freshports.org/security/libotr3

 I do not see how this breakage for the new API-incompatible libotr
 4.0.0 is the responsibility of the kdenetwork4 maintainer.  That
 FreeBSD ports felt the need to create a backwards compatibility port
 indicates a patch for the new API is not trivial.  Unless this patch
 already exists, the build for meta-pkgs/kde4 will remain broken for
 quite some time.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46915 (chat/libotr 4.0.0 may break net/kdenetwork4 4.8.4
 build on DragonFly)
Date: Thu, 13 Sep 2012 09:43:23 +0900

 On Wed, 12 Sep 2012 23:35:04 +0900, David Shao <davshao@gmail.com> wrote:

 >  I do not see how this breakage for the new API-incompatible libotr
 >  4.0.0 is the responsibility of the kdenetwork4 maintainer.  That
 >  FreeBSD ports felt the need to create a backwards compatibility port
 >  indicates a patch for the new API is not trivial.  Unless this patch
 >  already exists, the build for meta-pkgs/kde4 will remain broken for
 >  quite some time.

 Then, kdenetwork4 maintainer is the responsible person.
 He may know the patch, or decide to create libotr3 package,
 or drop libotr related features, and so on.

 -- 
 OBATA Akio / obache@NetBSD.org

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46915: chat/libotr 4.0.0 may break net/kdenetwork4 4.8.4
 build on DragonFly
Date: Thu, 20 Sep 2012 09:08:55 -0700

 kde4, in particular kdenetwork4, now builds on DragonFly x86_64, thanks.

State-Changed-From-To: open->closed
State-Changed-By: markd@NetBSD.org
State-Changed-When: Fri, 05 Apr 2013 23:56:03 +0000
State-Changed-Why:
confirmed fixed (some time ago)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.