pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35172: kdebase3 fails to build on 4.0_BETA2 (i386)



>Number:         35172
>Category:       pkg
>Synopsis:       kdebase3 fails to build on 4.0_BETA2 due to version changes.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 03 01:40:00 +0000 2006
>Originator:     oster%netbsd.org@localhost
>Release:        NetBSD 4.0_BETA2
>Organization:
Sometimes
>Environment:
System: NetBSD count 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC.MPACPI) #0: Sat Dec  2 
13:04:15 CST 2006  
oster@count:/u1/builds/build39/src/sys/arch/i386/compile/GENERIC.MPACPI i386
Architecture: i386
Machine: i386
>Description:
While rebuilding packages for 4.0_BETA2, the following build lossage was 
encountered: 

        if /bin/sh ../../libtool --silent --tag=CXX --mode=compile c++ 
-DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/pkg/include -I/usr/pkg/qt3/include 
-I/usr/pkg/xorg/include  -I/usr/pkg/include -I/usr/pkg/xorg/include 
-I/usr/pkg/include/freetype2  -DQT_THREAD_SUPPORT -I/usr/pkg/include 
-I/usr/include -DLDAP_DEPRECATED -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY 
-I/usr/include/krb5 -I/usr/pkg/include/freetype2 -DINFO_OPENGL_AVAILABLE 
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 
-pipe -I/usr/pkg/include -I/usr/include -DLDAP_DEPRECATED 
-I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/include/krb5 
-I/usr/pkg/include/freetype2 -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 memory.lo -MD -MP -MF 
".deps/memory.Tpo" -c -o memory.lo memory.cpp; \
        then mv -f ".deps/memory.Tpo" ".deps/memory.Plo"; else rm -f 
".deps/memory.Tpo"; exit 1; fi
memory_netbsd.cpp: In member function 'void KMemoryWidget::update()':
memory_netbsd.cpp:72: error: 'struct uvmexp' has no member named 'active'
memory_netbsd.cpp:73: error: 'struct uvmexp' has no member named 'inactive'
gmake[3]: *** [memory.lo] Error 1
gmake[3]: Leaving directory 
`/usr/pkgsrc/x11/kdebase3/work.count/kdebase-3.5.5/kcontrol/info'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/pkgsrc/x11/kdebase3/work.count/kdebase-3.5.5/kcontrol'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/x11/kdebase3/work.count/kdebase-3.5.5'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/x11/kdebase3
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/kdebase3
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/kdebase3
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/kdeaccessibility3
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/kdeaccessibility3
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/meta-pkgs/kde3
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/meta-pkgs/kde3


>How-To-Repeat:
        cd /usr/pkgsrc/meta-pkgs/kde3
        make package

>Fix:
        The real problem lies in these bits of code:


#if __NetBSD_Version__ > 499000100 /* 4.99.2+ */
  struct  uvmexp_sysctl uvmexp;
#else
  struct  uvmexp uvmexp;
#endif
...
#if __NetBSD_Version__ > 499000100 /* 4.99.2+ */
  mib[1] = VM_UVMEXP2;
#else
  mib[1] = VM_UVMEXP;
#endif

which no longer do the right thing.  The 4.0_BETA2
__NetBSD_Version__ is 400000001, yet we should be using 
struct uvmexp_sysctl and VM_UVMEXP2. :(  

As mrg@ notes, the 499000100 used here, and in one other spot in
memory_netbsd.cpp, should really be 300000000, since struct uvmexp_sysctl
arrived (at least) with NetBSD 3.0.













Home | Main Index | Thread Index | Old Index