Tests failing in GCC - macos

I'm starting to work with GCC. I downloaded the 4.4.2_release in Mac OSX and I'm running the tests through "make check-gcc" and many tests are failing, I thought that all tests of the test suite in a stable release should pass... so I have some questions:
Is it normal? Or maybe I've done something wrong?
Is there any default configuration that I can use for all the tests pass?
Thanks,
Adding more information requested:
This is the command line I used:
make check-gcc RUNTESTFLAGS="dg.exp"
Here is the summary of the results:
=== gcc Summary ===
expected passes 9265
unexpected failures 1700
unexpected successes 6
expected failures 66
unresolved testcases 45
unsupported tests 93
Here are some examples of the tests that are failing, from log file:
FAIL: gcc.dg/20011008-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20011008-1.c:4: warning:
declaration does not declare anything
FAIL: gcc.dg/20011130-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20011130-1.c:13: error: nested
functions are disabled, use -fnested-functions to re-enable
FAIL: gcc.dg/20031223-1.c (test for errors, line 10) FAIL:
gcc.dg/20031223-1.c (test for warnings, line 10) FAIL:
gcc.dg/20031223-1.c (test for errors, line 10) FAIL:
gcc.dg/20031223-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20031223-1.c:10: error:
expected expression before 'int'
FAIL: gcc.dg/20041213-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:5: error:
conflicting types for 'foo1'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:4: error:
previous declaration of 'foo1' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:8: error:
conflicting types for 'foo2'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:7: error:
previous declaration of 'foo2' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:11: error:
conflicting types for 'foo3'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:10: error:
previous definition of 'foo3' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:14: error:
conflicting types for 'foo4'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:13: error:
previous declaration of 'foo4' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:17: warning:
conflicting types for 'foo5'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:16: warning:
previous declaration of 'foo5' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:20: error:
conflicting types for 'foo6'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:19: error:
previous definition of 'foo6' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:23: error:
conflicting types for 'foo7'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:22: error:
previous definition of 'foo7' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:26: error:
conflicting types for 'foo8'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:25: error:
previous definition of 'foo8' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:29: warning:
conflicting types for 'foo9'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:28: warning:
previous implicit declaration of 'foo9' was here
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:32: warning:
conflicting types for 'foo10'
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/20041213-1.c:31: warning:
previous implicit declaration of 'foo10' was here
FAIL: gcc.dg/Warray-bounds-3.c (test for excess errors) Excess errors:
cc1: error: unrecognized command line option "-Warray-bounds"
FAIL: gcc.dg/binary-constants-2.c (test for excess errors) Excess
errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/binary-constants-2.c:12:5:
error: invalid suffix "b1101" on integer constant
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/binary-constants-2.c:15:10:
error: invalid suffix "b1101" on integer constant
FAIL: gcc.dg/boolcomplex-1.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/boolcomplex-1.c:3: error:
initializer element is not constant
FAIL: gcc.dg/builtins-30.c (test for excess errors) Excess errors:
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/builtins-30.c:10: warning:
declaration of 'cos' shadows a built-in function
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/builtins-30.c:17: warning:
declaration of 'sin' shadows a built-in function
/gcc_4_4_2_release/gcc/testsuite/gcc.dg/builtins-30.c:24: warning:
declaration of 'cosl' shadows a built-in function

Related

Kotlin script fails to run on Windows - org.jetbrains.kotlin.resolve.lazy.NoDescriptorForDeclarationException

when running:
kotlinc -script Day1.kts
Day1.kts:
println("hello")
I get:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil (file:/C:/Users/ASUS/kotlin-native-windows-1.4.21/konan/lib/kotlin-native.jar) to method java.util.ResourceBundle
.setParent(java.util.ResourceBundle)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
error: compilation failed: Front-end Internal error: Failed to analyze declaration Day1
File being compiled: (1,1) in C:/Users/ASUS/IdeaProjects/adventOfCode2020/Day1.kts
The root cause org.jetbrains.kotlin.resolve.lazy.NoDescriptorForDeclarationException was thrown at: org.jetbrains.kotlin.resolve.lazy.BasicAbsentDescriptorHandler.diagnoseDescriptorNot
Found(AbsentDescriptorHandler.kt:18)
* Source files: Day1.kts
* Compiler version info: Konan: 1.4.21 / Kotlin: 1.4.21
* Output kind: PROGRAM
exception: org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration Day1
File being compiled: (1,1) in C:/Users/ASUS/IdeaProjects/adventOfCode2020/Day1.kts
The root cause org.jetbrains.kotlin.resolve.lazy.NoDescriptorForDeclarationException was thrown at: org.jetbrains.kotlin.resolve.lazy.BasicAbsentDescriptorHandler.diagnoseDescriptorNot
Found(AbsentDescriptorHandler.kt:18)
at org.jetbrains.kotlin.resolve.ExceptionWrappingKtVisitorVoid.visitDeclaration(ExceptionWrappingKtVisitorVoid.kt:43)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitDeclaration(KtVisitorVoid.java:453)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitDeclaration(KtVisitorVoid.java:21)
at org.jetbrains.kotlin.psi.KtVisitor.visitScript(KtVisitor.java:78)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitScript(KtVisitorVoid.java:73)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitScript(KtVisitorVoid.java:519)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitScript(KtVisitorVoid.java:21)
at org.jetbrains.kotlin.psi.KtScript.accept(KtScript.java:69)
at org.jetbrains.kotlin.psi.KtElementImplStub.accept(KtElementImplStub.java:60)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer$analyzeDeclarations$1.registerDeclarations(LazyTopDownAnalyzer.kt:78)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer$analyzeDeclarations$1.visitKtFile(LazyTopDownAnalyzer.kt:96)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitKtFile(KtVisitorVoid.java:513)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitKtFile(KtVisitorVoid.java:21)
at org.jetbrains.kotlin.psi.KtFile.accept(KtFile.kt:243)
at org.jetbrains.kotlin.psi.KtFile.accept(KtFile.kt:230)
at org.jetbrains.kotlin.resolve.ExceptionWrappingKtVisitorVoid.visitElement(ExceptionWrappingKtVisitorVoid.kt:27)
at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:35)
at org.jetbrains.kotlin.psi.KtVisitor.visitKtFile(KtVisitor.java:73)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitKtFile(KtVisitorVoid.java:69)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitKtFile(KtVisitorVoid.java:513)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitKtFile(KtVisitorVoid.java:21)
at org.jetbrains.kotlin.psi.KtFile.accept(KtFile.kt:243)
at org.jetbrains.kotlin.psi.KtFile.accept(KtFile.kt:230)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.analyzeDeclarations(LazyTopDownAnalyzer.kt:201)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.analyzeDeclarations$default(LazyTopDownAnalyzer.kt:60)
at org.jetbrains.kotlin.backend.konan.TopDownAnalyzerFacadeForKonan.analyzeFilesWithGivenTrace(TopDownAnalyzerFacadeForKonan.kt:94)
at org.jetbrains.kotlin.backend.konan.TopDownAnalyzerFacadeForKonan.analyzeFiles(TopDownAnalyzerFacadeForKonan.kt:67)
at org.jetbrains.kotlin.backend.konan.ToplevelPhasesKt$frontendPhase$1$1.invoke(ToplevelPhases.kt:86)
at org.jetbrains.kotlin.backend.konan.ToplevelPhasesKt$frontendPhase$1$1.invoke(ToplevelPhases.kt)
at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:115)
at org.jetbrains.kotlin.backend.konan.ToplevelPhasesKt$frontendPhase$1.invoke(ToplevelPhases.kt:85)
at org.jetbrains.kotlin.backend.konan.ToplevelPhasesKt$frontendPhase$1.invoke(ToplevelPhases.kt)
at org.jetbrains.kotlin.backend.common.phaser.PhaseBuildersKt$namedOpUnitPhase$1.invoke(PhaseBuilders.kt:97)
at org.jetbrains.kotlin.backend.common.phaser.PhaseBuildersKt$namedOpUnitPhase$1.invoke(PhaseBuilders.kt:95)
at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:94)
at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:23)
at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:94)
at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:41)
at org.jetbrains.kotlin.backend.konan.KonanDriverKt.runTopLevelPhases(KonanDriver.kt:29)
at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:78)
at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:35)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:88)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:76)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:45)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:227)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit$default(CLITool.kt:225)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:214)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:264)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:261)
at org.jetbrains.kotlin.util.UtilKt.profileIf(Util.kt:27)
at org.jetbrains.kotlin.util.UtilKt.profile(Util.kt:21)
at org.jetbrains.kotlin.cli.bc.K2Native$Companion.main(K2Native.kt:263)
at org.jetbrains.kotlin.cli.bc.K2NativeKt.main(K2Native.kt:457)
at org.jetbrains.kotlin.cli.utilities.MainKt$main$1.invoke(main.kt:41)
at org.jetbrains.kotlin.cli.utilities.MainKt$main$1.invoke(main.kt)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:17)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:41)
Caused by: org.jetbrains.kotlin.resolve.lazy.NoDescriptorForDeclarationException: Descriptor wasn't found for declaration SCRIPT
at org.jetbrains.kotlin.resolve.lazy.BasicAbsentDescriptorHandler.diagnoseDescriptorNotFound(AbsentDescriptorHandler.kt:18)
at org.jetbrains.kotlin.resolve.lazy.BasicAbsentDescriptorHandler.diagnoseDescriptorNotFound(AbsentDescriptorHandler.kt:17)
at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver.findClassDescriptor(LazyDeclarationResolver.kt:88)
at org.jetbrains.kotlin.resolve.lazy.LazyDeclarationResolver.getScriptDescriptor(LazyDeclarationResolver.kt:65)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer$analyzeDeclarations$1.visitScript(LazyTopDownAnalyzer.kt:89)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitScript(KtVisitorVoid.java:519)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitScript(KtVisitorVoid.java:21)
at org.jetbrains.kotlin.psi.KtScript.accept(KtScript.java:69)
at org.jetbrains.kotlin.psi.KtElementImplStub.accept(KtElementImplStub.java:60)
at org.jetbrains.kotlin.resolve.ExceptionWrappingKtVisitorVoid.visitDeclaration(ExceptionWrappingKtVisitorVoid.kt:32)
... 58 more
I'm using Windows 10, Kotlin Native Windows 1.4.21.
It works fine in Mac.
Thank you.
As we figured at the https://youtrack.jetbrains.com/issue/KT-44049, the problem was in the incorrect archive being downloaded.
This document mentions downloading kotlin-compiler-1.4.21.zip, while you have probably downloaded kotlin-native-prebuilt-windows-1.4.21.zip

Prolog natural language parser, Arguments are not sufficiently instantiated

i am trying to make a prolog language parser. when i go to load my script my get the error
ERROR: Arguments are not sufficiently instantiated
ERROR: In:
ERROR: [13] throw(error(instantiation_error,_1940))
ERROR: [7] <user>
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
my code is as follows
sentence(Sentence,sentence(np(Noun_Phrase),vp(Verb_Phrase))):-
np(Sentence,Noun_Phrase,Rem),
vp(Rem,Verb_Phrase,[]).
np([X|T],np(det(X),NP2),Rem):-
det(X),
np2(T,NP2,Rem).
np(Sentence,Parse,Rem):- np2(Sentence,Parse,Rem).
np(Sentence,np(NP,PP),Rem):-
np(Sentence,NP,Rem1),
pp(Rem1,PP,Rem).
np2([H|T],np2(noun(H)),T):- noun(H).
np2([H|T],np2(adj(H),Rest),Rem):- adj(H),np2(T,Rest,Rem).
pp([H|T],pp(prep(H),Parse),Rem):-
prep(H),
np(T,Parse,Rem).
vp([H|[]],verb(H),Rem):-
verb(H).
vp([H|Rest],vp(verb(H),RestParsed),Rem):-
verb(H),
pp(Rest,RestParsed).
vp([H|Rest],vp(verb(H),RestParsed),Rem):-
verb(H),
np(Rest,RestParsed).
det(the).
noun(cat).
noun(mat).
verb(sat).
prep(on).
adj(big).
adj(fat).
adj(comfy).
i have read through some of the other posts on this but im still not sure where i have gone wrong.
to check that np pp and vp work i am using the calls; np([the,cat,sat,on,the,mat],O,L). , pp([on,the,mat],P,L). and vp([the,cat,sat,on,the,mat],O,L).. one call the error ERROR: Undefined procedure: vp/3 (DWIM could not correct goal) appears, it is the same error for all 3 calls with the only difference being vp/3 is either np/3 or pp/3
the desired goal is to use the call sentence(some_sentence) and have the program output the results of np pp and vp.

Issue with Qt 4.8.6 compilation with qpa configured.

I am getting the following error when I compile qt 4.8.6 source on Mac OS X version 10.8.5.
It looks like some platform related flags are not enabled.
In file included from text/qfontengine_coretext.mm:42:
text/qfontengine_coretext_p.h:64: error: expected `)' before‘font’
text/qfontengine_coretext_p.h:65: error: expected `)' before‘font’
text/qfontengine_coretext_p.h:93: error: ‘CGContextRef’ has not
been declared
text/qfontengine_coretext_p.h:111: error: ‘CTFontRef’ does not
name a type
text/qfontengine_coretext_p.h:112: error: ‘CGFontRef’ does not
name a type
text/qfontengine_coretext_p.h:114: error: ‘CGAffineTransform’ does
not name a type
text/qfontengine_coretext_p.h:122: error: expected ‘,’ or ‘...’
before ‘&’ token
text/qfontengine_coretext_p.h:122: error: ISO C++ forbids
declaration of ‘QCFString’ with no type
text/qfontengine_coretext_p.h:123: error: expected `)' before
‘ctFontRef’
text/qfontengine_coretext_p.h:134: error: ‘CTFontRef’ does not
name a type
text/qfontengine_coretext_p.h:144: error: ‘CTFontRef’ has not been
declared
text/qfontengine_coretext_p.h:145: error: ‘CTFontRef’ does not
name a type
text/qfontengine_coretext_p.h:146: error: ISO C++ forbids
declaration of ‘QCFType’ with no type
text/qfontengine_coretext_p.h:146: error: expected ‘;’ before ‘<’
token
text/qfontengine_coretext_p.h:147: error: ‘CGAffineTransform’ does
not name a type
text/qfontengine_coretext_p.h:152: error: ‘CGAffineTransform’ does
not name a type
text/qfontengine_coretext.mm:53: error: ‘acosf’ was not declared
in this scope
text/qfontengine_coretext.mm:53: error: ‘tanf’ was not declared in
this scope
text/qfontengine_coretext.mm:55: error: variable or field
‘loadAdvancesForGlyphs’ declared void
text/qfontengine_coretext.mm:55: error: ‘CTFontRef’ was not
declared in this scope
text/qfontengine_coretext.mm:56: error: ‘CGGlyph’ was not declared
in this scope
text/qfontengine_coretext.mm:56: error: template argument 1 is
invalid
text/qfontengine_coretext.mm:56: error: ‘cgGlyphs’ was not
declared in this scope
text/qfontengine_coretext.mm:57: error: expected primary-
expression before ‘*’ token
text/qfontengine_coretext.mm:57: error: ‘glyphs’ was not declared
in this scope
text/qfontengine_coretext.mm:57: error: expected primary-
expression before ‘int’
text/qfontengine_coretext.mm:58: error: expected primary-
expression before ‘flags’
text/qfontengine_coretext.mm:59: error: expected primary-
expression before ‘const’
text/qfontengine_coretext.mm:53: warning: ‘SYNTHETIC_ITALIC_SKEW’
defined but not used
make[2]: *** [.obj/debug-shared/qfontengine_coretext.o] Error 1
make[1]: *** [debug] Error 2
make: *** [sub-gui-make_default-ordered] Error 2
Am i missing anything? The configuration command used is:
./configure -debug -opensource -confirm-license -arch "x86_64" -cocoa -qpa
and I have Xcode Mac base SDKs for 10.7 and 10.8.
QPA is Qt platform abstraction, wherein you can develop your own plugin for embedded systems. It basically replaces the platform port.
QPA is well developed in QT5, maybe you can consider using it.
You need to resolve these compilation issues on your own and if you are planning on how to use QPA, minimal plugin is the best choice.
You can resolve these issues, basically by including ApplicationService framework and header. Hope this helps.

Problems when make bochs on Mac OS X mountain lion

I have installed the X11 on Mac:
when I input some codes in terminal:
./configure --with-x11
make
After that, there appears some problems:
x.cc:37:22: error: X11/Xlib.h: No such file or directory
x.cc:38:23: error: X11/Xutil.h: No such file or directory
x.cc:39:21: error: X11/Xos.h: No such file or directory
x.cc:40:23: error: X11/Xatom.h: No such file or directory
x.cc:41:24: error: X11/keysym.h: No such file or directory
x.cc:42:35: error: X11/extensions/Xrandr.h: No such file or directory
x.cc:86: error: expected constructor, destructor, or type conversion before ‘*’ token
x.cc:88: error: expected initializer before ‘*’ token
x.cc:89: error: ‘Colormap’ does not name a type
x.cc:104: error: ‘Window’ does not name a type
x.cc:105: error: ‘GC’ does not name a type
x.cc:108: error: expected initializer before ‘*’ token
x.cc:136: error: ‘Pixmap’ does not name a type
x.cc:140: error: ‘Pixmap’ does not name a type
x.cc:146: error: ‘Pixmap’ does not name a type
x.cc:304: error: variable or field ‘xkeypress’ declared void
x.cc:304: error: ‘KeySym’ was not declared in this scope
x.cc:304: error: expected primary-expression before ‘int’
x.cc:326: error: ‘Colormap’ was not declared in this scope
x.cc:326: error: expected primary-expression before ‘n_tries’
x.cc:326: error: initializer expression list treated as compound expression
x.cc:326: error: expected ‘,’ or ‘;’ before ‘{’ token
Can you tell me how to solve the problems?
Use .conf.macosx instead of configure;
Open conf.macosx and add line: --with-x11;
Run:
sh .conf.macosx
Run:
make

Compile Error in using /usr/include/net/if.h

I'm trying to compile existing source code for a network sniffer on my Mac Lion. I installed libpcap. The source includes a header file /usr/include/net/if.h, which is throwing compilation errors as shown below.
Floyd:~ Shastry$ gcc -o arplisten arplisten.c -lpcap
In file included from arplisten.c:4:
/usr/include/net/if.h:265: error: field ‘ifru_addr’ has incomplete type
/usr/include/net/if.h:266: error: field ‘ifru_dstaddr’ has incomplete type
/usr/include/net/if.h:267: error: field ‘ifru_broadaddr’ has incomplete type
/usr/include/net/if.h:308: error: field ‘ifra_addr’ has incomplete type
/usr/include/net/if.h:309: error: field ‘ifra_broadaddr’ has incomplete type
/usr/include/net/if.h:310: error: field ‘ifra_mask’ has incomplete type
/usr/include/net/if.h:393: error: field ‘addr’ has incomplete type
/usr/include/net/if.h:394: error: field ‘dstaddr’ has incomplete type
arplisten.c:6:24: error: netinet/if.h: No such file or directory
arplisten.c: In function ‘main’:
arplisten.c:139: warning: incompatible implicit declaration of built-in function ‘strlen’
Floyd:~ Shastry$
I did a lot of googling for help, in vain. Can someone please help me with this?
It looks like it's the order in which files are included. See this page, which I found via google.

Resources