Date: Fri, 10 Feb 2012 03:34:35 GMT From: bob frazier <bobf@mrp3.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/164946: devel/libgtop fails to build with latest 8.2-STABLE kernel Message-ID: <201202100334.q1A3YZpn073600@red.freebsd.org> Resent-Message-ID: <201202100340.q1A3e7iR078867@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 164946 >Category: ports >Synopsis: devel/libgtop fails to build with latest 8.2-STABLE kernel >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Feb 10 03:40:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: bob frazier >Release: 8.2-STABLE amd64 >Organization: S.F.T. Inc. >Environment: FreeBSD BSDSilver.SFT.local 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Feb 6 18:42:35 PST 2012 root@BSDSilver.SFT.local:/usr/obj/usr/src/sys/GENERIC amd64 >Description: attempting to rebuild ports using a ports tree that built properly with a kernel from about a month ago. libgtop failed to build due to lack of definition of the #define __FreeBSD_kernel_version . some research revealed that this is not an issue at ALL in the previous kernel, though at least one application dependent on libgtop didn't function properly (crash on entry) which may indicate that it never really DID build correctly. Workaround: added the following to Makefile CPPFLAGS+= -D__FreeBSD_kernel_version=${OSVERSION} this way __FreeBSD_kernel_version is defined using the OSVERSION string. I have no idea whether or not this is really the right way to do it, but it seems like it's the most logical way to at least get it to build. >How-To-Repeat: fetch latest kernel/world source for 8-STABLE, install, and attempt to build devel/libgtop . >Fix: Workaround: added the following to Makefile CPPFLAGS+= -D__FreeBSD_kernel_version=${OSVERSION} attached patch file Patch attached with submission follows: --- devel/libgtop/Makefile.orig 2011-10-17 18:13:45.000000000 -0700 +++ devel/libgtop/Makefile 2012-02-09 19:22:52.000000000 -0800 @@ -29,10 +29,13 @@ CONFIGURE_ARGS= --disable-gtk-doc \ --with-html-dir=${PREFIX}/share/doc CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_NET_IF_VAR_H LDFLAGS+= -L${LOCALBASE}/lib +# added by me +CPPFLAGS+= -D__FreeBSD_kernel_version=${OSVERSION} + INFO= libgtop2 PKGMESSAGE= ${FILESDIR}/pkg-message .include <bsd.port.pre.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202100334.q1A3YZpn073600>