Date: Fri, 7 Jul 2000 09:16:33 +0100 (BST) From: Nick Hibma <n_hibma@calcaphon.com> To: John Baldwin <jhb@FreeBSD.org> Cc: Charles Anderson <caa@columbus.rr.com>, FreeBSD Current <freebsd-current@FreeBSD.org>, committers@FreeBSD.org Subject: Re: _DIAGASSERT in libusb & libutil Message-ID: <Pine.BSF.4.20.0007070916140.33231-100000@localhost> In-Reply-To: <396529CC.6988EBE9@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Fixed. Sorry. On Thu, 6 Jul 2000, John Baldwin wrote: > Charles Anderson wrote: > > > > # grep -r DIAGASSERT . (from /usr/src) > > ./lib/libutil/fparseln.c: _DIAGASSERT(sp != NULL); > > ./lib/libutil/fparseln.c: _DIAGASSERT(p != NULL); > > ./lib/libutil/fparseln.c: _DIAGASSERT(fp != NULL); > > ./lib/libusb/data.c: _DIAGASSERT(p != NULL); > > ./lib/libusb/data.c: _DIAGASSERT(h != NULL); > > ./lib/libusb/data.c: _DIAGASSERT(p != NULL); > > ./lib/libusb/data.c: _DIAGASSERT(h != NULL); > > ./lib/libusb/descr.c: _DIAGASSERT(fd != -1); > > ./lib/libusb/parse.c: _DIAGASSERT(c != NULL); > > ./lib/libusb/parse.c: _DIAGASSERT(d != NULL); > > ./lib/libusb/parse.c: _DIAGASSERT(s != NULL); > > ./lib/libusb/parse.c: _DIAGASSERT(s != NULL); > > ./lib/libusb/parse.c: _DIAGASSERT(h != NULL); > > ./lib/libusb/parse.c: _DIAGASSERT(r != NULL); > > ./lib/libusb/parse.c: _DIAGASSERT(desc != NULL); > > ./lib/libusb/parse.c: _DIAGASSERT(h != NULL); > > ./make.out.070600.1528:/usr/obj/usr/src/i386/usr/lib/libusb.so: undefined reference to `_DIAGASSERT' > > > > Where does _DIAGASSERT come from? I updated right before I built which was > > 3:30 edt > > It's a macro that NetBSD uses just to be different from the rest of the > known > world which uses the assert() macro from /usr/include/assert.h. In > libutil/fparseln.c, all the _DIAGASSERT() macro calls are #if 0/#endif'd > out. > A similar patch should fix libusb. > > -- > > John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ > PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > -- n_hibma@webweaving.org n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0007070916140.33231-100000>