From: Victor Forsyuk <victor@ksi-linux.com>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: clamav-0.70-alt2: rebuild failed [1]
Date: Wed, 5 May 2004 19:18:05 +0300
Message-ID: <20040505161805.GA6767@mailhub.gu.net> (raw)
In-Reply-To: <20040505083829.GA30786@basalt.office.altlinux.org>
On Wed, May 05, 2004 at 12:38:29PM +0400, Dmitry V. Levin wrote:
> On Tue, May 04, 2004 at 06:32:27PM +0300, Victor Forsyuk wrote:
> > On Tue, May 04, 2004 at 04:04:48PM +0400, QA Team Robot wrote:
> > > Package: clamav-0.70-alt2
> >
> > [...]
> >
> > > i586-alt-linux-gcc -pipe -Wall -O2 -march=i586 -mcpu=i686 -o .libs/clamav-milter cfgparser.o getopt.o memory.o clamav-milter.o -L/usr/src/RPM/BUILD/clamav-0.70/libclamav /usr/src/RPM/BUILD/clamav-0.70/libclamav/.libs/libclamav.so -L/usr/lib/libmilter -lmilter -lpthread
> > > /usr/lib/gcc-lib/i586-alt-linux/3.3.3/../../../libmilter.a(listener.o)(.text+0x579): In function `mi_milteropen':
> > > : undefined reference to `__ctype_b'
> > > /usr/lib/gcc-lib/i586-alt-linux/3.3.3/../../../libmilter.a(smfi.o)(.text+0x492): In function `myisenhsc':
> > > : undefined reference to `__ctype_b'
> > > /usr/lib/gcc-lib/i586-alt-linux/3.3.3/../../../libmilter.a(smfi.o)(.text+0x4e2): In function `myisenhsc':
> > > : undefined reference to `__ctype_b'
> > > /usr/lib/gcc-lib/i586-alt-linux/3.3.3/../../../libmilter.a(smfi.o)(.text+0x575): In function `smfi_setreply':
> > > : undefined reference to `__ctype_b'
> >
> > sendmail пересобрать надо.
>
> Ещё бы libmilter.so там сделать не помешало.
На коленке я бы предложил такое. Не уверен в полной корректности такого
способа клепания динамических библиотек, но вроде должно работать.
Major, кстати, взят не с потолка. Сухой остаток от гугленья состоит
в том, что libmilter.so существует в коммерческой версии сендмейла
и там он, как видно из результатов поиска, именно libmilter.so.2.
--- sendmail.spec.old 2004-04-03 10:33:51 +0300
+++ sendmail.spec 2004-05-05 18:12:02 +0300
@@ -1,6 +1,6 @@
Name: sendmail
Version: 8.12.11
-Release: alt5
+Release: alt6
Packager: Konstantin Timoshenko <kt@altlinux.ru>
@@ -129,6 +129,14 @@
m4 real-time.mc > real-time.cf
popd
+pushd obj.$(uname -s).$(uname -r).$(arch)/libmilter
+make clean
+make O="-shared -fPIC"
+ld -shared --whole-archive -o libmilter.so.2.0.0 *.o
+ln -s libmilter.so.2.0.0 libmilter.so.2
+ln -s libmilter.so.2.0.0 libmilter.so
+popd
+
%install
for i in %_bindir %_libdir %_mandir/man{1,5,8} %_sbindir %_logdir %_spooldir %_datadir/%name-cf %_initdir %_sysconfdir/sysconfig %_spooldir/mqueue %_sysconfdir/smrsh %_sysconfdir/mail %_spooldir/clientmqueue var/run/%name %_sysconfdir/pam.d %_includedir ; do
%__mkdir_p "$RPM_BUILD_ROOT/$i"
@@ -176,8 +184,10 @@
popd
#
-# install include & static lib
+# install includes & libs
find $OBJDIR/lib* -name "*.a" -exec %__cp {} $RPM_BUILD_ROOT%_libdir \;
+%__rm -f $RPM_BUILD_ROOT%_libdir/libmilter.a
+%__cp -a $OBJDIR/libmilter/*.so* $RPM_BUILD_ROOT%_libdir
%__cp -ar include $RPM_BUILD_ROOT%prefix
%__sed -e 's|@@PATH@@|%_datadir/%name-cf|' < %SOURCE9 >
$RPM_BUILD_ROOT%_sysconfdir/mail/%name.mc
@@ -358,12 +368,16 @@
%_includedir/sendmail
%_includedir/sm
%_libdir/*.a
+%_libdir/*.so*
%files -n vacation
%_bindir/vacation
%_mandir/man1/vacation.*
%changelog
+* Wed May 05 2004 Victor Forsyuk <force@altlinux.ru> 8.12.11-alt6
+- Build shared libmilter library.
+
* Sat Apr 03 2004 Sergey Y. Afonin <asy@altlinux.ru> 8.12.11-alt5
- fix: misprint in socket's name of clamav-milter in *.mc
next prev parent reply other threads:[~2004-05-05 16:18 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-04 15:32 ` Victor Forsyuk
2004-05-05 5:52 ` Sergey Y. Afonin
2004-05-05 7:12 ` Sergey Y. Afonin
2004-05-05 8:38 ` Dmitry V. Levin
2004-05-05 11:03 ` Sergey Y. Afonin
2004-05-05 16:18 ` Victor Forsyuk [this message]
2004-05-05 16:36 ` Sergey Y. Afonin
2004-05-05 16:52 ` Dmitry V. Levin
2004-05-06 19:23 ` Sergey Y. Afonin
2004-05-09 15:18 ` Victor Forsyuk
2004-05-10 10:59 ` Sergey Y. Afonin
2004-05-11 14:50 ` Victor Forsyuk
2004-05-11 15:44 ` Sergey Y. Afonin
2004-05-12 8:18 ` [devel] sendmail & libmilter.so Sergey Y. Afonin
2004-05-12 11:02 ` Dmitry V. Levin
2004-05-12 13:19 ` Sergey Y. Afonin
2004-05-12 13:21 ` Dmitry V. Levin
2004-05-12 13:50 ` Sergey Y. Afonin
2004-05-12 14:02 ` Dmitry V. Levin
2004-05-12 17:50 ` Sergey Y. Afonin
2004-05-14 13:52 ` Sergey Y. Afonin
2004-05-07 13:59 ` [devel] Re: clamav-0.70-alt2: rebuild failed [1] Sergey Y. Afonin
2004-05-07 14:16 ` Dmitry V. Levin
2004-05-07 14:25 ` Sergey Y. Afonin
2004-05-07 14:37 ` Dmitry V. Levin
2004-05-07 14:34 ` Sergey Y. Afonin
2004-05-09 12:26 ` [devel] sendmail-8.12.11-alt6 Dmitry V. Levin
2004-05-10 11:04 ` Sergey Y. Afonin
2004-05-11 15:11 ` Sergey Y. Afonin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040505161805.GA6767@mailhub.gu.net \
--to=victor@ksi-linux.com \
--cc=devel@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git