BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Another build failure

    5 answers - 746 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    This one is port-specific, fails on amd64 but succeeds on i386. All
    sources updated via CVS at 2007-02-04 12:43 GMT
    cc1: warnings being treated as errors
    /usr/src/sbin/init/init.c: In function 'mfs_dev':
    /usr/src/sbin/init/init.c:1701: warning: format '%d' expects type 'int',
    but argument 3 has type 'size_t'
    /usr/src/sbin/init/init.c:1736: warning: format '%d' expects type 'int',
    but argument 2 has type 'size_t'
    | Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: |
    | Network Engineer | FA29 0E3B 35AF E8AE 6651 | paul (AT) whooppee (DOT) com |
    | | 0786 F758 55DE 53BA 7731 | pgoyette (AT) juniper (DOT) net |
  • No.1 | | 618 bytes | |

    Mon, Feb 05, 2007 at 06:52:06AM -0800, Charlie Root wrote:
    This one is port-specific, fails on amd64 but succeeds on i386. All
    sources updated via CVS at 2007-02-04 12:43 GMT

    cc1: warnings being treated as errors
    /usr/src/sbin/init/init.c: In function 'mfs_dev':
    /usr/src/sbin/init/init.c:1701: warning: format '%d' expects type 'int',
    but argument 3 has type 'size_t'
    /usr/src/sbin/init/init.c:1736: warning: format '%d' expects type 'int',
    but argument 2 has type 'size_t'

    Yep. What about the following patch ?
  • No.2 | | 803 bytes | |

    Mon, Feb 05, 2007 at 03:55:30PM +0100, Nicolas Joly wrote:
    Mon, Feb 05, 2007 at 06:52:06AM -0800, Charlie Root wrote:
    This one is port-specific, fails on amd64 but succeeds on i386. All
    sources updated via CVS at 2007-02-04 12:43 GMT

    cc1: warnings being treated as errors
    /usr/src/sbin/init/init.c: In function 'mfs_dev':
    /usr/src/sbin/init/init.c:1701: warning: format '%d' expects type 'int',
    but argument 3 has type 'size_t'
    /usr/src/sbin/init/init.c:1736: warning: format '%d' expects type 'int',
    but argument 2 has type 'size_t'

    Yep. What about the following patch ?

    I was wrong (thanks elad for noticing). `size_t' is an unsigned type,
    and the correct format is `%zu'.
  • No.3 | | 297 bytes | |

    Mon, 05 Feb 2007, Charlie Root wrote:
    Subject: Re: Another build failure
    Please could you use more descriptive subjects, such as "Build failure
    in sbin/init/init.c". There are now two threads with the same subject
    but discussing different issues.
    (Alan Barrett)
  • No.4 | | 154 bytes | |

    Yes, even I, the originator of the other, was confused.
    But of course I started the first one, so this adminonition doesn't
    apply to me. ;)
  • No.5 | | 806 bytes | |

    Mon, 5 Feb 2007, Nicolas Joly wrote:

    >cc1: warnings being treated as errors
    >/usr/src/sbin/init/init.c: In function 'mfs_dev':
    >/usr/src/sbin/init/init.c:1701: warning: format '%d' expects type 'int',
    >but argument 3 has type 'size_t'
    >/usr/src/sbin/init/init.c:1736: warning: format '%d' expects type 'int',
    >but argument 2 has type 'size_t'
    >

    Yep. What about the following patch ?

    Patch seems to work fine - thanks!

    | Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: |
    | Network Engineer | FA29 0E3B 35AF E8AE 6651 | paul (AT) whooppee (DOT) com |
    | | 0786 F758 55DE 53BA 7731 | pgoyette (AT) juniper (DOT) net |

Re: Another build failure


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 0 =
QUESTION ON "BSD"

EMSDN.COM