Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,002 Views

Compilation error when building uClinux

I'm trying to build uClinux using the code from alterawiki but I get this compilation error 

 

serve_image.c: In function ‘main’: serve_image.c:32: error: storage size of ‘hints’ isn’t known serve_image.c:94: error: ‘AI_ADDRCONFIG’ undeclared (first use in this function) serve_image.c:94: error: (Each undeclared identifier is reported only once serve_image.c:94: error: for each function it appears in.) serve_image.c:97: warning: implicit declaration of function ‘getaddrinfo’ serve_image.c:99: warning: implicit declaration of function ‘gai_strerror’ serve_image.c:99: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ serve_image.c:103: error: dereferencing pointer to incomplete type serve_image.c:104: error: dereferencing pointer to incomplete type serve_image.c:104: error: dereferencing pointer to incomplete type serve_image.c:105: error: dereferencing pointer to incomplete type serve_image.c:110: error: dereferencing pointer to incomplete type serve_image.c:110: error: dereferencing pointer to incomplete type serve_image.c:32: warning: unused variable ‘hints’ make: *** Error 1 make: Leaving directory `/home/developer/altera/nios2-linux-bak2/uClinux-dist/user/mtd-utils/36d8de81049c9c908740b690c664b5bd3703ccd6' make: *** Error 2 make: Leaving directory `/home/developer/altera/nios2-linux-bak2/uClinux-dist/user/mtd-utils' make: *** Error 2 make: Leaving directory `/home/developer/altera/nios2-linux-bak2/uClinux-dist/user' make: *** Error 2 make: Leaving directory `/home/developer/altera/nios2-linux-bak2/uClinux-dist/user' make: *** Error 1 

 

Can you help me?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
74 Views

 

--- Quote Start ---  

I'm trying to build uClinux using the code from alterawiki but I get this compilation error 

 

serve_image.c: In function ‘main’: serve_image.c:32: error: storage size of ‘hints’ isn’t known serve_image.c:94: error: ‘AI_ADDRCONFIG’ undeclared (first use in this function) serve_image.c:94: error: (Each undeclared identifier is reported only once serve_image.c:94: error: for each function it appears in.) serve_image.c:97: warning: implicit declaration of function ‘getaddrinfo’ serve_image.c:99: warning: implicit declaration of function ‘gai_strerror’ serve_image.c:99: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ serve_image.c:103: error: dereferencing pointer to incomplete type serve_image.c:104: error: dereferencing pointer to incomplete type serve_image.c:104: error: dereferencing pointer to incomplete type serve_image.c:105: error: dereferencing pointer to incomplete type serve_image.c:110: error: dereferencing pointer to incomplete type serve_image.c:110: error: dereferencing pointer to incomplete type serve_image.c:32: warning: unused variable ‘hints’ make: *** Error 1 make: Leaving directory `/home/developer/altera/nios2-linux-bak2/uClinux-dist/user/mtd-utils/36d8de81049c9c908740b690c664b5bd3703ccd6' make: *** Error 2 make: Leaving directory `/home/developer/altera/nios2-linux-bak2/uClinux-dist/user/mtd-utils' make: *** Error 2 make: Leaving directory `/home/developer/altera/nios2-linux-bak2/uClinux-dist/user' make: *** Error 2 make: Leaving directory `/home/developer/altera/nios2-linux-bak2/uClinux-dist/user' make: *** Error 1 

 

Can you help me? 

--- Quote End ---  

 

 

It worked when I stopped mixing the mmu toolchain with the mmu-ess toolchain. I could eventually run my project with the DE2-115 board.
Reply