lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Greetings!

I have both an iMac and a Macbook pro laptop, both running Mojave (OS X 10.14.1), both with XCode 10.1, both with command line tools (gcc --version reports Apple LLVM version 10.0.0 (clang-1000.11.45.5)). Lua 5.3.5 builds and runs nicely on the iMac, but fails on the Macbook, with several linker errors, beginning with:

gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_MACOSX -c -o lua.o lua.c
gcc -std=gnu99 -o lua   lua.o liblua.a -lm -lreadline
Undefined symbols for architecture x86_64:
  "_tgetent", referenced from:
      __rl_init_terminal_io in libreadline.a(terminal.o)
  "_tgetflag", referenced from:
      __rl_init_terminal_io in libreadline.a(terminal.o)
  "_tgetnum", referenced from:
      __rl_get_screen_size in libreadline.a(terminal.o)
...

Any suggestions would be appreciated.

--
Daryl Lee
All our discontents about what we want appeared to
me to spring from the want of thankfulness for what we
have. -- Daniel Defoe