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

Definitvely use flex to generate unix/generix/lexyy.c #112

Merged
merged 2 commits into from
Jun 12, 2020

Conversation

olebole
Copy link
Member

@olebole olebole commented Jun 11, 2020

When called as "lex", yytext is generated differently by different lex versions. While f.e. on Debian Buster, it creates

char *yytext;

the version found on SuseLeap 15.1 generates

char yytext[YYLMAX];

Using extern char *yytext in generic.c then creates a segfault. To ensure that we use the right dialect, we explicitly use "flex".

This fixes #104.

When called as "lex", yytext is generated differently by different lex
versions. While f.e. on Debian Buster, it creates

    char *yytext;

the version found on SuseLeap 15.1 generates

    char yytext[YYLMAX];

Using `extern char *yytext` in `generic.c` then creates a segfault.
To ensure that we use the right dialect, we explicitly use "flex".
@olebole
Copy link
Member Author

olebole commented Jun 12, 2020

As it is confirmed to work on SuseLeap, I am going to merge it...

@olebole olebole merged commit e533bc9 into iraf-community:master Jun 12, 2020
@olebole olebole deleted the fix-generic-lex branch June 12, 2020 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Compilation error - undefined reference
1 participant