NetBSD Problem Report #35593

From ef@math.uni-bonn.de  Mon Feb 12 20:06:17 2007
Return-Path: <ef@math.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1ACE863BCA4
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 12 Feb 2007 20:06:17 +0000 (UTC)
Message-Id: <20070212200615.D9AB38453@gumme.math.uni-bonn.de>
Date: Mon, 12 Feb 2007 21:06:15 +0100 (CET)
From: ef@math.uni-bonn.de
Reply-To: ef@math.uni-bonn.de
To: gnats-bugs@NetBSD.org
Subject: x11/kdebase3 fails to build on Mac OS X
X-Send-Pr-Version: 3.95

>Number:         35593
>Category:       pkg
>Synopsis:       x11/kdebase3 fails to build on Mac OS X
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 12 20:10:00 +0000 2007
>Last-Modified:  Thu Feb 15 15:10:03 +0000 2007
>Originator:     Edgar Fuß
>Release:        pkgsrc-2006Q4
>Organization:
	Mathematisches Institut der Universität Bonn, Computerabteilung
>Environment:
Mac OS 10.4.8/intel
>Description:
	Building x11/kdebase3 on Mac OS fails while trying to link libkonq.la:
	ld: undefined symbols:
	_crc32
>How-To-Repeat:
	cd pkgsrc/x11/kdebase3; bmake

>Fix:

Unknown
>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35593: x11/kdebase3 fails to build on Mac OS X
Date: Mon, 12 Feb 2007 21:31:05 +0100

 --pf9I7BMVVzbSWLtt
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Mon, Feb 12, 2007 at 08:10:00PM +0000, ef@math.uni-bonn.de wrote:
 > 	Building x11/kdebase3 on Mac OS fails while trying to link libkonq.la:
 > 	ld: undefined symbols:
 > 	_crc32

 Does the attached patch fix the problem?

 Joerg

 --pf9I7BMVVzbSWLtt
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="kdebase3.diff"

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/x11/kdebase3/Makefile,v
 retrieving revision 1.123
 diff -u -r1.123 Makefile
 --- Makefile	26 Jan 2007 02:49:25 -0000	1.123
 +++ Makefile	12 Feb 2007 20:29:57 -0000
 @@ -174,6 +174,7 @@
  .if ${OPSYS} != "SunOS"
  .include "../../devel/libusb/buildlink3.mk"
  .endif
 +.include "../../devel/zlib/buildlink3.mk"
  .include "../../fonts/fontconfig/buildlink3.mk"
  .include "../../graphics/freetype2/buildlink3.mk"
  .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 Index: distinfo
 ===================================================================
 RCS file: /cvsroot/pkgsrc/x11/kdebase3/distinfo,v
 retrieving revision 1.93
 diff -u -r1.93 distinfo
 --- distinfo	26 Jan 2007 02:49:25 -0000	1.93
 +++ distinfo	12 Feb 2007 20:29:57 -0000
 @@ -20,6 +20,7 @@
  SHA1 (patch-af) = 5438b3738420d154715bf0d0f75b23767aa944d6
  SHA1 (patch-ag) = 89f50ee8b328cd654aebf1da5424e87eb6b42628
  SHA1 (patch-ah) = fc102fc211ba24281d84e4fd2d253e92c20cdc01
 +SHA1 (patch-ai) = 9691a1811585f2743a31f53a92d64b92a525551e
  SHA1 (patch-aj) = bedd17a5a04bff32e4441ed1750ae8ab5a4fa323
  SHA1 (patch-ak) = df7ff2bf5ed6bb2442d49df1c277712712a7f966
  SHA1 (patch-al) = 555384dc03ab59845e5794e081dd5d1a92e2959e
 Index: patches/patch-ai
 ===================================================================
 RCS file: patches/patch-ai
 diff -N patches/patch-ai
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ patches/patch-ai	12 Feb 2007 20:29:57 -0000
 @@ -0,0 +1,13 @@
 +$NetBSD$
 +
 +--- libkonq/Makefile.in.orig	2007-02-12 20:12:15.000000000 +0000
 ++++ libkonq/Makefile.in
 +@@ -646,7 +646,7 @@ lib_LTLIBRARIES = libkonq.la
 + #>- libkonq_la_LDFLAGS = $(all_libraries) -version-info 6:0:2 -no-undefined
 + #>+ 1
 + libkonq_la_LDFLAGS = $(all_libraries) -version-info 6:0:2 -no-undefined $(KDE_NO_UNDEFINED)
 +-libkonq_la_LIBADD = $(LIB_KPARTS)
 ++libkonq_la_LIBADD = $(LIB_KPARTS) -lz
 + #>- libkonq_la_SOURCES = konq_popupmenu.cc knewmenu.cc \
 + #>-    konq_xmlguiclient.cc\
 + #>-    kfileivi.cc konq_iconviewwidget.cc konq_settings.cc konq_drag.cc  \

 --pf9I7BMVVzbSWLtt--

From: =?ISO-8859-1?Q?Edgar_Fu=DF?= <ef@math.uni-bonn.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35593: x11/kdebase3 fails to build on Mac OS X
Date: Tue, 13 Feb 2007 00:18:59 +0100

 >  Does the attached patch fix the problem?
 Yes, I think so. It's still busy compiling, but I think in the  
 meantime it's beyond the point it used to fail before applying the  
 patch.

 Later:
 Yes, it fixes that bug. Now I get this one:

 main_widget.cpp: In constructor 'MainWidget::MainWidget(QWidget*,  
 const char*, uint)':
 main_widget.cpp:37: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'
 main_widget.cpp:38: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'
 main_widget.cpp:38: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'
 main_widget.cpp:39: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'
 main_widget.cpp:40: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'
 main_widget.cpp:41: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'
 main_widget.cpp:43: error: no matching function for call to  
 'QGridLayout::addWidget(KPushButton*&, int, int)'
 /usr/pkg/qt3/include/qlayout.h:331: note: candidates are: void  
 QGridLayout::addWidget(QWidget*, int, int, int)
 main_widget.cpp:112: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'
 main_widget.cpp:114: error: no matching function for call to  
 'QGridLayout::addMultiCellWidget(KPushButton*&, int, int, int, int)'
 /usr/pkg/qt3/include/qlayout.h:333: note: candidates are: void  
 QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
 main_widget.cpp:147: error: no matching function for call to  
 'MainWidget::setTabOrder(KPushButton*&, QLineEdit*&)'
 /usr/pkg/qt3/include/qwidget.h:309: note: candidates are: static void  
 QWidget::setTabOrder(QWidget*, QWidget*)
 main_widget.cpp:154: error: no matching function for call to  
 'MainWidget::setTabOrder(QRadioButton*&, KPushButton*&)'
 /usr/pkg/qt3/include/qwidget.h:309: note: candidates are: static void  
 QWidget::setTabOrder(QWidget*, QWidget*)
 main_widget.cpp: In member function 'virtual void  
 MainWidget::languageChange()':
 main_widget.cpp:178: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'
 main_widget.cpp:188: error: invalid use of undefined type 'struct  
 KPushButton'
 main_widget.h:20: error: forward declaration of 'struct KPushButton'

 [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
 /Volumes/Overkill-UFS/pkgsrc/x11/kdebase3/work/.gcc/bin/g++ - 
 DHAVE_CONFIG_H -I. -I../.. -I../../libkonq -I/Volumes/Overkill-UFS/ 
 pkgsrc/x11/kdebase3/work/.buildlink/include -I/usr/pkg/qt3/include -I/ 
 Volumes/Overkill-UFS/pkgsrc/x11/kdebase3/work/.x11-buildlink/include - 
 I/Volumes/Overkill-UFS/pkgsrc/x11/kdebase3/work/.buildlink/include/ 
 freetype2 -DQT_THREAD_SUPPORT -no-cpp-precomp -DLDAP_DEPRECATED - 
 DGLX_GLXEXT_LEGACY -Wno-long-long -Wundef -Wall -W -Wpointer-arith - 
 DNDEBUG -DNO_DEBUG -O2 -pipe -O2 -Wno-non-virtual-dtor -fno- 
 exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE - 
 DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION - 
 D_GNU_SOURCE -MT main_widget.lo -MD -MP -MF .deps/main_widget.Tpo -c  
 main_widget.cpp -fno-common -DPIC -o .libs/main_widget.o -L/Volumes/ 
 Overkill-UFS/pkgsrc/x11/kdebase3/work/.buildlink/lib

 [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
 /usr/pkg/bin/shlibtool --silent --tag=CXX --mode=compile g++ - 
 DHAVE_CONFIG_H -I. -I../.. -I../../libkonq -I/Volumes/Overkill-UFS/ 
 pkgsrc/x11/kdebase3/work/.buildlink/include -I/usr/pkg/qt3/include -I/ 
 Volumes/Overkill-UFS/pkgsrc/x11/kdebase3/work/.x11-buildlink/include - 
 I/Volumes/Overkill-UFS/pkgsrc/x11/kdebase3/work/.buildlink/include/ 
 freetype2 -DQT_THREAD_SUPPORT -no-cpp-precomp -DLDAP_DEPRECATED - 
 DGLX_GLXEXT_LEGACY -Wno-long-long -Wundef -Wall -W -Wpointer-arith - 
 DNDEBUG -DNO_DEBUG -O2 -pipe -O2 -Wno-non-virtual-dtor -fno- 
 exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE - 
 DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION - 
 D_GNU_SOURCE -MT main_widget.lo -MD -MP -MF .deps/main_widget.Tpo -c - 
 o main_widget.lo main_widget.cpp

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35593: x11/kdebase3 fails to build on Mac OS X
Date: Thu, 15 Feb 2007 15:06:13 +0100

 On Mon, Feb 12, 2007 at 11:20:03PM +0000, Edgar Fuß wrote:
 >  Later:
 >  Yes, it fixes that bug. Now I get this one:

 main_widget.cpp and main_widget.h are automatically generated.
 Which gcc version do you have BTW?

 Joerg

From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/35593 CVS commit: pkgsrc/x11/kdebase3
Date: Thu, 15 Feb 2007 14:06:49 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	joerg
 Date:		Thu Feb 15 14:06:49 UTC 2007

 Modified Files:
 	pkgsrc/x11/kdebase3: Makefile distinfo
 Added Files:
 	pkgsrc/x11/kdebase3/patches: patch-ai

 Log Message:
 Fix linkage of libkonq as found on OS X in PR 35593. Bump revision.


 To generate a diff of this commit:
 cvs rdiff -r1.123 -r1.124 pkgsrc/x11/kdebase3/Makefile
 cvs rdiff -r1.93 -r1.94 pkgsrc/x11/kdebase3/distinfo
 cvs rdiff -r0 -r1.13 pkgsrc/x11/kdebase3/patches/patch-ai

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Edgar =?iso-8859-1?B?RnXf?= <ef@math.uni-bonn.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35593: x11/kdebase3 fails to build on Mac OS X
Date: Thu, 15 Feb 2007 15:48:00 +0100

 > main_widget.cpp and main_widget.h are automatically generated.
 Hm. But I did make clean before I restarted the build.

 > Which gcc version do you have BTW?
 I think it's 4.0

 The problem is that all this happens on a professor's laptop which unfortunately is the only Intel based Mac I have access to at the moment. Additionally, he will be leaving for two weeks from tomorrow on, so I will be unable to check anything the following weeks. Unless I go and buy an Intel Mini myself.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/35593: x11/kdebase3 fails to build on Mac OS X
Date: Thu, 15 Feb 2007 16:09:33 +0100

 On Thu, Feb 15, 2007 at 02:50:05PM +0000, Edgar Fuß wrote:
 >  > Which gcc version do you have BTW?
 >  I think it's 4.0

 Well, the background was that a number of GCC versions shipped by Apple
 are quite bogus and updating the development package often helped. I
 can't help you with the other issues, have to leave it for someone else
 to debug.

 Joerg

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.