Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

"luaL_newlib" warning message appear during the compile the luajit srource #167

Open
pradiptapks opened this issue Feb 4, 2021 · 1 comment

Comments

@pradiptapks
Copy link

I am not sure whether it is a bug as compilation throwing a flood of warning message post-installation of Moongen.
But this warning message doesn't blocker of moongen testing. So, please review if there is any pre-requisites steps can fix the "luaL_newlib" warning message.

Environment:
Red Hat Enterprise Linux release 8.2 (Ootpa)
Kernel: 4.18.0-193.41.1.el8_2.x86_64 #1 SMP Wed Jan 13 11:33:33 EST 2021 x86_64 x86_64 x86_64 GNU/Linux

  1. trafficgen local branch of Moongen installation
# pwd;git branch
/opt/trafficgen
* (HEAD detached at moongen/dev-kmr-MGLatency)
  master

  1. Use the following script to install moongen "./install-moongen.sh"
<..trim..>
[ 96%] Building CXX object CMakeFiles/MoonGen.dir/src/hashmap.cpp.o
[100%] Linking CXX executable MoonGen
[100%] Built target MoonGen
Cloning into 'lua-luaipc'...
cc -Wall -fpic -O2 -g -D_POSIX_C_SOURCE=200809L -pthread -I/opt/trafficgen/MoonGen/libmoon/deps/luajit/src -c -o ipc.o ipc.c
In file included from ipc.c:7:
ipc.h:96: warning: "luaL_newlib" redefined
 #define luaL_newlib( L, r ) \
<..trim..>
@k-rister
Copy link
Collaborator

k-rister commented Feb 4, 2021

As long as it is working I would leave it as is and not worry about it. We are definitely doing a non-standard installation since it is self contained in trafficgen and we are using the libmoon luajit installation as the source of Lua (which necessitates hacking the Makefile) so warnings aren't all that suprising.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants