On 06.08.2016 21:27, Reto Buerki wrote: > Hi Matthias > > Thanks for the report. > > On 08/06/2016 12:12 PM, Matthias Klose wrote: >> >> gnatbind-6 -shared -E -x /«PKGBUILDDIR»/obj/utests/runner.ali >> gnatlink-6 /«PKGBUILDDIR»/obj/utests/runner.ali -shared-libgcc -lpcsclite -R >> /«PKGBUILDDIR»/lib/static/libpcscada.a -L/usr/lib/ -lahven -o >> /«PKGBUILDDIR»/obj/utests/runner >> /«PKGBUILDDIR»/lib/static/libpcscada.a(pcsc-scard.o): In function >> `pcsc__scard__get_return_code': >> /«PKGBUILDDIR»/src/pcsc-scard.adb:402: undefined reference to >> `pcsc_stringify_error' >> /«PKGBUILDDIR»/lib/static/libpcscada.a(pcsc-scard.o): In function >> `pcsc__scard__is_valid': >> /«PKGBUILDDIR»/src/pcsc-scard.adb:473: undefined reference to >> `SCardIsValidContext' >> >> Here is a workaround >> http://launchpadlibrarian.net/277411681/pcscada_0.7.3-1_0.7.3-1ubuntu1.diff.gz >> >> however you really should pass '-lpcsclite' behind libpcscada.a. Isn't there >> anything which allows you to pass this as LIBS, not LDFLAGS? > > Does the attached patch work for you?
doesn't even build: debian/rules override_dh_auto_test make[1]: Entering directory '/home/packages/tmp/pcscada-0.7.3' /usr/bin/make utests make[2]: Entering directory '/home/packages/tmp/pcscada-0.7.3' gnatmake -p -j2 -R -v -eS -cargs -g -O2 -fstack-protector-strong -margs -p -Ppcscada_utests warning: gnatmake -P is obsolete and will not be available in the next release; use gprbuild instead Parsing project file "pcscada_utests". ==============Error messages for project file: /home/packages/tmp/pcscada-0.7.3/pcscada_utests.gpr 44. for Linker_Options use PCSCAda_Common.Linker_Switches; | >>> undefined attribute "linker_options" 48 lines: 1 error gnatmake: "pcscada_utests" processing failed Makefile:61: recipe for target 'build_utests' failed make[2]: *** [build_utests] Error 4