Hi OpenPKG Users,

i'm unable to build the mimedefang package.

...
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread 
-o mimedefang mimedefang.o drop_privs_threaded.o utils.o rm_r.o syslog-fac.o 
dynbuf.o milter_cap.o -L/openpkg-dev/lib -L/openpkg-dev/lib -lmilter 
-lpthread -lnsl  -lsm
/openpkg-dev/bin/ld: cannot find -lsm
collect2: ld returned 1 exit status
make: *** [mimedefang] Error 1
error: Bad exit status from /tmp/rpm-tmp.1210 (%build)
...

Complete build-log attached. Can you give me any hint?




greetings Thomas

-- 
Thomas Lenz
[EMAIL PROTECTED]

++ building mimedefang 
++ building mimedefang-2.65-20080902 (mimedefang-2.65-20080902.ix86-suse9.3-openpkgdev.rpm)
++ Source0:  mimedefang-2.65.tar.gz                   ...OK [327KB]
++ Source1:  rc.mimedefang                            ...OK [3KB]
++ Patch0:   mimedefang.patch                         ...OK [2KB]
Executing(%prep): env -i /openpkg-dev/lib/openpkg/bash --norc --noprofile --posix -e /tmp/rpm-tmp.1210
+ cd /tmp
+ set +x
+----------------------------------Warning------------------------------------+
| This OpenPKG package is of class EVAL.                                      |
| This means it is still in EVALUATION and QUALITY ASSURANCE state.           |
| Hence it is still NOT ready for general use.                                |
| Do not use it in production environments.                                   |
| It might be unstable under run-time or still incompletely packaged.         |
+-----------------------------------------------------------------------------+
+ cd /tmp
+ rm -rf mimedefang-2.65
+ /openpkg-dev/lib/openpkg/gzip -dc /home/tl/work/openpkg/dst/mimedefang/mimedefang-2.65.tar.gz
+ /openpkg-dev/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mimedefang-2.65
+ echo 'Patch #0 (mimedefang.patch):'
Patch #0 (mimedefang.patch):
+ /openpkg-dev/lib/openpkg/patch -p0 -s -b
+ exit 0
Executing(%build): env -i /openpkg-dev/lib/openpkg/bash --norc --noprofile --posix -e /tmp/rpm-tmp.1210
+ cd /tmp
+ cd mimedefang-2.65
+ CC=/openpkg-dev/bin/cc
+ CFLAGS=' -I/openpkg-dev/include'
+ CPPFLAGS=-I/openpkg-dev/include
+ LDFLAGS=-L/openpkg-dev/lib
+ ./configure --cache-file=./config.cache --prefix=/openpkg-dev --sysconfdir=/openpkg-dev/etc/mimedefang --with-confsubdir= --with-sendmail=/openpkg-dev/sbin/sendmail --with-milterinc=/openpkg-dev/include --with-milterlib=/openpkg-dev/lib --with-spooldir=/openpkg-dev/var/mimedefang/spool --with-quarantinedir=/openpkg-dev/var/mimedefang/quarantine --with-user=openpkg-dev-r --enable-anti-virus --enable-clamav --enable-clamd --disable-antivir --disable-vexira --disable-uvscan --disable-bdc --disable-sweep --disable-trend --disable-AvpLinux --disable-aveclient --disable-clamav --disable-fsav --disable-fprot --disable-sophie --disable-nvcc --disable-trophie
configure: creating cache ./config.cache
checking for gcc... /openpkg-dev/bin/cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /openpkg-dev/bin/cc accepts -g... yes
checking for /openpkg-dev/bin/cc option to accept ISO C89... none needed
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /openpkg-dev/bin/perl
checking whether socklen_t is defined... yes
checking for Perl installation variable prefix... /openpkg-dev
checking for Perl installation variable siteprefix... /openpkg-dev
checking for Perl installation variable vendorprefix... /openpkg-dev
checking for Perl installation variable installarchlib... /openpkg-dev/lib/perl/5.10.0/i686-linux
checking for Perl installation variable installprivlib... /openpkg-dev/lib/perl/5.10.0
checking for Perl installation variable installbin... /openpkg-dev/bin
checking for Perl installation variable installman1dir... /openpkg-dev/man/man1
checking for Perl installation variable installman3dir... /openpkg-dev/man/man3
checking for Perl installation variable installscript... /openpkg-dev/bin
checking for Perl installation variable installsitearch... /openpkg-dev/lib/perl/site_perl/5.10.0/i686-linux
checking for Perl installation variable installsitelib... /openpkg-dev/lib/perl/site_perl/5.10.0
checking how to run the C preprocessor... /openpkg-dev/bin/cc -E
checking for grep that handles long lines and -e... /openpkg-dev/bin/grep
checking for egrep... /openpkg-dev/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for wait3 that fills in rusage... yes
checking for nm... /openpkg-dev/bin/nm
checking for Perl module IO::Socket... ok
checking for Perl module MIME::Tools 5.410 ()... ok
checking for Perl module MIME::WordDecoder... ok
checking for Perl module Digest::SHA1... ok
checking for Perl module Mail::SpamAssassin 1.6 or better... yes
checking for Perl module Anomy::HTMLCleaner... no
checking for Perl module HTML::Parser... yes
checking for Perl module Archive::Zip... yes
checking MIME-Tools version... 5.425
checking for Perl module Sys::Syslog... ok
checking for Perl module Unix::Syslog... ok
checking for Perl module ExtUtils::Embed... ok
checking if setlocksock('native') works... yes
checking if setlogsock('unix') works... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking whether stdint.h defines uint32_t... yes
checking whether sys/types.h defines uint32_t... no
checking whether sig_atomic_t is defined... yes
checking whether /openpkg-dev/bin/cc accepts -pthread... yes
checking if we can embed a Perl interpreter in C... yes
checking if it is safe to destroy and recreate a Perl interpreter... yes
checking for res_init in -lresolv... no
checking for htons in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for pthread_once in -lpthread... yes
checking for initgroups... yes
checking for getpwnam_r... yes
checking for setrlimit... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for readdir_r... yes
checking for pathconf... yes
checking for inet_ntop... yes
checking for milter/mfapi.h... /openpkg-dev/include/milter/mfapi.h
checking for savscan... /bin/false
checking for kavscanner... /bin/false
checking for csav... /bin/false
checking for clamd... /openpkg-dev/sbin/clamd
checking for nod32cli... /bin/false
checking for libmilter.a... /openpkg-dev/lib/libmilter.a
checking for libsm.a... no
checking for libmilter.so... no
checking for rm... /bin/rm
checking whether libmilter requires -lsm... yes
checking whether libsm requires -lldap... /openpkg-dev/bin/nm: 'no': No such file
no
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating mimedefang.pl
config.status: creating examples/init-script
config.status: creating mimedefang-filter.5
config.status: creating mimedefang-multiplexor.8
config.status: creating mimedefang-protocol.7
config.status: creating mimedefang-notify.7
config.status: creating mimedefang.8
config.status: creating mimedefang.pl.8
config.status: creating md-mx-ctrl.8
config.status: creating watch-mimedefang
config.status: creating redhat/mimedefang-init
config.status: creating redhat/mimedefang-sysconfig
config.status: creating config.h

*** Virus scanner detection results:
H+BEDV   'antivir'   NO (Disabled by configure command)
Vexira   'vascan'    NO (Disabled by configure command)
NAI      'uvscan'    NO (Disabled by configure command)
BDC      'bdc'       NO (Disabled by configure command)
Sophos   'sweep'     NO (Disabled by configure command)
Sophos   'savscan'   NO (not found)
TREND    'vscan'     NO (Disabled by configure command)
CLAMSCAN 'clamav'    NO (Disabled by configure command)
AVP      'AvpLinux'  NO (Disabled by configure command)
AVP5     'aveclient' NO (Disabled by configure command)
KAVSCANNER 'kavscanner' NO (not found)
CSAV     'csav'      NO (not found)
FSAV     'fsav'      NO (Disabled by configure command)
FPROT    'f-prot'    NO (Disabled by configure command)
SOPHIE   'sophie'    NO (Disabled by configure command)
NVCC     'nvcc'      NO (Disabled by configure command)
CLAMD    'clamd'     YES - /openpkg-dev/sbin/clamd
TROPHIE  'trophie'   NO (Disabled by configure command)
NOD32    'nod32cli'  NO (not found)

Make sure clamd runs as the openpkg-dev-r user!
  ...and make sure you use clamd version 0.67 or higher.

Found Mail::SpamAssassin.  You may use spam_assassin_* functions
Did not find Anomy::HTMLCleaner.  Do not use anomy_clean_html()
Found HTML::Parser.  You may use append_html_boilerplate()

Note: SpamAssassin, HTML::Parser and Anomy::HTMLCleaner are
detected at run-time, so if you install or remove any of those modules, you
do not need to re-run ./configure and make a new mimedefang.pl.
+ /openpkg-dev/bin/make --no-print-directory install RPM_INSTALL_ROOT=/tmp/mimedefang-2.65-root
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/openpkg-dev/bin/perl\" -DMIMEDEFANG_PL=\"/openpkg-dev/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.65\" -DSPOOLDIR=\"/openpkg-dev/var/mimedefang/spool\" -DQDIR=\"/openpkg-dev/var/mimedefang/quarantine\" -DCONFDIR=\"/etc\" -I/openpkg-dev/include -c -o mimedefang.o ./mimedefang.c
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/openpkg-dev/bin/perl\" -DMIMEDEFANG_PL=\"/openpkg-dev/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.65\" -DSPOOLDIR=\"/openpkg-dev/var/mimedefang/spool\" -DQDIR=\"/openpkg-dev/var/mimedefang/quarantine\" -DCONFDIR=\"/etc\" -I/openpkg-dev/include -c -o drop_privs_threaded.o ./drop_privs.c
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/openpkg-dev/bin/perl\" -DMIMEDEFANG_PL=\"/openpkg-dev/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.65\" -DSPOOLDIR=\"/openpkg-dev/var/mimedefang/spool\" -DQDIR=\"/openpkg-dev/var/mimedefang/quarantine\" -DCONFDIR=\"/etc\" -I/openpkg-dev/include -c -o utils.o ./utils.c
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/openpkg-dev/bin/perl\" -DMIMEDEFANG_PL=\"/openpkg-dev/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.65\" -DSPOOLDIR=\"/openpkg-dev/var/mimedefang/spool\" -DQDIR=\"/openpkg-dev/var/mimedefang/quarantine\" -DCONFDIR=\"/etc\" -I/openpkg-dev/include -c -o rm_r.o ./rm_r.c
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/openpkg-dev/bin/perl\" -DMIMEDEFANG_PL=\"/openpkg-dev/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.65\" -DSPOOLDIR=\"/openpkg-dev/var/mimedefang/spool\" -DQDIR=\"/openpkg-dev/var/mimedefang/quarantine\" -DCONFDIR=\"/etc\" -I/openpkg-dev/include -c -o syslog-fac.o ./syslog-fac.c
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/openpkg-dev/bin/perl\" -DMIMEDEFANG_PL=\"/openpkg-dev/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.65\" -DSPOOLDIR=\"/openpkg-dev/var/mimedefang/spool\" -DQDIR=\"/openpkg-dev/var/mimedefang/quarantine\" -DCONFDIR=\"/etc\" -I/openpkg-dev/include -c -o dynbuf.o ./dynbuf.c
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread -D_POSIX_PTHREAD_SEMANTICS -DEMBED_PERL -DSAFE_EMBED_PERL -DPERL_PATH=\"/openpkg-dev/bin/perl\" -DMIMEDEFANG_PL=\"/openpkg-dev/bin/mimedefang.pl\" -DRM=\"/bin/rm\" -DVERSION=\"2.65\" -DSPOOLDIR=\"/openpkg-dev/var/mimedefang/spool\" -DQDIR=\"/openpkg-dev/var/mimedefang/quarantine\" -DCONFDIR=\"/etc\" -I/openpkg-dev/include -c -o milter_cap.o ./milter_cap.c
/openpkg-dev/bin/cc  -I/openpkg-dev/include -Wall -Wstrict-prototypes -pthread -o mimedefang mimedefang.o drop_privs_threaded.o utils.o rm_r.o syslog-fac.o dynbuf.o milter_cap.o -L/openpkg-dev/lib -L/openpkg-dev/lib -lmilter -lpthread -lnsl  -lsm
/openpkg-dev/bin/ld: cannot find -lsm
collect2: ld returned 1 exit status
make: *** [mimedefang] Error 1
error: Bad exit status from /tmp/rpm-tmp.1210 (%build)


RPM build errors:
    Bad exit status from /tmp/rpm-tmp.1210 (%build)
openpkg:dev:WARNING: failed to build mimedefang-2.65-20080902 (mimedefang-2.65-20080902.ix86-suse9.3-openpkgdev.rpm)

Reply via email to