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

g++ -g -DLINUX -Wno-deprecated lex.yy.o y.tab.cpp attack_graph.cpp -o attack_graph graphit.tab.c:150:10: fatal error: graphit.tab.h: No such file or directory #8

Open
IMZGforever opened this issue Oct 26, 2021 · 9 comments

Comments

@IMZGforever
Copy link

i follow the readme and download all the requests,add the PATH,but it still didn't work,any solutions plz🙏

@ghaseminya
Copy link

Are You finish installation of mulval?
I have this error too

@IMZGforever
Copy link
Author

IMZGforever commented Nov 1, 2021 via email

@ghost
Copy link

ghost commented Dec 8, 2021

Are You finish installation of mulval? I have this error too

I have this error on kali too. Did you have solved it on kali?

@ghost
Copy link

ghost commented Dec 8, 2021

I have solved it on kali:
After make, we can get y.tab.cpp in src/attack_graph. According to Makefile in src/attack_graph, we can know that this file is moved from graphit.tab.c. At line 150 of graphit.tab.c we will see #include "graphit.tab.h" while this file has been renamed to y.tab.cpp.h. So we just need to edit the makefile in src/attack_graph and modify mv into cp. Then this error can be solved!

@Difficultcl
Copy link

I have solved it on kali: After make, we can get y.tab.cpp in src/attack_graph. According to Makefile in src/attack_graph, we can know that this file is moved from graphit.tab.c. At line 150 of graphit.tab.c we will see #include "graphit.tab.h" while this file has been renamed to y.tab.cpp.h. So we just need to edit the makefile in src/attack_graph and modify mv into cp. Then this error can be solved!

Hello, I modified the makefile file according to your method, but I encountered new problems.

graphit.y: In function ‘int yyparse()’:
graphit.y:79:25: error: reference to ‘data’ is ambiguous

@ghost
Copy link

ghost commented Jan 11, 2022

I have solved it on kali: After make, we can get y.tab.cpp in src/attack_graph. According to Makefile in src/attack_graph, we can know that this file is moved from graphit.tab.c. At line 150 of graphit.tab.c we will see #include "graphit.tab.h" while this file has been renamed to y.tab.cpp.h. So we just need to edit the makefile in src/attack_graph and modify mv into cp. Then this error can be solved!

Hello, I modified the makefile file according to your method, but I encountered new problems.

graphit.y: In function ‘int yyparse()’: graphit.y:79:25: error: reference to ‘data’ is ambiguous

I only encountered this problem after that on kali 2021.3. But I had another problem on Kali 2021.4(I can not remember the detail of it because I forgot to write it down... maybe it is the one you mentioned), and I could not solve it.

So I use the docker edition now.

@vernie213caliper
Copy link

I have solved it on kali: After make, we can get y.tab.cpp in src/attack_graph. According to Makefile in src/attack_graph, we can know that this file is moved from graphit.tab.c. At line 150 of graphit.tab.c we will see #include "graphit.tab.h" while this file has been renamed to y.tab.cpp.h. So we just need to edit the makefile in src/attack_graph and modify mv into cp. Then this error can be solved!

Hello, I modified the makefile file according to your method, but I encountered new problems.

graphit.y: In function ‘int yyparse()’: graphit.y:79:25: error: reference to ‘data’ is ambiguous

Have you solved this problem? I have the same problem:

graphit.y: In function ‘int yyparse()’:
graphit.y:79:25: error: reference to ‘data’ is ambiguous

@saha99
Copy link

saha99 commented Jul 11, 2022

Hello I am getting the following error in ubuntu while running the make command
GetCVEID.java:147: error: incompatible types: List cannot be converted to List
List ldid = document.selectNodes("/[local-name(.)='oval_results']/[local-name(.)='results']/[local-name(.)='system']/[local-name(.)='definitions']/*[local-name(.)='definition']/@definition_id" );
This is a type conversion error in the GetCVEID.java file in the adapter folder src folder
Can anybody help me in solving this issue?

@yncs
Copy link

yncs commented Mar 22, 2023

【graphit.y:79:25: error: reference to ‘data’ is ambiguous】
hi,you can use low gcc and g++,i test gcc-5 g++-5 ,it's ok.

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

6 participants