Created attachment 6451 [details] def file that produces a syntax error The attached file produces a dlltool syntax error: $ dlltool -l libusbx.a -v --def libusb-1.0.def dlltool: Processing def file: libusb-1.0.def dlltool: Syntax error in def file libusb-1.0.def:0 dlltool: Processed def file dlltool: Processing definitions dlltool: Processed definitions dlltool: Creating library file: libusbx.a dlltool: run: as -o dmuhh.o dmuhh.s dlltool: run: as -o dmuht.o dmuht.s dlltool: Created lib file The resulting lib file is missing exports and therefore leads to undefined references when using it. This is with dlltool 2.22.52.20120429 Other versions of dlltool: 2.21.53-20110731 2.22 (release) do not have this behavior and work fine.
Hmm, this syntax error is serious. Either remove the bogus LIBRARY line from .def file, or spent to it a library-name. One or the other way, the issue can be solved. So IMHO this bug-report is invalid. It shows a behavior change that a syntax-error is now detected proper.
Closing as per comment #1