Subject: pkg/14279: kdebase2 pkg fails to build
To: None <gnats-bugs@gnats.netbsd.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 10/18/2001 14:31:17
>Number:         14279
>Category:       pkg
>Synopsis:       kdebase2 pkg fails to build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 17 18:32:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mark Davies
>Release:        current, Aug 29 2001
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
	
System: NetBSD city-art.mcs.vuw.ac.nz 1.5X NetBSD 1.5X (MCS_WORKSTATION) #0: Wed Aug 29 22:20:05 NZST 2001 mark@turakirae.mcs.vuw.ac.nz:/src/test/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	The newly updated kdebase2 package fails to build, dieing in the 
	linking of kicker.

>How-To-Repeat:
	Type "make" in pkgsrc/x11/kdebase2.
	Observer that it eventually dies with the following:

	[...]
creating libkicker.la
(cd .libs && rm -f libkicker.la && ln -s ../libkicker.la libkicker.la)
/bin/sh ../libtool --mode=link c++  -O2 -I/src/work/pkgsrc/x11/kdebase2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdebase2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdebase2/work/.buildlink/include -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -L/src/work/pkgsrc/x11/kdebase2/work/.buildlink/lib -L/src/work/pkgsrc/x11/kdebase2/work/.buildlink/lib  -Wl,-R/usr/X11R6/qt2/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/qt2/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -o kicker -L/usr/X11R6/lib -L/usr/X11R6/qt2/lib -L/src/work/pkgsrc/x11/kdebase2/work/.buildlink/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/pkg/lib -L/usr/X11R6/lib -R /usr/X11R6/lib -R /usr/X11R6/qt2/lib -R /usr/X11R6/lib -R
/usr/pkg/lib -R /usr/X11R6/lib dummy.o
c++ -O2 -I/src/work/pkgsrc/x11/kdebase2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdebase2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdebase2/work/.buildlink/include -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -Wl,-R/usr/X11R6/qt2/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/qt2/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib -o kicker -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib dummy.o  -L/src/work/pkgsrc/x11/kdebase2/work/.buildlink/lib -L/usr/X11R6/lib -L/usr/X11R6/qt2/lib -L/usr/pkg/lib
-Wl,--rpath -Wl,/usr/X11R6/lib -Wl,--rpath -Wl,/usr/X11R6/qt2/lib -Wl,--rpath -Wl,/usr/pkg/lib
/usr/lib/crt0.o: In function `___start':
/usr/lib/crt0.o(.text+0xc1): undefined reference to `main'
collect2: ld returned 1 exit status
gmake[3]: *** [kicker] Error 1
gmake[3]: Leaving directory `/src/work/pkgsrc/x11/kdebase2/work/kdebase-2.2.1/kicker'                                                                           
>Fix:
	Make the following patch to the (patched) Makefile.in (to make it
consistent with the Makefile.am)

--- kicker/Makefile.in~	Thu Oct 18 14:15:15 2001
+++ kicker/Makefile.in	Thu Oct 18 14:17:53 2001
@@ -284,6 +284,7 @@
 kicker_la_SOURCES = dummy.cpp
 kicker_la_LDFLAGS = $(KDE_PLUGIN) -no-undefined -module
 
+kicker_LDADD = libkicker.la
 kicker_SOURCES = dummy.cpp
 kicker_LDFLAGS = $(all_libraries) $(KDE_RPATH)
 
@@ -311,7 +312,6 @@
 PROGRAMS =  $(bin_PROGRAMS)
 
 kicker_OBJECTS =  dummy.$(OBJEXT)
-kicker_LDADD = $(LDADD)
 kicker_DEPENDENCIES = 
 CXXFLAGS = @CXXFLAGS@
 CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)


cheers
mark
>Release-Note:
>Audit-Trail:
>Unformatted: