===> Building for osbf-lua-2.0.4nb6
gcc -O3 -Wall -fPIC -fomit-frame-pointer -pedantic-errors -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -I/opt/pkg/include -I/opt/pkg/include -DLIB_VERSION=\"2.0.4\" -I/opt/pkg/include/lua-5.2 -I/opt/pkg/include/ncurses  -c -o losbflib.o losbflib.c
losbflib.c:210:7: warning: variable 'num_classes' set but not used [-Wunused-but-set-variable]
  int num_classes;
      ^
1 warning generated.
gcc -O3 -Wall -fPIC -fomit-frame-pointer -pedantic-errors -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -I/opt/pkg/include -I/opt/pkg/include -DLIB_VERSION=\"2.0.4\" -I/opt/pkg/include/lua-5.2 -I/opt/pkg/include/ncurses  -c -o osbf_bayes.o osbf_bayes.c
osbf_bayes.c:294:11: warning: variable 'hindex' set but not used [-Wunused-but-set-variable]
        uint32_t hindex, bindex;
                 ^
osbf_bayes.c:224:7: warning: variable 'microgroom' set but not used [-Wunused-but-set-variable]
  int microgroom;
      ^
osbf_bayes.c:603:16: warning: variable 'lh0' set but not used [-Wunused-but-set-variable]
                uint32_t lh, lh0;
                             ^
osbf_bayes.c:437:10: warning: variable 'htf' set but not used [-Wunused-but-set-variable]
  double htf;                   /* hits this feature got. */
         ^
4 warnings generated.
gcc -O3 -Wall -fPIC -fomit-frame-pointer -pedantic-errors -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -I/opt/pkg/include -I/opt/pkg/include -DLIB_VERSION=\"2.0.4\" -I/opt/pkg/include/lua-5.2 -I/opt/pkg/include/ncurses  -c -o osbf_aux.o osbf_aux.c
gcc -O3 -Wall -fPIC -fomit-frame-pointer -pedantic-errors -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -I/opt/pkg/include -I/opt/pkg/include -DLIB_VERSION=\"2.0.4\" -shared -dy -o libosbf.so.2.0.4 losbflib.o osbf_bayes.o osbf_aux.o -L/opt/pkg/lib -L/opt/pkg/lib/lua/5.2 -lm
ld: warning: directory not found for option '-L/Users/pbulk/build/mail/OSBF-lua/work/.buildlink/lib/lua/5.2'
Undefined symbols for architecture x86_64:
  "_luaL_checklstring", referenced from:
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_removedb in losbflib.o
      _lua_osbf_classify in losbflib.o
      _lua_osbf_dump in losbflib.o
      _lua_osbf_restore in losbflib.o
      _lua_osbf_import in losbflib.o
      _lua_osbf_stats in losbflib.o
      ...
  "_luaL_checknumber", referenced from:
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_config in losbflib.o
      _lua_osbf_classify in losbflib.o
      _osbf_train in losbflib.o
  "_luaL_checktype", referenced from:
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_removedb in losbflib.o
      _lua_osbf_config in losbflib.o
      _lua_osbf_classify in losbflib.o
      _osbf_train in losbflib.o
  "_luaL_error", referenced from:
      _lua_osbf_classify in losbflib.o
      _l_dir in losbflib.o
      _osbf_train in losbflib.o
  "_luaL_newmetatable", referenced from:
      _luaopen_osbf in losbflib.o
  "_luaL_optnumber", referenced from:
      _lua_osbf_classify in losbflib.o
  "_luaL_setfuncs", referenced from:
      _luaopen_osbf in losbflib.o
  "_lua_createtable", referenced from:
      _luaopen_osbf in losbflib.o
      _lua_osbf_classify in losbflib.o
      _lua_osbf_stats in losbflib.o
  "_lua_getfield", referenced from:
      _l_dir in losbflib.o
  "_lua_gettable", referenced from:
      _lua_osbf_config in losbflib.o
      _lua_osbf_classify in losbflib.o
      _osbf_train in losbflib.o
  "_lua_insert", referenced from:
      _lua_osbf_classify in losbflib.o
  "_lua_isnumber", referenced from:
      _lua_osbf_config in losbflib.o
      _osbf_train in losbflib.o
  "_lua_newuserdata", referenced from:
      _l_dir in losbflib.o
  "_lua_next", referenced from:
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_removedb in losbflib.o
      _lua_osbf_classify in losbflib.o
      _osbf_train in losbflib.o
  "_lua_pushboolean", referenced from:
      _lua_osbf_dump in losbflib.o
      _lua_osbf_restore in losbflib.o
      _lua_osbf_import in losbflib.o
      _lua_osbf_changedir in losbflib.o
      _osbf_train in losbflib.o
  "_lua_pushcclosure", referenced from:
      _luaopen_osbf in losbflib.o
      _l_dir in losbflib.o
  "_lua_pushfstring", referenced from:
      _lua_osbf_changedir in losbflib.o
  "_lua_pushlstring", referenced from:
      _luaopen_osbf in losbflib.o
      _lua_osbf_stats in losbflib.o
  "_lua_pushnil", referenced from:
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_removedb in losbflib.o
      _lua_osbf_classify in losbflib.o
      _lua_osbf_dump in losbflib.o
      _lua_osbf_restore in losbflib.o
      _lua_osbf_import in losbflib.o
      _lua_osbf_stats in losbflib.o
      ...
  "_lua_pushnumber", referenced from:
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_removedb in losbflib.o
      _lua_osbf_config in losbflib.o
      _lua_osbf_classify in losbflib.o
      _lua_osbf_stats in losbflib.o
  "_lua_pushstring", referenced from:
      _luaopen_osbf in losbflib.o
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_removedb in losbflib.o
      _lua_osbf_config in losbflib.o
      _lua_osbf_classify in losbflib.o
      _lua_osbf_dump in losbflib.o
      _lua_osbf_restore in losbflib.o
      ...
  "_lua_pushvalue", referenced from:
      _luaopen_osbf in losbflib.o
  "_lua_rawlen", referenced from:
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_removedb in losbflib.o
  "_lua_rawseti", referenced from:
      _lua_osbf_classify in losbflib.o
  "_lua_setglobal", referenced from:
      _luaopen_osbf in losbflib.o
  "_lua_setmetatable", referenced from:
      _l_dir in losbflib.o
  "_lua_settable", referenced from:
      _luaopen_osbf in losbflib.o
      _lua_osbf_stats in losbflib.o
  "_lua_settop", referenced from:
      _lua_osbf_createdb in losbflib.o
      _lua_osbf_removedb in losbflib.o
      _lua_osbf_config in losbflib.o
      _lua_osbf_classify in losbflib.o
      _osbf_train in losbflib.o
  "_lua_toboolean", referenced from:
      _lua_osbf_stats in losbflib.o
  "_lua_touserdata", referenced from:
      _dir_gc in losbflib.o
      _dir_iter in losbflib.o
  "_lua_type", referenced from:
      _lua_osbf_stats in losbflib.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:19: libosbf.so.2.0.4] Error 1
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/mail/OSBF-lua
*** Error code 1

Stop.
bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/mail/OSBF-lua