[osg-users] OpenSceneGraph-2.1.13 dev version released

Martin Spott Martin.Spott at mgras.net
Mon Oct 1 06:12:05 PDT 2007

"Robert Osfield" wrote:

> Thanks for the report.  I've just double checked and pthread_yield()
> is just a void so I've changed the code to reflect this and should now
> compile just fine.  This fix is now checked into OpenThreads SVN.

Much better now. Well, here's the next one - looks a bit strange to me.
Still FreeBSD-6.2:

[ 79%] Built target osgdb_tga
make -f src/osgPlugins/hdr/CMakeFiles/osgdb_hdr.dir/build.make src/osgPlugins/hdr/CMakeFiles/osgdb_hdr.dir/depend
make -f src/osgPlugins/hdr/CMakeFiles/osgdb_hdr.dir/build.make src/osgPlugins/hdr/CMakeFiles/osgdb_hdr.dir/build
/usr/local/bin/cmake -E cmake_progress_report /usr/local/src/OpenSceneGraph/CMakeFiles 80
[ 80%] Building CXX object src/osgPlugins/hdr/CMakeFiles/osgdb_hdr.dir/hdrwriter.o
/usr/bin/g++  -O3 -march=pentiumpro  -Dosgdb_hdr_EXPORTS   -fPIC -I/usr/local/src/OpenSceneGraph/include -I/usr/local/include -o src/osgPlugins/hdr/CMakeFiles/osgdb_hdr.dir/hdrwriter.o -c /usr/local/src/OpenSceneGraph/src/osgPlugins/hdr/hdrwriter.cpp
In file included from /usr/local/src/OpenSceneGraph/src/osgPlugins/hdr/hdrwriter.cpp:34:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
*** Error code 1

quickstep: 14:55:22 ~> cat /usr/include/malloc.h 
/* $FreeBSD: src/include/malloc.h,v 1.5 2001/11/07 23:14:31 obrien Exp $ */
#if __STDC__
#error "<malloc.h> has been replaced by <stdlib.h>"
#include <stdlib.h>

Removing the respective line 34 from hdrwriter.cpp, without
replacement, at least makes the whole thing build on this platform,

 Unix _IS_ user friendly - it's just selective about who its friends are !

More information about the osg-users mailing list