Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2016 17:37:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 210258] net/iperf3: build fails - TAILQ_END doesn't exist
Message-ID:  <bug-210258-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210258

            Bug ID: 210258
           Summary: net/iperf3: build fails - TAILQ_END doesn't exist
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: peter@FreeBSD.org

When compiling (on 11.x in case it matters):

iperf_api.c:2600:67: warning: implicit declaration of function 'TAILQ_END' =
is
invalid in C99 [-Wimplicit-function-declaration]
    for (irp =3D TAILQ_FIRST(&sp->result->interval_results); irp !=3D
TAILQ_END(sp->result->interval_results); irp =3D nirp) {
                                                                  ^

And later:
libtool: link: cc -g -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall=
 -g
-fstack-protector -o .libs/iperf3 iperf3-main.o  ./.libs/libiperf.so -Wl,-r=
path
-Wl,/usr/local/lib
./.libs/libiperf.so: undefined reference to `TAILQ_END'
cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is strange code. TAILQ_END() doesn't normally exist - it looks like it=
 is
meant to be TAILQ_LAST()

Usage examples:
/sys/kern/uipc_mqueue.c:                if (msg->msg_prio <=3D
TAILQ_LAST(&mq->mq_msgq, msgq)->msg_prio) {
/sys/kern/vfs_subr.c:       bp->b_lblkno > TAILQ_LAST(&bv->bv_hd,
buflists)->b_lblkno)
/sys/kern/vfs_subr.c:   bp =3D TAILQ_LAST(&bv->bv_hd, buflists);

Note that there's a type field in the macro, so presumably there is more to=
 it
than a simple typo.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210258-13>