[#4076] Compile error in user/cal/cal.c and user/net-tools/lib/interface.c

Document created by Aaronwu Employee on Aug 28, 2013
Version 1Show Document
  • View in full screen mode

[#4076] Compile error in user/cal/cal.c and user/net-tools/lib/interface.c

Submitted By: Jason Hennigar

Open Date

2008-05-01 12:47:15     Close Date

2008-05-09 05:18:07

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2008R1-RC8     Release:

2008R1-RC8

Category:

uClinux-dist applications     Board:

STAMP

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

2008R1-RC8     Toolchain version or rev.:

2008R1-RC8

App binary format:

N/A     

Summary: Compile error in user/cal/cal.c and user/net-tools/lib/interface.c

Details:

 

Compile errors when date and ntpdate are configured. Diffs to resolve errors are as follows:

 

Index: user/cal/cal.c

===================================================================

--- user/cal/cal.c    (revision xxx)

+++ user/cal/cal.c    (working copy)

@@ -57,7 +57,7 @@

 

     if (( day = cal_lm (mo, year)) > 6) {

         usage();

-        exit();

+        exit(0);

     }

     mo--;

     printf ("\n      %s %d", n[mo], year);

 

 

Index: user/net-tools/lib/interface.c

===================================================================

--- user/net-tools/lib/interface.c    (revision 655)

+++ user/net-tools/lib/interface.c    (working copy)

@@ -663,8 +663,10 @@

 

     hf = ptr->type;

 

+#ifdef HAVE_HWSLIP

     if (hf == ARPHRD_CSLIP || hf == ARPHRD_CSLIP6)

     can_compress = 1;

+#endif

 

     hw = get_hwntype(hf);

     if (hw == NULL)

 

Follow-ups

 

--- Mike Frysinger                                           2008-05-01 14:44:07

ive committed the cal fix as that is obvious (not that i know why you're

compiling in that subdir ... busybox provides those applets already), but i cant

reproduce the net-tools failure

 

--- Jason Hennigar                                           2008-05-09 10:27:59

Hi Mike,

 

The net-tools failure occurs when net/if_arp.h is not included in interface.c

due to HAVE_HWSLIP not being defined. This causes the two definitions

(ARPHRD_CSLIP and ARPHRD_CSLIP6) to not be defined causing a compile error.

 

Regarding the cal I was just playing around with the configuration. Having date

added from outside busybox caused some other runtime issues so I have since

removed it.

 

Cheers!

Jason

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes