PostHeaderIcon Microdc2: ошибка сборки

Пересобираю microdc2. Получаю ошибку:
command.c:(.text+0x2b87): undefined reference to `main_to_utf8_string'
command.c:(.text+0x2c07): undefined reference to `main_to_utf8_string'
hub.o: In function `prepare_chat_string_for_display':
hub.c:(.text+0x9c): undefined reference to `try_utf8_to_main_string'
filelist-in.o: In function `file_list_parse_init':
filelist-in.c:(.text+0xa7b): undefined reference to `filelist_xml_open'
filelist-in.c:(.text+0xaac): undefined reference to `filelist_bzxml_open'
user.o: In function `user_handle_command':
user.c:(.text+0x155e): undefined reference to `utf8_to_main_string'
*** [microdc2] Error code 1


Поиски по интернету привели к тому, что надо сделать следующее:
$ cd /usr/ports/net-p2p/microdc2
$ sudo make patch

затем в файле /usr/ports/net-p2p/microdc2/work/microdc2-0.15.6/configure находим строчку

test $LIBXML2_VERSION -ge 2616 && good_libxml2=yes

Вместо microdc2-0.15.6 может быть другая версия, само собой.

и меняем ее на

test $LIBXML2_VERSION > 2616 && good_libxml2=yes

после чего делаем

$ cd /usr/ports/net-p2p/microdc2
$ sudo make
$ sudo make install
$ sudo make clean

Все прекрасно собирается. Как видим, скрипт configure неправильно определяет версию библиотеки libxml2.

Оставить комментарий

PR-CY.ru