Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v.1.6.tar.gz compilation error on centos7 #82

Closed
Peter-YAN opened this issue Sep 21, 2017 · 2 comments
Closed

v.1.6.tar.gz compilation error on centos7 #82

Peter-YAN opened this issue Sep 21, 2017 · 2 comments

Comments

@Peter-YAN
Copy link

After ./configure && make, the following error i got.

In file included from scanner.l:46:0:
scanctx.h:66:14: note: expected 'const char *' but argument is of type 'const char **'
extern FILE *scanctx_push_include(struct scan_context *ctx, void *prev_buffer,
^
scanner.l:137:53: error: too few arguments to function 'scanctx_push_include'
char c[2] = { (char)(strtol(yytext + 2, NULL, 16) & 0xFF),
^
In file included from scanner.l:46:0:

then , i change include statement of scanner.l, the problem is solved.

FROM
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include <dirent.h>
#include "parsectx.h"
#include "scanctx.h"
#include "grammar.h"
#include "wincompat.h"

TO

#include "scanctx.h"
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include <dirent.h>
#include "parsectx.h"
#include "grammar.h"
#include "wincompat.h"

@wjz2047
Copy link

wjz2047 commented Sep 24, 2017

it helps

@hyperrealm
Copy link
Owner

Generated files have been removed from repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants