Subject: pkg/8691: libgtop-1.0.5 fails to compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Havard Eidnes <he@runit.no>
List: netbsd-bugs
Date: 10/26/1999 14:27:41
>Number:         8691
>Category:       pkg
>Synopsis:       libgtop-1.0.5 fails to compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 26 14:27:01 1999
>Last-Modified:
>Originator:     Havard Eidnes
>Organization:
	Me, myself
>Release:        NetBSD 1.4 + recent pkgsrc
>Environment:
NetBSD orre.runit.no 1.4 NetBSD 1.4 (GENERIC) #2: Fri May  7 21:37:43 PDT 1999     oster@zoot:/fujitsu/zoot/src/sys/arch/hp300/compile/GENERIC hp300


>Description:
	libgtop-1.0.5 fails to compile on my hp300.  The end of the
compile log shows:

cc -DHAVE_CONFIG_H -I. -I. -I../.. -D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I../.. -I../.. -I../../sysdeps/freebsd -I../../include -I../../intl -I/usr/X11R6/include -DNEED_GNOMESUPPORT_H -I/usr/X11R6/lib/gnome-libs/include -I/usr/pkg/lib/glib/include -I/usr/pkg/include/glib -I/usr/pkg/include -I/usr/pkg/lib/glib/include -I/usr/pkg/include/glib -O2 -Wall -Wunused -I/usr/X11R6/include -DGLIBTOP_GUILE -DGLIBTOP_GUILE_NAMES -I/usr/pkg/include -DGTOPLOCALEDIR=\"/usr/X11R6/share/locale\" -DLIBGTOP_VERSION=\"1.0.5\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=1000005 -DLIBGTOP_SERVER=\"/usr/X11R6/bin/libgtop_server\" -I/usr/pkg/include -DLIBGTOP_ENABLE_DEBUG -DLIBGTOP_FATAL_WARNINGS -O2 -Wall -Wunused -c -fPIC -DPIC prockernel.c
In file included from /usr/include/machine/pcb.h:3,
                 from prockernel.c:38:
/usr/include/m68k/pcb.h:50: redefinition of `struct pcb'
/usr/include/m68k/pcb.h:65: redefinition of `struct md_coredump'
prockernel.c: In function `glibtop_get_proc_kernel_p':
prockernel.c:133: warning: implicit declaration of function `kvm_uread'
prockernel.c:166: structure has no member named `pcb_tss'
prockernel.c:170: structure has no member named `pcb_tss'
gmake[3]: *** [prockernel.lo] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/devel/libgtop/work/libgtop-1.0.5/sysdeps/freebsd'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/devel/libgtop/work/libgtop-1.0.5/sysdeps'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/devel/libgtop/work/libgtop-1.0.5'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop.

	Why there is no "sysdep/netbsd" I don't know...

>How-To-Repeat:
	Try to compile libgtop-1.0.5 on hp300 (or other m68k platform)

>Fix:
	Sorry, don't know.  The above looks hairy to resolve.
>Audit-Trail:
>Unformatted: