NetBSD Problem Report #41970

From kre@munnari.OZ.AU  Tue Sep  1 11:34:56 2009
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 4FD4663BAC2
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  1 Sep 2009 11:34:56 +0000 (UTC)
Message-Id: <200909011134.n81BYnuj022747@jade.coe.psu.ac.th>
Date: Tue, 1 Sep 2009 18:34:49 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: graphics/blender compilation errors (NetBSD 4.0 / i386)
X-Send-Pr-Version: 3.95

>Number:         41970
>Category:       pkg
>Synopsis:       graphics/blender compilation errors (NetBSD 4.0 / i386)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 01 11:35:00 +0000 2009
>Closed-Date:    
>Last-Modified:  Thu Dec 03 06:07:25 +0000 2009
>Originator:     Robert Elz
>Release:        NetBSD 4.0 / i386   pkgsrc -current
>Organization:
	Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE (JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 kre@jade.coe.psu.ac.th:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
	The latest version of graphics/blender (blender-2.49a)
	fails to compile correctly for me.

>How-To-Repeat:
	I use pkg_comp with NetBSD 4.0 release sets installed, and libkver
	to simulate a fairly pure NetBSD 4.0 release environment.
	I use pkgsrc modular xorg instead of the x* sets from NetBSD 4.0.
	Aside (perhaps) from "4.0" I doubt any of that is relevant to this
	issue.

	Upon attempting to build graphics/blender I see ...

[  2%] Building C object intern/guardedalloc/CMakeFiles/bf_guardedalloc.dir/intern/mallocn.o
In file included from /pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:50:
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/MEM_guardedalloc.h:129: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MEM_get_memory_in_use'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/MEM_guardedalloc.h:130: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MEM_get_mapped_memory_in_use'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:115: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mem_in_use'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: In function 'make_memhead_header':
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:247: error: 'mem_in_use' undeclared (first use in this function)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:247: error: (Each undeclared identifier is reported only once
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:247: error: for each function it appears in.)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: In function 'MEM_mallocN':
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:268: error: 'mem_in_use' undeclared (first use in this function)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: In function 'MEM_callocN':
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:288: error: 'mem_in_use' undeclared (first use in this function)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: In function 'MEM_mapallocN':
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:323: error: 'mmap_in_use' undeclared (first use in this function)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: At top level:
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:338: error: expected specifier-qualifier-list before 'uintptr_t'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: In function 'compare_len':
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:355: error: 'MemPrintBlock' has no member named 'len'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:355: error: 'MemPrintBlock' has no member named 'len'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:357: error: 'MemPrintBlock' has no member named 'len'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:357: error: 'MemPrintBlock' has no member named 'len'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: In function 'MEM_printmemlist_stats':
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:382: error: 'MemPrintBlock' has no member named 'len'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:383: error: 'MemPrintBlock' has no member named 'items'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:400: error: 'MemPrintBlock' has no member named 'len'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:400: error: 'MemPrintBlock' has no member named 'len'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:401: error: 'MemPrintBlock' has no member named 'items'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:412: error: 'mem_in_use' undeclared (first use in this function)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:414: error: 'MemPrintBlock' has no member named 'items'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:414: error: 'MemPrintBlock' has no member named 'len'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: In function 'MEM_freeN':
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:488: error: 'intptr_t' undeclared (first use in this function)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:489: error: expected ')' before 'memh'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:495: error: expected ')' before 'memh'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: In function 'rem_memblock':
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:590: error: 'mem_in_use' undeclared (first use in this function)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:597: error: 'mmap_in_use' undeclared (first use in this function)
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c: At top level:
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:699: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MEM_get_memory_in_use'
/pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49a/intern/guardedalloc/intern/mallocn.c:704: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MEM_get_mapped_memory_in_use'
gmake[2]: *** [intern/guardedalloc/CMakeFiles/bf_guardedalloc.dir/intern/mallocn.o] Error 1
gmake[1]: *** [intern/guardedalloc/CMakeFiles/bf_guardedalloc.dir/all] Error 2
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/graphics/blender
*** Error code 1

Stop.

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 03 Dec 2009 00:34:50 +0000
State-Changed-Why:
markd@ committed some fixes on Nov 1; does it build onw?


From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/41970 (graphics/blender compilation errors (NetBSD 4.0 / i386))
Date: Thu, 03 Dec 2009 09:10:09 +0700

     Date:        Thu,  3 Dec 2009 00:34:52 +0000 (UTC)
     From:        dholland@NetBSD.org
     Message-ID:  <20091203003452.45E9D63C4AF@www.NetBSD.org>

   | markd@ committed some fixes on Nov 1; does it build onw?

 Sorry, didn't notice that change go past - but no, not yet.
 The particular problem from the PR is gone, the compilation
 gets further, but now ...

 /pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49b/source/blender/blenlib/intern/threads.c: In function 'BLI_system_thread_count':
 /pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49b/source/blender/blenlib/intern/threads.c:286: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
 /pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49b/source/blender/blenlib/intern/threads.c:286: error: (Each undeclared identifier is reported only once
 /pkg_comp/obj/pkgsrc/graphics/blender/4x/blender-2.49b/source/blender/blenlib/intern/threads.c:286: error: for each function it appears in.)
 gmake[2]: *** [source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern/threads.o] Error 1
 gmake[1]: *** [source/blender/blenlib/CMakeFiles/bf_blenlib.dir/all] Error 2
 gmake: *** [all] Error 2
 *** Error code 2

 Stop.
 make: stopped in /usr/pkgsrc/graphics/blender
 *** Error code 1

 Stop.

 The environment is the same as in the PR (except dependency packages
 would all be up to date as of yesterday).

 kre

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 03 Dec 2009 06:07:25 +0000
State-Changed-Why:
well, some progress at least...


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.