net-mgmt/cdpd failing on RPi (Mika?l Urankar)

Mikaël Urankar mikael.urankar at gmail.com
Wed Mar 23 15:29:48 UTC 2016


2016-03-23 16:01 GMT+01:00 Scott <freebsd-lists-5 at thismonkey.com>:
>> > Hi all,
>> >
>> > I've compiled net-mgmt/cdpd (cdpd-1.0.4.1) on the system:
>> >   FreeBSD network-01.thismonkey.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0
>> >   r287930: Fri Sep 18 04:03:40 UTC 2015
>> >   root at releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2  arm
>> >
>> > and when I run it it simply genereates its help message and exits.
>>
>> Hi,
>> see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208216
>>
> Hi!
>
> Thanks for the quick reply.  That patch worked perfectly, thanks.
>
> Just for my education: did the truss output assist at all?  If so, what was
> the relevant line(s) that led to the patch?

truss was of no help. The warning in the build log [1] led me on track:
cdpd.c:617:43: warning: comparison of constant -1 with expression of
type 'char' is always true
[-Wtautological-constant-out-of-range-compare]
        while((c=getopt(argc,argv,"i:dt:hoalcr"))!=EOF) {

[1] http://beefy8.nyi.freebsd.org/data/head-armv6-default/p410528_s296455/logs/cdpd-1.0.4.1.log


More information about the freebsd-arm mailing list