Bug 65292

Summary: kxconfig: kxdata.cpp fails to build on NetBSD 1.6.1 sparc
Product: kxconfig Reporter: Emmett Kyle <ekyle>
Component: generalAssignee: Matthias Hoelzer-Kluepfel <hoelzer>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: NetBSD pkgsrc   
OS: NetBSD   
Latest Commit: Version Fixed In:

Description Emmett Kyle 2003-10-01 05:46:58 UTC
Version:           3.1.4 (using KDE KDE 3.1.4)
Installed from:    NetBSD pkgsrc
Compiler:          gcc version 2.95.3 20010315 (release) (NetBSD nb3) 
OS:          NetBSD

I am seeing the same problem encountered in report #50794 for a NetBSD
system running on a sparc platform. When building the kdeadmin3 package,
I get an error in: /usr/pkgsrc/misc/kdeadmin3/work/kdeadmin-3.1.4/kxconfig

kxdata.cpp: In method `void KXData::loadPointerData()':
kxdata.cpp:339: `MTYPE_PS_2' undeclared (first use this function)
kxdata.cpp:339: (Each undeclared identifier is reported only once
kxdata.cpp:339: for each function it appears in.)
kxdata.cpp:343: `MTYPE_MMANPLUSPS2' undeclared (first use this function)
kxdata.cpp:346: `MTYPE_IMPS2' undeclared (first use this function)
kxdata.cpp:352: `MTYPE_THINKINGPS2' undeclared (first use this function)
kxdata.cpp:355: `MTYPE_GLIDEPOINTPS2' undeclared (first use this function)
kxdata.cpp:357: `MTYPE_NETPS2' undeclared (first use this function)
kxdata.cpp:360: `MTYPE_NETSCROLLPS2' undeclared (first use this function)
kxdata.cpp:363: `MTYPE_MICROSOFT' undeclared (first use this function)
kxdata.cpp:367: `MTYPE_LOGIMAN' undeclared (first use this function)
kxdata.cpp:369: `MTYPE_MOUSESYS' undeclared (first use this function)
kxdata.cpp:374: `MTYPE_BUSMOUSE' undeclared (first use this function)

These MTYPE_* definitions appear to normally be in
~X11/extensions/xf86misc.h.
 However this file does not exist on a sparc platform, which means that 
HAVE_X11_EXTENSIONS_XF86MISC_H is FALSE

Changing kxdata.cpp:377 from:
#ifndef HAVE_X11_EXTENSIONS_XF86MISC_H
to:
#ifdef HAVE_X11_EXTENSIONS_XF86MISC_H
(See Comment #7 in #50794)
will make it compile on NetBSD sparc.
Comment 1 Thiago Macieira 2003-10-01 16:39:42 UTC

*** This bug has been marked as a duplicate of 64538 ***