Re: Error: field 'iflru_addr' has incomplete type (220 Views)
Reply
Occasional Contributor
vivek1717
Posts: 4
Registered: ‎06-22-2008
Message 1 of 5 (220 Views)

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
Occasional Contributor
vivek1717
Posts: 4
Registered: ‎06-22-2008
Message 2 of 5 (220 Views)

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
Steven Schweda
Posts: 9,090
Registered: ‎02-23-2005
Message 3 of 5 (220 Views)

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
Steven Schweda
Posts: 9,090
Registered: ‎02-23-2005
Message 4 of 5 (220 Views)

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.
Acclaimed Contributor
Dennis Handly
Posts: 25,094
Registered: ‎03-06-2006
Message 5 of 5 (220 Views)

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?
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.