The current make dies on the compiling of makesdna.c, as it refers to guardedalloc/mallocn.a, which now seems to have an unreferenced function _nunmap
After being pointed out on IRC that there was a thread on a new memory management change as reported on bf-commit, I thought someone with CVS access might want to know...
CVS build broken for GCC/Make
Moderators: jesterKing, stiv
same problem with scons and msvc 7.1 :
Linking library ==> 'blender_img.lib'
Compiling ==> 'makesdna.c'
makesdna.c
Linking program ==> 'makesdna.exe'
bf_guardedalloc.lib(mallocn.obj) : error LNK2019: unresolved external symbol _mu
nmap referenced in function _rem_memblock
E:\bf-blender\build\win32-vc\makesdna.exe : fatal error LNK1120: 1 unresolved ex
ternals
scons: *** [E:\bf-blender\build\win32-vc\makesdna.exe] Error 1120
scons: building terminated because of errors.
E:\bf-blender\blender>
Zoo-3D.Blender, Ze French-Speaking Community SKB My french book about Blender.
-
- Posts: 0
- Joined: Mon Jan 23, 2006 1:41 pm
- Location: Rome, Italy
- Contact:
Problem is in mallocn.c, on lin 44 You can find:
No mman.h for Windows (win32 platform misses mmap and munmap) so munmap symbol missing (_munmap in libguardedalloc.a).
Code: Select all
#if defined(AMIGA) || defined(__BeOS) || defined(WIN32)
#else
#include <sys/types.h>
#include <sys/mman.h>
#endif
Federico "Lox" Lucignano
--------------------------------------------
Author of:
http://www.infosquid.net - InfoSquid: IT abyss
Contributor on:
http://www.blendernation.com - BlenderNation: fresh Blender news, every day
--------------------------------------------
Author of:
http://www.infosquid.net - InfoSquid: IT abyss
Contributor on:
http://www.blendernation.com - BlenderNation: fresh Blender news, every day
-
- Site Admin
- Posts: 207
- Joined: Fri Oct 18, 2002 12:48 pm
- Location: Finland
Quick fix for now, until a proper solution has been implemented:
http://projects.blender.org/pipermail/b ... 13619.html
/Nathan
http://projects.blender.org/pipermail/b ... 13619.html
/Nathan
-
- Site Admin
- Posts: 207
- Joined: Fri Oct 18, 2002 12:48 pm
- Location: Finland
Yeah, I read that follow-upjesterKing wrote:Erwin committed a temporal fix to this file, so perhaps you can compile now.
/Nathan

Make is running now...
[Edit: and finished fine]
Last edited by Ryz on Fri Feb 17, 2006 10:38 pm, edited 1 time in total.
-
- Posts: 0
- Joined: Mon Jan 23, 2006 1:41 pm
- Location: Rome, Italy
- Contact:
Just posted in the patch tracker:
here's an implementation of mmap & munmap for the win32 platform.
By including it in mallocn.c at line 44 I succeded in compiling blender.
Hope it can be of any help
mmap & munmap implementation for win32 by Lox
here's an implementation of mmap & munmap for the win32 platform.
By including it in mallocn.c at line 44 I succeded in compiling blender.
Hope it can be of any help

mmap & munmap implementation for win32 by Lox
Federico "Lox" Lucignano
--------------------------------------------
Author of:
http://www.infosquid.net - InfoSquid: IT abyss
Contributor on:
http://www.blendernation.com - BlenderNation: fresh Blender news, every day
--------------------------------------------
Author of:
http://www.infosquid.net - InfoSquid: IT abyss
Contributor on:
http://www.blendernation.com - BlenderNation: fresh Blender news, every day
Nice! Hope it shows up soon in the CVS too...lox_federico wrote:Just posted in the patch tracker:
here's an implementation of mmap & munmap for the win32 platform.
By including it in mallocn.c at line 44 I succeded in compiling blender.
Hope it can be of any help![]()
mmap & munmap implementation for win32 by Lox
