Giter Site home page Giter Site logo

Comments (9)

neofutur avatar neofutur commented on May 18, 2024 1

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.

lwhsu avatar lwhsu commented on May 18, 2024

There are some mistakes in your build command, please try the stpes in #80.

from tg.

Serjsk8 avatar Serjsk8 commented on May 18, 2024

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.

lwhsu avatar lwhsu commented on May 18, 2024

It's fine here, are you with the latest copy of code?

from tg.

Serjsk8 avatar Serjsk8 commented on May 18, 2024

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.

vysheng avatar vysheng commented on May 18, 2024

Fixed this warning. BTW, do you have 32-bit system?

from tg.

Serjsk8 avatar Serjsk8 commented on May 18, 2024

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.

Serjsk8 avatar Serjsk8 commented on May 18, 2024

I updated the code and now successfully build.
Thank you!

from tg.

SGmuwa avatar SGmuwa commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.