compilation error at HP-UX: storage size of 'ifc' isn't known
"Daniel Bristot de Oliveira" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I'm trying to compile the net-snmp-5.4.2 source in a:
'HP-UX rx4640 B.11.23 U ia64 0712996316 unlimited-user license'
With:
gcc (GCC) 4.2.3
gmake 3.81
It's because the Net-SNMP Package provided by HP-UX IExpress, doesn't
provide the hrSWRun mibs.
When I run gmake, I get the following error:
making all in /tmp/bristot/net-snmp-5.4.2/snmplib
/bin/sh ../libtool --mode=compile gcc -I../include -I.
-I../snmplib -I/opt/openssl/include -g -O2 -Uhpux11 -Dhpux11=hpux11 -c -o
system.lo system.c
gcc -I../include -I. -I../snmplib -I/opt/openssl/include -g -O2 -Uhpux11
-Dhpux11=hpux11 -c system.c -DPIC -o .libs/system.o
system.c: In function 'get_myaddr':
system.c:591: error: storage size of 'ifc' isn't known
system.c:607: error: invalid application of 'sizeof' to incomplete type
'struct ifreq'
system.c:612: error: invalid application of 'sizeof' to incomplete type
'struct ifreq'
system.c:615: error: invalid application of 'sizeof' to incomplete type
'struct ifconf'
system.c:646: error: increment of pointer to unknown structure
system.c:646: error: arithmetic on pointer to an incomplete type
system.c:649: error: dereferencing pointer to incomplete type
system.c:652: error: dereferencing pointer to incomplete type
system.c:654: error: invalid application of 'sizeof' to incomplete type
'struct ifreq'
system.c:657: error: dereferencing pointer to incomplete type
system.c:657: error: 'IFF_UP' undeclared (first use in this function)
system.c:657: error: (Each undeclared identifier is reported only once
system.c:657: error: for each function it appears in.)
system.c:661: error: dereferencing pointer to incomplete type
system.c:668: error: invalid application of 'sizeof' to incomplete type
'struct ifreq'
system.c:672: error: dereferencing pointer to incomplete type
*** Error exit code 1
Someone know how-to solve this problem?
--
Daniel Bristot de Oliveira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users