Operating System - HP-UX
1752866 Members
3499 Online
108791 Solutions
New Discussion юеВ

Re: Error: field 'iflru_addr' has incomplete type

 
vivek1717
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 4
vivek1717
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
Steven Schweda
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.
Steven Schweda
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.
Dennis Handly
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?