Comments (9)
same problem here, trying to build on mageia and having liblua-devel install ( v 5.2 )
checking luaconf.h usability... yes
checking luaconf.h presence... yes
checking for luaconf.h... yes
checking for Lua header version... 5.2
checking if Lua header version matches 5.2... yes
checking if LUA_VERSION is defined... yes
checking for library containing exp... -lm
checking for library containing dlopen... -ldl
checking for library containing lua_load... no
configure: error: No lua libs found. Try --disable-liblua
from tg.
There are some mistakes in your build command, please try the stpes in #80.
from tg.
Thank you!
Now I was able to configure using lua-5.2
But I have the following error:
$ make
clang -I/usr/local/include -I/usr/local/include/lua52 -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -I. -I. -c interface.c -o interface.o
interface.c:1341:30: error: incompatible pointer types passing 'long *' to
parameter of type 'const time_t *' (aka 'const int *')
[-Werror,-Wincompatible-pointer-types]
struct tm *tm = localtime (&t);
^~
/usr/include/time.h:150:36: note: passing argument to parameter here
struct tm *localtime(const time_t *);
^
interface.c:1350:30: error: incompatible pointer types passing 'long *' to
parameter of type 'const time_t *' (aka 'const int *')
[-Werror,-Wincompatible-pointer-types]
struct tm *tm = localtime (&t);
^~
/usr/include/time.h:150:36: note: passing argument to parameter here
struct tm *localtime(const time_t *);
^
2 errors generated.
*** Error code 1
Stop.
from tg.
It's fine here, are you with the latest copy of code?
from tg.
Yes,
I just tried to load the code again And I have the exact same error
$ make
clang -I/usr/local/include -I/usr/local/include/lua52 -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -I. -I. -c main.c -o main.o
clang -I/usr/local/include -I/usr/local/include/lua52 -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -I. -I. -c loop.c -o loop.o
clang -I/usr/local/include -I/usr/local/include/lua52 -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -I. -I. -c interface.c -o interface.o
interface.c:1341:30: error: incompatible pointer types passing 'long *' to
parameter of type 'const time_t *' (aka 'const int *')
[-Werror,-Wincompatible-pointer-types]
struct tm *tm = localtime (&t);
^~
/usr/include/time.h:150:36: note: passing argument to parameter here
struct tm *localtime(const time_t *);
^
interface.c:1350:30: error: incompatible pointer types passing 'long *' to
parameter of type 'const time_t *' (aka 'const int *')
[-Werror,-Wincompatible-pointer-types]
struct tm *tm = localtime (&t);
^~
/usr/include/time.h:150:36: note: passing argument to parameter here
struct tm *localtime(const time_t *);
^
2 errors generated.
*** Error code 1
Stop.
# pkg info libconfig
libconfig-1.4.9
Name : libconfig
Version : 1.4.9
Installed on : Tue Feb 18 16:50:12 YEKT 2014
Origin : devel/libconfig
Architecture : freebsd:10:x86:32
#pkg info libexecinfo
libexecinfo-1.1_3
Name : libexecinfo
Version : 1.1_3
Installed on : Tue Feb 18 16:50:33 YEKT 2014
Origin : devel/libexecinfo
Architecture : freebsd:10:x86:32
# pkg info lua52
lua52-5.2.3_2
Name : lua52
Version : 5.2.3_2
Installed on : Tue Feb 18 18:17:54 YEKT 2014
Origin : lang/lua52
Architecture : freebsd:10:x86:32
from tg.
Fixed this warning. BTW, do you have 32-bit system?
from tg.
yes, 32-bit
# uname -a
FreeBSD fbsd 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789:
Fri Jan 17 01:46:25 UTC 2014
[email protected]:/usr/obj/usr/src/sys/GENERIC i386
from tg.
I updated the code and now successfully build.
Thank you!
from tg.
In my Ubuntu it helped:
env CC=clang CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/lib LUA=/usr/bin/lua5.2 LUA_INCLUDE=-I/usr/include/lua5.2 LUA_LIB=-llua5.2 ./configure --disable-openssl
from tg.
Related Issues (20)
- g
- Z
- "Make" fails on Ubuntu 20.04 HOT 3
- _Originally posted by @dhmii50 in https://github.com/vysheng/tg/issues/1787_
- Outdated api HOT 3
- https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=18fbca16-2224-45f6-85b0-f7bf2b39b3f3&scope=openid%20profile%20email%20offline_access&redirect_uri=https%3A%2F%2Flearn.microsoft.com%2F_themes%2Fdocs.theme%2Fmaster%2Fen-us%2F_themes%2Fglobal%2Fidentity-redirect.html&client-request-id=4ef28716-2289-4678-b97c-5341608f9a67&response_mode=fragment&response_type=code&x-client-SKU=msal.js.browser&x-client-VER=2.32.2&client_info=1&code_challenge=w9C_Mt8dXNYgvyrOigoR3xqe61-maIvYvayx7QA--6U&code_challenge_method=S256&prompt=select_account&nonce=f43388c9-9be2-48a9-9718-8e7cdabaae2f&state=eyJpZCI6ImM5ZGI0MzRmLTIyNTYtNDY5OC04OWI0LTE0ZGRkMDgyZTM0MyIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0%3D%7Chttps%253A%252F%252Flearn.microsoft.com%252Fru-ru%252Ftraining%252Fbrowse%252F%253Fsource%253Dlearn
- I encountered several problems when using telegram-cli for the first time HOT 3
- tg won't compile on Raspberry Pi HOT 2
- make fails on Fedora
- 6840717977:AAFOztLPRLc3I1USwaMmqZ7Juvmjn7vRNQ0 HOT 1
- ban whatsapp
- Where are we with the TrustWallet support for Tron using in the browser extension?
- make tg on debian HOT 8
- *** 1706666423.275465 Notification API_64BIT_LOGIN_APP_OUTDATED_23: You are using an outdated app that is no longer supported. To access your messages, please update your app to the latest version.
- CLI
- Make problem HOT 1
- Assertion Failed! Unexpected: Corrupted forwarded information in message.
- Hi
- Could not build the source code following instructions in Debian 12. HOT 2
- no libevent found CentOS
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 tg.