Article 6PQ2F Missing header file in l/enchant-2.8.1-x86_64-1.txz package for slackware64-current

Missing header file in l/enchant-2.8.1-x86_64-1.txz package for slackware64-current

by
sairum
from LinuxQuestions.org on (#6PQ2F)
I use Ponce's SBo-git repo with sbopkg to install additional files I need after a clean (full) installation of Slackware64. I came across a very strange error with a package that usually poses no problems to compilation: its name is gimagereader. The previous version compiled fine in Slackware64-15.0. In -current, the SBo script ends with this error

Code:...
[ 65%] Building CXX object CMakeFiles/gimagereader.dir/qt/src/Config.cc.o
/home/backup/slackware/current/manual_builds/gimagereader/gimagereader-3.4.2/qt/src/Config.cc:31:10: fatal error: enchant-provider.h: No such file or directory
31 | #include <enchant-provider.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
...I found out that the missing header file (enchant-provider.h) is part of package enchant but is missing in the current version of the package (2.8.1) shipped with Slackware64. Interestingly, the header file is present in the source file (downloaded using the link in source/l/enchant/enchant.url) but never makes it into the final package using the corresponding SlackBuild.

Extracting enchant-provider.h and copying it directly to /usr/include/enchant-2/ solves the problem and the SlackBuild for current gimagereader-3.4.2 works as expected! I couldn't find out yet why enchant-provider.h is not copied to the include directory along wiht the two other header files (enchant.h and enchant++.h).
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments