[sane-devel] [dev] dependencies on sanei_scsi and sanei_usb
Wed, 5 Sep 2001 22:00:08 +0200
[replying to myself:]
> I was just pointed to a problem with dependencies in the
> backend/Makefile(.in): The backend libraries have entries like
> libsane-artec.la: ../sanei/sanei_config2.lo
> for all the sanei files they depend on. However sanei_config2 itsself
> depends on sanei_scsi and (since my commit) sanei_usb. Some backends
> have a dependency for sanei_config2 but not sanei_scsi (e.g. as6e,
> mustek_pp) and no one has a dependency for sanei_usb. While on my
> system this works (no library load errors) this doesn't semm to be
> true for all systems.
I have just comitted the following change to CVS: the USB part is now
in sanei_usb_attach_matching_devices so sanei_config2 now only depends
However, the following backends still have unmatched functions (try
nm backend/.libs/libsane-backend.so|grep "U sane"):
as6e: Is linked against sanei_config2 but not sanei_scsi
mustek_pp: Is linked against sanei_config2 but not sanei_scsi
umax_pp: Is linked against sanei_config2 but not sanei_scsi
Looks like these can be fixed by simply removing the reference to
sanei_config2 in backend/Makefile.in?
By the way: umax_pp also exports a symbol without sanei_ in its name.
Please fix (see make libcheck).
plustek: Is linked against sanei_config2 but not sanei_scsi
plustek.c really uses sanei_config_attach_matching_devices but if it
doesn't use SCSI this could be removed (or add sanei_scsi to the
Makefile). I don't know why this works at all.
st400: Doesn't link to sanei_scsi, sanei_config2 and
sanei_constrain_value. As this was a simple spelling mistake
in the Makefile.in I have changed this in CVS.