Не могу собрать из портов clamav-0.84 + unrar-3.4.3 + patch
Добрый день.
Подскажите, где мне ума не хватило...? ;)
Смотрел сюда:
http://www.linux.org.ru/view-message.jsp?msgid=897477
http://mcmcc.bat.ru/
Делал:
cd /usr/ports/archivers/unrar
make fetch
make extract
cd /usr/ports/archivers/unrar/work/unrar
cp /new/unrar-3.4.3_fix.patch /usr/ports/archivers/unrar/work/unrar
patch<unrar-3.4.3_fix.patch
[root@mail] /usr/ports/archivers/unrar/work/unrar# patch<unrar-3.4.3_fix.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
|diff -ruN unrar.orig/consio.hpp unrar/consio.hpp
|unrar.orig/consio.hpp 2004-09-08 17:57:20.000000000 +0400
|+++ unrar/consio.hpp 2004-10-22 10:43:08.000000000 +0400
Patching file consio.hpp using Plan A...
Hunk #1 succeeded at 21.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
|diff -ruN unrar.orig/dll.hpp unrar/dll.hpp
|unrar.orig/dll.hpp 2004-09-08 17:57:20.000000000 +0400
|+++ unrar/dll.hpp 2004-10-22 10:43:08.000000000 +0400
Patching file dll.hpp using Plan A...
Hunk #1 succeeded at 26.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
|diff -ruN unrar.orig/makefile.unix unrar/makefile.unix
|unrar.orig/makefile.unix 2004-07-26 11:57:26.000000000 +0400
|+++ unrar/makefile.unix 2004-10-22 10:44:09.000000000 +0400
Patching file makefile.unix using Plan A...
Hunk #1 succeeded at 7.
Hunk #2 succeeded at 115.
done
затем:
[root@mail] /usr/ports/archivers/unrar/work/unrar# gmake -f makefile.unix lib
cp /usr/ports/archivers/unrar/work/unrar/libunrar3.so /usr/local/lib
cp /usr/ports/archivers/unrar/work/unrar/dll.hpp /usr/local/include
cp /usr/ports/archivers/unrar/work/unrar/libunrar3.so /usr/lib
cp /usr/ports/archivers/unrar/work/unrar/dll.hpp /usr/include
далее:
cd /usr/ports/security/clamav
make fetch
make extract
cd /usr/ports/security/clamav/work/clamav-0.84/libclamav
cp /new/clamav-0.84-libunrar3.patch /usr/ports/security/clamav/work/clamav-0.84/libclamav
patch<clamav-0.84-libunrar3.patch
[root@mail] /usr/ports/security/clamav/work/clamav-0.84/libclamav#
patch<clamav-0.84-libunrar3.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
|diff -ruN clamav-0.84.orig/libclamav/Makefile.am clamav-0.84/libclamav/Makefile.am
|clamav-0.84.orig/libclamav/Makefile.am 2005-04-20 03:33:17.000000000
+0400
|+++ clamav-0.84/libclamav/Makefile.am 2005-05-04 02:12:02.540693464 +0400
Patching file Makefile.am using Plan A...
Hunk #1 succeeded at 17.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
|diff -ruN clamav-0.84.orig/libclamav/scanners.c clamav-0.84/libclamav/scanners.c
|clamav-0.84.orig/libclamav/scanners.c 2005-04-29 05:31:10.000000000
+0400
|+++ clamav-0.84/libclamav/scanners.c 2005-05-04 02:12:02.543693008 +0400
Patching file scanners.c using Plan A...
Hunk #1 succeeded at 42.
Hunk #2 succeeded at 112.
Hunk #3 succeeded at 332.
Hunk #4 succeeded at 1216.
Hunk #5 succeeded at 1440.
Hunk #6 succeeded at 1583.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
|diff -ruN clamav-0.84.orig/libclamav/unrarlib.c clamav-0.84/libclamav/unrarlib.c
|clamav-0.84.orig/libclamav/unrarlib.c 2005-04-20 03:33:17.000000000
+0400
|+++ clamav-0.84/libclamav/unrarlib.c 2005-05-04 02:12:27.131955024 +0400
Patching file unrarlib.c using Plan A...
Hunk #1 succeeded at 1.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
|diff -ruN clamav-0.84.orig/libclamav/unrarlib.h clamav-0.84/libclamav/unrarlib.h
|clamav-0.84.orig/libclamav/unrarlib.h 2005-04-20 03:33:17.000000000
+0400
|+++ clamav-0.84/libclamav/unrarlib.h 2005-05-04 02:12:02.551691792 +0400
Patching file unrarlib.h using Plan A...
Hunk #1 succeeded at 1.
done
Далее:
cd /usr/ports/security/clamav
make
/bin/sh /usr/local/bin/libtool15 --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I..
-I..
-I./zziplib -I./mspack -I/usr/local/include -D_THREAD_SAFE -O -pipe -c -o
scanners.lo
scanners.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./zziplib -I./mspack -I/usr/local/include
-D_THREAD_SAFE -O -pipe -c scanners.c -fPIC -DPIC -o .libs/scanners.o
scanners.c: In function `cli_scanrar':
scanners.c:129: `ArchiveList_struct' undeclared (first use in this function)
scanners.c:129: (Each undeclared identifier is reported only once
scanners.c:129: for each function it appears in.)
scanners.c:129: `rarlist' undeclared (first use in this function)
scanners.c:130: `rarlist_head' undeclared (first use in this function)
scanners.c:131: syntax error before `char'
scanners.c:144: syntax error before `)'
scanners.c:164: `mdata' undeclared (first use in this function)
scanners.c:254: `RAR_FENTRY_ATTR_DIRECTORY' undeclared (first use in this function)
scanners.c:269: `rar_data_ptr' undeclared (first use in this function)
scanners.c:269: `rar_data_size' undeclared (first use in this function)
*** Error code 1
Stop in /usr/ports/security/clamav/work/clamav-0.84/libclamav.
*** Error code 1
Stop in /usr/ports/security/clamav/work/clamav-0.84.
*** Error code 1
Stop in /usr/ports/security/clamav/work/clamav-0.84.
*** Error code 1
Stop in /usr/ports/security/clamav.
А зачем так сложно???
Скачиваем с freebsd.org самый последний порт со всеми патчами. Распаковываем
cd /usr/ports/my_custom_new_ports/unrar
make install && make clean
-*Название листа "[BSD] Решение вопросов по FreeBSD, OpenBSD и NetBSD";
Написать в лист: mailto:comp.soft.bsd.all-list@subscribe.ru
Адрес правил листа http://subscribe.ru/catalog/comp.soft.bsd.all/rules
Номер письма: 1762; Возраст листа: 426; Участников: 655
Адрес сайта рассылки: http://www.linuxrsp.ru
Адрес этого письма в архиве: http://subscribe.ru/archive/comp.soft.bsd.all/msg/361466