Porting requires you to have the ability to read and understand the error messages, warnings, and information messages produced. It is not clear you've taken the step of looking at the error messages, since you have not posted regarding any of them.
The
very first error in your log fragment is:
Code:
htscharset.c:355:19: error: iconv.h: No such file or directory
It appears that iconv header files are needed to successfully compile htscharset.c. The iconv library (libiconv package) appears to be a dependency, as it includes these header files.
Do you have the libiconv package installed? If so, the Makefiles, autoconfig, or libtool do not know where to find the header files. The -L option of pkg_info(1) will show you where they actually are.
If you do not have libiconv installed, you have a dependency you were unaware of. Install the libiconv package.
According to the output from the ./configure step, iconv is not necessary. I believe that must be incorrect.
Once you have your iconv problem resolved, re-run your build. If it is unsuccessful, read the
first error message, and see if
you can determine what it means.