#318 Building 7.20.4 on Mac OS X Lion

unexpected behavior
closed-fixed
Sean Morrison
4
2012-03-20
2012-03-20
atneik
No

I am stuck with the following error while building BRL-CAD 7.20.4 on Mac OS X Lion 10.7.3. I am using zlib-1.2.6 and libpng-1.4.9 both installed using macports. Here is my configuration:

Compile Tcl ...........................: OFF
Compile Tk ............................: OFF
Compile Itcl/Itk ......................: ON
Compile Iwidgets ......................: ON
Compile Tkhtml ........................: ON
Compile tkpng .........................: ON
Compile Tktable .......................: ON
Compile libpng ........................: OFF
Compile libregex ......................: OFF
Compile zlib ..........................: OFF
Compile termlib .......................: OFF
Compile Utah Raster Toolkit ...........: ON
Compile openNURBS .....................: ON
Compile NIST STEP Class Libraries .....: ON

X11 support (optional) ................: ON
OpenGL support (optional) .............: ON
librtserver JDK support (optional) ....: ON
Enable run-time debugging (optional) ..: ON

Build 32/64-bit release ...............: 64BIT (Auto)
Build optimized release ...............: OFF
Build debuggable release...............: ON
Build profile release .................: OFF
Build SMP-capable release .............: ON
Build static libraries ................: OFF
Build dynamic libraries ...............: ON
Print verbose compilation warnings ....: ON
Print verbose compilation progress ....: OFF
Install example geometry models .......: ON
Generate extra docs ...................: ON (man/html only)

----

Building C object src/libbu/CMakeFiles/libbu.dir/image.c.o
In file included from /opt/local/include/zlib.h:34,
from /opt/local/include/png.h:416,
from /Users/atneik/Downloads/brlcad-7.20.4/src/libbu/image.c:27:
/opt/local/include/zconf.h:411:6: error: "_LARGEFILE64_SOURCE" is not defined
In file included from /opt/local/include/png.h:416,
from /Users/atneik/Downloads/brlcad-7.20.4/src/libbu/image.c:27:
/opt/local/include/zlib.h:1672:32: error: "_FILE_OFFSET_BITS" is not defined
make[2]: *** [src/libbu/CMakeFiles/libbu.dir/image.c.o] Error 1
make[1]: *** [src/libbu/CMakeFiles/libbu.dir/all] Error 2
make: *** [all] Error 2

Discussion

  • Sean Morrison
    Sean Morrison
    2012-03-20

    • milestone: --> unexpected behavior
    • priority: 5 --> 4
    • assigned_to: nobody --> brlcad
    • status: open --> closed-fixed
     
  • Sean Morrison
    Sean Morrison
    2012-03-20

    That's a bug in zlib. If you enable BRLCAD_BUNDLED_LIBS=ON during cmake, it will use our bundled versions of those libraries that have patches applied.