cross-compile error: dereferencing pointer to incomplete type

This is a discussion on cross-compile error: dereferencing pointer to incomplete type within the SNMP Coders forums, part of the Networking and Network Related category; build system: linux redhat9.0 cross compiler: arm-linux-gcc 2.95.3 system configure method: ../configure --prefix=3D/root/...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-23-2005
Rick.Lee
 
Posts: n/a
Default cross-compile error: dereferencing pointer to incomplete type

build system: linux redhat9.0
cross compiler: arm-linux-gcc 2.95.3 system

configure method:
../configure --prefix=3D/root/usr --build=3Di686-linux --host=3Darm-linux
--target=3Darm-linux --with-perl-modules --with-endianness=3Dlittle 2>&1 |
tee b

error related produced result:
checking for rtentry.rt_dst... no
checking type of rtentry structure... Unknown
unknown
checking for struct rtentry... rtentry
checking for rtentry.rt_unit... no
checking for rtentry.rt_refcnt... no
checking for rtentry.rt_hash... no
checking for rtentry.rt_use... no
checking for tcpstat.tcp_rcvmemdrop... no

make result:

arm-linux-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
-I../../snmplib -g -O2 -Dlinux -c mibII/var_route.c -fPIC -DPIC -o
mibII/.libs/var_route.lo
mibII/var_route.c: In function `var_ipRouteEntry':
mibII/var_route.c:497: dereferencing pointer to incomplete type
mibII/var_route.c:540: dereferencing pointer to incomplete type
mibII/var_route.c:546: dereferencing pointer to incomplete type
mibII/var_route.c:553: dereferencing pointer to incomplete type
mibII/var_route.c:553: `RTF_GATEWAY' undeclared (first use in this function=
)
mibII/var_route.c:553: (Each undeclared identifier is reported only once
mibII/var_route.c:553: for each function it appears in.)
mibII/var_route.c:598: dereferencing pointer to incomplete type
mibII/var_route.c:604: dereferencing pointer to incomplete type
mibII/var_route.c:604: `RTF_UP' undeclared (first use in this function)
mibII/var_route.c:605: dereferencing pointer to incomplete type
mibII/var_route.c:619: dereferencing pointer to incomplete type
mibII/var_route.c:619: `RTF_DYNAMIC' undeclared (first use in this function=
)
mibII/var_route.c:645: dereferencing pointer to incomplete type
mibII/var_route.c:658: dereferencing pointer to incomplete type
mibII/var_route.c:661: dereferencing pointer to incomplete type
mibII/var_route.c: In function `Route_Scan_Reload':
mibII/var_route.c:1267: storage size of `rtent' isn't known
mibII/var_route.c:1273: dereferencing pointer to incomplete type
mibII/var_route.c:1273: dereferencing pointer to incomplete type
mibII/var_route.c:1274: dereferencing pointer to incomplete type
mibII/var_route.c:1282: dereferencing pointer to incomplete type
mibII/var_route.c:1295: dereferencing pointer to incomplete type
mibII/var_route.c:1295: dereferencing pointer to incomplete type
mibII/var_route.c:1295: dereferencing pointer to incomplete type
mibII/var_route.c:1295: dereferencing pointer to incomplete type
mibII/var_route.c:1295: dereferencing pointer to incomplete type
mibII/var_route.c:1298: dereferencing pointer to incomplete type
mibII/var_route.c:1298: dereferencing pointer to incomplete type
mibII/var_route.c:1299: dereferencing pointer to incomplete type
mibII/var_route.c:1299: dereferencing pointer to incomplete type
mibII/var_route.c:1303: dereferencing pointer to incomplete type
mibII/var_route.c:1320: sizeof applied to an incomplete type
mibII/var_route.c:1325: sizeof applied to an incomplete type
mibII/var_route.c: In function `qsort_compare':
mibII/var_route.c:1375: dereferencing pointer to incomplete type
mibII/var_route.c:1378: dereferencing pointer to incomplete type
make[2]: *** [mibII/var_route.lo] Error 1
make[2]: Leaving directory `/root/snmp/net-snmp-5.2.2.rc5/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/root/snmp/net-snmp-5.2.2.rc5/agent'
make: *** [subdirs] Error 1


it seems that compiler can not determine struct rtentry, but I find
the struct rtentry and `RTF_GATEWAY' are defined in route.h file under
/usr/local/arm/2.95.3/arm-linux/include/net directory. I copy the
route.h to /usr/local/arm/2.95.3/arm-linux/include/ directory and redo
above, getting the same error.

how to fix the problem? pls give me some advice.
thank u.

Rick


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0