Comments (5)
I've pushed a 0.4.1-2 which adds this define, can you verify that it works for you?
from lua-mosquitto.
Yes, I was able to compile/install on a fresh Ubuntu 20.04 installation. Thank you for the quick resolution to my problem.
from lua-mosquitto.
maybe? Could you elaborate further on how it fails for you?
karlp@strem:~/src (master *)$ luarocks53 install lua-mosquitto
Installing https://luarocks.org/lua-mosquitto-0.4.1-1.src.rock
gcc -O2 -fPIC -I/usr/include -c lua-mosquitto.c -o lua-mosquitto.o -I$LIBMOSQUITTO_INCDIR
gcc -shared -o mosquitto.so lua-mosquitto.o -L$LIBMOSQUITTO_LIBDIR -Wl,-rpath,$LIBMOSQUITTO_LIBDIR: -lmosquitto
lua-mosquitto 0.4.1-1 is now installed in /home/karlp/.luarocks53 (license: MIT)
karlp@strem:~/src (master *)$ lua
Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio
> m = require("mosquitto")
>
Is this exposing differences in system lua configurations?
from lua-mosquitto.
Looks like my fedora32 at least has #define LUA_COMPAT_5_2 enabled, which enables COMPAT_APIINTCASTS? Is that not default?
from lua-mosquitto.
On Ubuntu 20.04.2 it isn't the default. I stuck variables.CC = "gcc -DLUA_COMPAT_APIINTCASTS"
in my /etc/luarocks/config.lua
so that I could install, but I was guessing it made more sense in the package's rockspec.
from lua-mosquitto.
Related Issues (15)
- Lua 5.2 support HOT 2
- Create new version tag v0.2 HOT 6
- Add luarocks support HOT 2
- Callbacks occur in same coroutine that mqtt.new is called from HOT 6
- Callbacks are called from other threads HOT 4
- Segmentation fault(core dumped) when using mosquitto client as a thread along with lua lanes HOT 1
- Callbacks need to be longjmp safe HOT 5
- mqtt5 support API design? HOT 1
- SEO; add mqtt to description HOT 4
- reconnect_async missing HOT 1
- create release tag HOT 1
- Usage of luaL_checkint HOT 2
- valgrind leak HOT 9
- cpu hog on teardown? pthread_join HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-mosquitto.