BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Error: field 'iflru_addr' has incomplete type

Occasional Contributor

Error: field 'iflru_addr' has incomplete type

Hi All,
while compiling a curl application, i am getting the following error:
In file included from /usr/include/net/if.h:234,
from temp.c:95:
/usr/include/net/if6.h:77: error: field 'iflru_addr' has incomplete type
/usr/include/net/if6.h:78: error: field 'iflru_dstaddr' has incomplete type
/usr/include/net/if6.h:118: error: field 'lifra_addr' has incomplete type
/usr/include/net/if6.h:119: error: field 'lifra_mask' has incomplete type

The OS is HP-UX B11.11.

Thanks and Regards,
Vivek
4 REPLIES
Occasional Contributor

Re: Error: field 'iflru_addr' has incomplete type

Hi All,
I am getting the above errors while at the time of configuring. But at the time of building I am getting this error:
gcc -g -O2 -o curl main.o hugehelp.o -L/usr/local/lib ../lib/.libs/libcurl.a /usr/local/lib/libidn.sl /usr/local/lib/libintl.sl /usr/local/lib/libiconv.sl -lssl -lcrypto -lz -Wl,+b -Wl,/usr/local/lib
/usr/ccs/bin/ld: Unsatisfied symbols:
Curl_if2ip (first referenced in ../lib/.libs/libcurl.a(connect.o)) (code)
collect2: ld returned 1 exit status
*** Error exit code 1

Do I need to install any additional packages. I am using gcc version 4.1.1 while compiling. Any help/suggestion is appreciated.

Regards,
Vivek
Honored Contributor

Re: Error: field 'iflru_addr' has incomplete type

I know nothing (including what "a curl
application" is, or exactly what you did to
get the complaints), but, normally, when you
get complaints about a system header file
(like "/usr/include/net/if6.h"), there's a
problem with the source code, the system
header file(s), or the compiler installation.
Honored Contributor

Re: Error: field 'iflru_addr' has incomplete type

> The OS is HP-UX B11.11.

The forum is Linux. You might get better
answers sooner in an appropriate (HP-UX)
forum.
Highlighted
Acclaimed Contributor

Re: Error: field 'iflru_addr' has incomplete type

>I am getting the above errors while at the time of configuring.

You should ignore your config errors for now. Unless this failure sets some define that is directly used in connect.c.

>But at the time of building I am getting this error:
>Curl_if2ip (libcurl.a(connect.o)) (code)

Do you know where this function is defined?