From: <no...@so...> - 2001-12-20 14:05:09
|
Bugs item #495005, was opened at 2001-12-19 03:36 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=495005&group_id=12694 Category: None Group: None Status: Open Resolution: None Priority: 1 Submitted By: Nobody/Anonymous (nobody) Assigned to: John Naylon (jbpn) Summary: sizeof failure in mibII/at.c Initial Comment: Hi: I am getting the following error : cc -g -Dhpux11 -I. -I../.. -I. -I./../.. - I./../../snmplib -I./.. -I.. -c mibII/at.c -o mibII/at.o cc: "mibII/at.c", line 458: error 1594: The sizeof operator cannot be applied to types with unknown size. cc: "mibII/at.c", line 466: error 1594: The sizeof operator cannot be applied to types with unknown size. *** Error exit code 1 When trying to compile under HPUX V11.11. I am using release ucd-snmp-4.2.3. Everything else compiled fine. Ideas? regards ---------------------------------------------------------------------- >Comment By: John Naylon (jbpn) Date: 2001-12-20 06:05 Message: Logged In: YES user_id=93926 Here is some input from Johannes Schmidt-Fischer, who wrote the HPUX-11 patch: I've never tried to apply my patch to ucd-snmp 4.2.3, so I can't really say that it should apply without problems as you did in your answer to the mentioned bug. And since I don't have those sources at hand I checked the line number from the error list with my 4.2.2 sources. The first line number seems to match the line long read_icmp_stat (ICMP_STAT_STRUCTURE *, int); where ICMP_STAT_STRUCTURE is a define that should be set to "int" in case of hpux11 (about 20 lines above this line). This means that I cannot imagine at the moment what went wrong during compilation. Probably there is any difference between HP-UX 11.0 (where I tested my patch) and HP-UX 11.11 which is used here. Probably even it's a problem with the compiler in use here (it doesn't seem to be gcc, at least it's called via "cc"). My bets are: - using gcc - creating the preprocessed source instead of compiling it (in order to check what happened with the ICMP_STAT_STRUCTURE define and its usage afterwards) Johannes Perhaps you could try out his suggestions? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2001-12-19 06:44 Message: Logged In: NO Okay. I have applied the patch and it fixed that problem but introduced another one :( /bin/sh ../../libtool --mode=compile cc -g -Dhpux11 -I. - I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -c -o mibII/icmp.lo mibII/icmp.c cc -g -Dhpux11 -I. -I../.. -I. -I./../.. -I./../../snmplib - I./.. -I.. -c mibII/icmp.c -o mibII/icmp.o cc: "mibII/icmp.c", line 211: warning 618: Declaration of "icmpstat" not visible outside this function prototype scope. cc: "mibII/icmp.c", line 222: error 1574: Unknown size for "icmpstat". cc: "mibII/icmp.c", line 231: warning 604: Pointers are not assignment-compatible. cc: "mibII/icmp.c", line 231: warning 563: Argument #1 is not the correct type. cc: "mibII/icmp.c", line 277: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 278: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 279: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 280: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 282: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 282: error 1603: Incompatible operands: assign operator. cc: "mibII/icmp.c", line 285: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 286: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 287: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 288: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 290: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 290: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 291: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 291: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 292: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 292: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 293: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 293: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 294: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 294: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 295: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 295: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 296: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 296: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 297: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 297: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 298: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 298: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 299: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 299: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 300: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 300: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 302: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 303: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 305: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 305: error 1603: Incompatible operands: assign operator. cc: "mibII/icmp.c", line 308: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 309: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 311: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 311: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 312: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 312: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 313: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 313: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 314: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 314: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 315: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 315: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 316: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 316: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 317: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 317: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 318: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 318: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 319: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 319: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 320: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 320: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 321: error 1530: Undefined struct or union. cc: "mibII/icmp.c", line 321: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. cc: "mibII/icmp.c", line 368: warning 618: Declaration of "icmpstat" not visible outside this function prototype scope. cc: "mibII/icmp.c", line 368: error 1711: Inconsistent parameter list declaration for "read_icmp_stat". *** Error exit code 1 ---------------------------------------------------------------------- Comment By: John Naylon (jbpn) Date: 2001-12-19 04:00 Message: Logged In: YES user_id=93926 HPUX11 isn't yet supported fully by the package, mainly because none of the core developers have access to a HPUX11 machine. There is, however, a patch by Johannes Schmidt-Fischer which adds the appropriate support. It is patch #484285, available from our patches page. It should apply cleanly to 4.2.3. Please try it out and let us know how you get on. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=495005&group_id=12694 |