GithubHelp home page GithubHelp logo

Comments (5)

mkschreder avatar mkschreder commented on September 5, 2024

Interesting. I do not have that problem in my builds. What was the fix you
did to make it work for you? Can you use git format-patch and send me a
patch for luaposix33 package in the juci feed?
On 4 Nov 2015 06:48, "lvzaina" [email protected] wrote:

CC ext/posix/posix.lo
In file included from ext/posix/posix.c:25:0:
ext/posix/sched.c: In function 'Psched_setscheduler':
ext/posix/sched.c:74:9: error: variable 'sched_param' has initializer but incomplete type
struct sched_param sched_param = {0};
^
ext/posix/sched.c:74:9: warning: excess elements in struct initializer [enabled by default]
ext/posix/sched.c:74:9: warning: (near initialization for 'sched_param') [enabled by default]
ext/posix/sched.c:74:21: error: storage size of 'sched_param' isn't known
struct sched_param sched_param = {0};
^
ext/posix/sched.c:76:28: error: 'SCHED_OTHER' undeclared (first use in this function)
int policy = optint(L, 2, SCHED_OTHER);
^
ext/posix/sched.c:76:28: note: each undeclared identifier is reported only once for each function it appears in
ext/posix/sched.c:79:2: warning: implicit declaration of function 'sched_setscheduler' [-Wimplicit-function-declaration]
return pushresult(L, sched_setscheduler(pid, policy, &sched_param), NULL);
^
In file included from ext/posix/posix.c:30:0:
ext/posix/sys/resource.c: In function 'luaopen_posix_sys_resource':
ext/posix/sys/resource.c:155:2: warning: overflow in implicit constant conversion [-Woverflow]
LPOSIX_CONST( RLIM_INFINITY );
^
ext/posix/sys/resource.c:157:2: warning: overflow in implicit constant conversion [-Woverflow]
LPOSIX_CONST( RLIM_SAVED_CUR );
^
ext/posix/sys/resource.c:160:2: warning: overflow in implicit constant conversion [-Woverflow]
LPOSIX_CONST( RLIM_SAVED_MAX );
make[5]: *** [ext/posix/posix.lo] Error 1

Add "#include " in luaposix-release-v33.3.1/ext/posix/sched.c file, it can
be resolved.


Reply to this email directly or view it on GitHub
#13.

from juci.

lvzaina avatar lvzaina commented on September 5, 2024

Is that OK?

From d59051c9a1413d38f5d4add71ff71e4a9f33c065 Mon Sep 17 00:00:00 2001
From: lvzaina <[email protected]>
Date: Tue, 10 Nov 2015 16:31:50 +0800
Subject: [PATCH] Build failed.(luaposix-release-v33.3.1)

---
 ext/posix/sched.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ext/posix/sched.c b/ext/posix/sched.c
index 13b196b..9ba2cb2 100644
--- a/ext/posix/sched.c
+++ b/ext/posix/sched.c
@@ -27,6 +27,8 @@
 #include <sched.h>
 #endif

+#include <pthread.h>
+
 #include "_helpers.c"


-- 
1.9.1

from juci.

mkschreder avatar mkschreder commented on September 5, 2024

patch added to the package feed (branch v1.15.11).

from juci.

mkschreder avatar mkschreder commented on September 5, 2024

Does it build without problems for you now?

from juci.

lvzaina avatar lvzaina commented on September 5, 2024

It is no problem.
thank you very much!

from juci.

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.