Compile errors for woth-restconf=fcgi. Added CI for compiling fcgi
This commit is contained in:
parent
2b6bd4fb5c
commit
512d085f38
5 changed files with 27 additions and 5 deletions
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
|
|
@ -30,6 +30,29 @@ jobs:
|
||||||
run: (cd util; make)
|
run: (cd util; make)
|
||||||
- name: install example
|
- name: install example
|
||||||
run: (cd example; sudo make install)
|
run: (cd example; sudo make install)
|
||||||
|
- name: install utils
|
||||||
|
run: (cd util; sudo make install)
|
||||||
|
native-build-fcgi:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
# 1) checkout and compile natively (no test)
|
||||||
|
- name: install cligen
|
||||||
|
run: (git clone https://github.com/clicon/cligen.git && cd cligen && ./configure && make && sudo make install)
|
||||||
|
- name: install dependencies
|
||||||
|
run: sudo apt install -y libssl-dev libnghttp2-dev
|
||||||
|
- name: configure
|
||||||
|
run: ./configure --with-restconf=fcgi
|
||||||
|
- name: make
|
||||||
|
run: make -j10
|
||||||
|
- name: make install
|
||||||
|
run: sudo make install install-include
|
||||||
|
- name: make example
|
||||||
|
run: (cd example; make)
|
||||||
|
- name: make utils
|
||||||
|
run: (cd util; make)
|
||||||
|
- name: install example
|
||||||
|
run: (cd example; sudo make install)
|
||||||
- name: install utils
|
- name: install utils
|
||||||
run: (cd util; sudo make install)
|
run: (cd util; sudo make install)
|
||||||
docker-run:
|
docker-run:
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,6 @@ xpath_append(cbuf *cb0,
|
||||||
* [<mt-point>] Optional YANG path-arg/xpath from mount-point
|
* [<mt-point>] Optional YANG path-arg/xpath from mount-point
|
||||||
* @param[out] commands vector of function pointers to callback functions
|
* @param[out] commands vector of function pointers to callback functions
|
||||||
* @param[out] helptxt vector of pointers to helptexts
|
* @param[out] helptxt vector of pointers to helptexts
|
||||||
* @see cli_expand_var_generate This is where arg is generated
|
|
||||||
* @see cli_expand_var_generate where api_path_fmt + mt-point are generated
|
* @see cli_expand_var_generate where api_path_fmt + mt-point are generated
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
|
|
@ -407,7 +406,7 @@ expand_dbvar(void *h,
|
||||||
}
|
}
|
||||||
ok:
|
ok:
|
||||||
retval = 0;
|
retval = 0;
|
||||||
done:
|
done:
|
||||||
if (nsc0)
|
if (nsc0)
|
||||||
cvec_free(nsc0);
|
cvec_free(nsc0);
|
||||||
if (api_path_fmt_cb)
|
if (api_path_fmt_cb)
|
||||||
|
|
|
||||||
|
|
@ -314,7 +314,7 @@ main(int argc,
|
||||||
char *wwwuser;
|
char *wwwuser;
|
||||||
char *inline_config = NULL;
|
char *inline_config = NULL;
|
||||||
size_t sz;
|
size_t sz;
|
||||||
int config_dump;
|
int config_dump = 0;
|
||||||
enum format_enum config_dump_format = FORMAT_XML;
|
enum format_enum config_dump_format = FORMAT_XML;
|
||||||
|
|
||||||
/* In the startup, logs to stderr & debug flag set later */
|
/* In the startup, logs to stderr & debug flag set later */
|
||||||
|
|
|
||||||
|
|
@ -213,7 +213,7 @@ restconf_stream_cb(int s,
|
||||||
|
|
||||||
clicon_debug(1, "%s", __FUNCTION__);
|
clicon_debug(1, "%s", __FUNCTION__);
|
||||||
/* get msg (this is the reason this function is called) */
|
/* get msg (this is the reason this function is called) */
|
||||||
if (clicon_msg_rcv(s, 0, &reply, &eof) < 0){
|
if (clicon_msg_rcv(s, NULL, 0, &reply, &eof) < 0){
|
||||||
clicon_debug(1, "%s msg_rcv error", __FUNCTION__);
|
clicon_debug(1, "%s msg_rcv error", __FUNCTION__);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ hex [A-Fa-f0-9]
|
||||||
BEGIN(STRING);
|
BEGIN(STRING);
|
||||||
if (clixon_unicode2utf8(yytext, buf, 5) < 0)
|
if (clixon_unicode2utf8(yytext, buf, 5) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
strncpy(yytext, buf, 4);
|
strncpy(yytext, buf, 5);
|
||||||
clixon_json_parselval.string = yytext;
|
clixon_json_parselval.string = yytext;
|
||||||
return J_STRING;
|
return J_STRING;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue