Date: Fri, 24 Jun 2016 06:06:27 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 210509] libusb.h cannot be included in C++ after r302080 Message-ID: <bug-210509-17@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210509 Bug ID: 210509 Summary: libusb.h cannot be included in C++ after r302080 Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: jkim@FreeBSD.org Some ports failed to build after r302080, e.g., x11/kde4-workspace. % cat test.cpp #include <libusb.h> int dummy(void); int dummy(void) { return (0); } % c++ -c test.cpp In file included from test.cpp:1: /usr/include/libusb.h:279:48: error: typedef redefinition with different types ('struct libusb_hotplug_callback_handle *' vs 'libusb_hotplug_callback_handle') typedef struct libusb_hotplug_callback_handle *libusb_hotplug_callback_handle; ^ /usr/include/libusb.h:257:8: note: previous definition is here struct libusb_hotplug_callback_handle; ^ 1 error generated. % g++48 -c test.cpp In file included from test.cpp:1:0: /usr/include/libusb.h:279:48: error: conflicting declaration 'typedef struct libusb_hotplug_callback_handle* libusb_hotplug_callback_handle' typedef struct libusb_hotplug_callback_handle *libusb_hotplug_callback_handle; ^ /usr/include/libusb.h:257:8: error: 'struct libusb_hotplug_callback_handle' has a previous declaration as 'struct libusb_hotplug_callback_handle' struct libusb_hotplug_callback_handle; ^ -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210509-17>
